Added more output for debugging

This commit is contained in:
David J. Allen 2024-05-09 13:18:38 -06:00
parent a75530e96b
commit e93f49eb82
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
3 changed files with 21 additions and 8 deletions

View file

@ -57,7 +57,7 @@ var scanCmd = &cobra.Command{
if threads <= 0 {
threads = mathutil.Clamp(len(hostsToScan), 1, 255)
}
probeStates := magellan.ScanForAssets(hostsToScan, portsToScan, threads, timeout, disableProbing)
probeStates := magellan.ScanForAssets(hostsToScan, portsToScan, threads, timeout, disableProbing, verbose)
if verbose {
for _, r := range probeStates {
fmt.Printf("%s:%d (%s)\n", r.Host, r.Port, r.Protocol)