Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recon scan does not trigger ping scan being disabled #57

Closed
Twigonometry opened this issue Aug 25, 2021 · 3 comments
Closed

Recon scan does not trigger ping scan being disabled #57

Twigonometry opened this issue Aug 25, 2021 · 3 comments

Comments

@Twigonometry
Copy link

Twigonometry commented Aug 25, 2021

Using fresh install, with ffuf installed (no Gobuster but instructions say I could use one or the other).

Running the following command, it says no ports were found:

┌──(kali㉿kali)-[~/Documents/recon]
└─$ ~/Documents/recon/nmapAutomator/nmapAutomator.sh -H 10.11.1.146 -t Recon

Running a Recon scan on 10.11.1.146

Host is likely running Linux


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





---------------------Starting Script Scan-----------------------
                                                                                                                                                                                                                                             
No ports in port scan.. Skipping!
                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                             
---------------------Recon Recommendations---------------------                                                                                                                                                                              
                                                                                                                                                                                                                                             



No Recon Recommendations found...
                                                                                                                                                                                                                                             


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

Completed in 4 seconds

Here is the output, suggesting the host is down:

┌──(kali㉿kali)-[~/…/nmap]
└─$ cat Port_10.11.1.146.nmap              
# Nmap 7.91 scan initiated Wed Aug 25 21:21:52 2021 as: /usr/bin/nmap -T4 --max-retries 1 --max-scan-delay 20 --open -oN nmap/Port_10.11.1.146.nmap --system-dns --stats-every 1s 10.11.1.146
# Nmap done at Wed Aug 25 21:21:54 2021 -- 1 IP address (0 hosts up) scanned in 2.05 seconds

Running nmap manually with the -Pn flag shows the host is up:

┌──(kali㉿kali)-[~/…/146]
└─$ nmap -sC -sV -oA nmap/standard 10.11.1.146 -Pn
Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.
Starting Nmap 7.91 ( https://nmap.org ) at 2021-08-25 21:23 BST
Nmap scan report for 10.11.1.146
Host is up (0.26s latency).
Not shown: 997 filtered ports

So the script does not seem to pick up on the fact the host is down then re-run the scans with -Pn

Thanks!

@21y4d
Copy link
Owner

21y4d commented Aug 25, 2021

this doesn't appear to be a bug. The host simply doesn't have any ports open, so the script can't run anything on it.
are you sure the host has open ports?

@21y4d 21y4d closed this as completed Aug 25, 2021
@Twigonometry
Copy link
Author

Twigonometry commented Aug 26, 2021

Hi,

The host is up and has open ports, as I scanned it manually with the -Pn flag and 3 open ports were found (see original comment for command output)

The host does not respond to ping probes, but nmap automator doesn't recognise this for some reason. From looking at the source code it seems like it should display a message saying the host is not responding to ping probes, which doesn't show up in the terminal output.

Edit: I had removed which ports are open from my original comment as I'm not supposed to share those details, so it may have been hard to spot - but the number of open ports can be seen by the 997 filtered ports text (meaning 3 are open). Sorry for any confusion

@wulfgarpro
Copy link

wulfgarpro commented Oct 6, 2021

This same issue is occurring for me. I vote it be reopened.

If I run my port scan with sudo, SYN scan returns results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants