Skip to content

Commit

Permalink
[*]优化输出~
Browse files Browse the repository at this point in the history
  • Loading branch information
lcvvvv committed Jan 28, 2022
1 parent f6bd7ee commit 9024fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run/type-kscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (k *kscan) PortDiscovery() {
k.pool.port.Out <- netloc
host.Up()
}
if host.IsOpenPort() == false && host.Length() == len(k.config.Port) {
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"))
output := fmt.Sprintf("%-30v %-26v %s", url, "Up", description)
Expand Down

0 comments on commit 9024fa0

Please sign in to comment.