Skip to content

Commit

Permalink
[*]优化检测逻辑,现在ssl协议,检测更为精准了
Browse files Browse the repository at this point in the history
  • Loading branch information
lcvvvv committed Mar 23, 2022
1 parent 2c0e476 commit 63c4e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/gonmap
7 changes: 3 additions & 4 deletions run/type-kscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ func (k *kscan) PortDiscovery() {
k.pool.port.Out <- netloc
host.Up()
}
//if netloc.status == Unknown {
// k.pool.port.Out <- netloc
//}
if netloc.status == Unknown {
k.pool.port.Out <- netloc
}
if host.IsOpenPort() == false && host.Length() == len(k.config.Port) && k.config.ClosePing == false {
url := fmt.Sprintf("icmp://%s", host.addr)
description := color.Red(color.Overturn("Not Open Any Port"))
Expand Down Expand Up @@ -267,7 +267,6 @@ func (k *kscan) GetTcpBanner() {
if tcpBanner == nil {
continue
}

uri := tcpBanner.Target.URI()
status := tcpBanner.Status()
service := tcpBanner.TcpFinger.Service
Expand Down

0 comments on commit 63c4e87

Please sign in to comment.