21y4d/nmapAutomator

Not functioning

Closed this issue · 1 comments

Sorry to bother you again, but I was reading through the code and noticed it does a ping scan and enables the -Pn switch if necessay. So now I'm baffled once again. I tried running with sudo as recommended with no luck, script hangs on service scan of ports it didn't find with in previous scan. I double checked that I can run the commands I found within the output files and they function as expected. I might spin up a fresh vm and see how that works in case I have configured something poorly.

Fresh Kali 2022.1 VM:

┌──(kali㉿kali)-[~]
└─$ git clone https://github.com/21y4d/nmapAutomator.git
sudo ln -s $(pwd)/nmapAutomator/nmapAutomator.sh /usr/local/bin/
Cloning into 'nmapAutomator'...
remote: Enumerating objects: 484, done.
remote: Counting objects: 100% (204/204), done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 484 (delta 67), reused 154 (delta 42), pack-reused 280
Receiving objects: 100% (484/484), 153.57 KiB | 1.55 MiB/s, done.
Resolving deltas: 100% (156/156), done.
[sudo] password for kali:

┌──(kali㉿kali)-[~]
└─$ nmapAutomator.sh -H 10.129.154.159 -t All

Running all scans on 10.129.154.159

Host is likely running Windows

---------------------Starting Port Scan-----------------------

---------------------Starting Script Scan-----------------------

No ports in port scan.. Skipping!

---------------------Starting Full Scan------------------------

Making a script scan on all ports

----------------------Starting UDP Scan------------------------

UDP needs to be run as root, running with sudo...

In progress: No Scan (0:00:00 elapsed - 0:00:00 remaining)
In progress: No Scan (0:00:00 elapsed - 0:00:00 remaining) ] 0% done
In progress: UDP Scan (0:00:03 elapsed - 0:01:23 remaining) ] 0% done In progress: UDP Scan (0:00:09 elapsed - 0:00:51 remaining) ] 3% done
In progress: UDP Scan (0:00:09 elapsed - 0:00:51 remaining) ] 15% done In progress: UDP Scan (0:00:15 elapsed - 0:00:42 remaining) ] 15% done In progress: UDP Scan (0:00:15 elapsed - 0:00:42 remaining) ] 26% done In progress: UDP Scan (0:00:21 elapsed - 0:00:20 remaining) ] 26% done

PORT STATE SERVICE
53/udp open domain
123/udp open ntp
389/udp open ldap

Making a script scan on UDP ports: 53, 123, 389

In progress: No Scan (0:00:00 elapsed - 0:00:00 remaining)
In progress: No Scan (0:00:00 elapsed - 0:00:00 remaining) ] 0% done In progress: UDP Scan (0:00:02 elapsed - 0:00:00 remaining) ] 0% done In progress: UDP Scan (0:00:02 elapsed - 0:00:00 remaining) ####################################################################> ] 99% done In progress: Service Scan (0:00:07 elapsed - 0:00:03 remaining) ################################################################> ] 99% done
In progress: Service Scan (0:00:07 elapsed - 0:00:03 remaining) ###############################> ] 66% done In progress: Service Scan (0:00:07 elapsed - 0:00:03 remaining) ###############################> ] 66% done In progress: Service Scan (0:00:12 elapsed - 0:00:05 remaining) ###############################> ] 66% done In progress: Service Scan (0:00:12 elapsed - 0:00:05 remaining) ###############################> ] 66% done
In progress: Service Scan (0:00:17 elapsed - 0:00:08 remaining) ###############################> ] 66% done In progress: Service Scan (0:00:17 elapsed - 0:00:08 remaining) ###############################> ] 66% done In progress: Service Scan (0:00:17 elapsed - 0:00:08 remaining) ###############################> ] 66% done

PORT STATE SERVICE VERSION
53/udp open domain (generic dns response: SERVFAIL)
| fingerprint-strings:
| NBTStat:
|_ CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
123/udp open ntp NTP v3
389/udp open ldap Microsoft Windows Active Directory LDAP (Domain: timelapse.htb0., Site: Default-First-Site-Name)
Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows

---------------------Starting Vulns Scan-----------------------

Running CVE scan on common ports

Running Vuln scan on common ports
This may take a while, depending on the number of detected services..

---------------------Recon Recommendations---------------------

cat: nmap/Script_10.129.154.159.nmap: No such file or directory

No Recon Recommendations found...

---------------------Finished all scans------------------------

Completed in 1 minute(s) and 3 second(s)