mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Made scanned results optional with verbose flag
This commit is contained in:
parent
8c19608966
commit
2289209604
1 changed files with 6 additions and 3 deletions
|
|
@ -58,8 +58,11 @@ var scanCmd = &cobra.Command{
|
|||
threads = mathutil.Clamp(len(hostsToScan), 1, 255)
|
||||
}
|
||||
probeStates := magellan.ScanForAssets(hostsToScan, portsToScan, threads, timeout, disableProbing)
|
||||
for _, r := range probeStates {
|
||||
fmt.Printf("%s:%d (%s)\n", r.Host, r.Port, r.Protocol)
|
||||
if verbose {
|
||||
|
||||
for _, r := range probeStates {
|
||||
fmt.Printf("%s:%d (%s)\n", r.Host, r.Port, r.Protocol)
|
||||
}
|
||||
}
|
||||
|
||||
// make the dbpath dir if needed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue