Skip to content

Commit

Permalink
add spin to scan port
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadrad committed Dec 5, 2016
1 parent d6e6dbe commit e8a4739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mylg.go
Expand Up @@ -383,7 +383,10 @@ func scanPorts() {
if err != nil {
println(err.Error())
} else {
spin.Prefix = "please wait "
spin.Start()
scan.Run()
spin.Stop()
}
}

Expand Down
1 change: 1 addition & 0 deletions scan/scan.go
Expand Up @@ -163,6 +163,7 @@ func (s *Scan) Run() {
if len(openPorts) == 0 {
println("there isn't any opened port")
} else {
println("")
table.Render()
elapsed := fmt.Sprintf("%.3f seconds", time.Since(tStart).Seconds())
println("Scan done:", len(openPorts), "opened port(s) found in", elapsed)
Expand Down

0 comments on commit e8a4739

Please sign in to comment.