Skip to content

Commit

Permalink
fix: -sV Service information output
Browse files Browse the repository at this point in the history
  • Loading branch information
XinRoom committed Aug 22, 2022
1 parent 009cced commit 0600a8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/go-portScan.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ func run(c *cli.Context) error {
}
fmt.Print(buf)
}
} else {
}
if sV {
fmt.Printf("%s:%d %s\n", ret.Ip, ret.Port, fingerprint.PortIdentify("tcp", ret.Ip, ret.Port))
}

Expand Down Expand Up @@ -255,7 +256,7 @@ func run(c *cli.Context) error {
wgPing.Wait() // PING组
s.Wait() // 扫描器-等
s.Close() // 扫描器-收
close(retChan)
//close(retChan)
<-single // 接收器-收
wgPortIdentify.Wait() // 识别器-收
fmt.Printf("[*] elapsed time: %s\n", time.Since(start))
Expand Down Expand Up @@ -283,7 +284,7 @@ func main() {
&cli.StringFlag{
Name: "port",
Aliases: []string{"p"},
Usage: "eg: \"top1000,5612,65120\"",
Usage: "eg: \"top1000,5612,65120,-\"",
Value: "top1000",
},
&cli.BoolFlag{
Expand Down

0 comments on commit 0600a8a

Please sign in to comment.