-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Nmap stuck in ping scan phase #1922
Comments
Does setting up |
I will try and let you know, thank you! |
One thing stands out to me: The group scan stats show there is 1 probe still active, but the 44 hosts each show 0 active probes. So either there's a probe that the scan engine is tracking that doesn't belong to any active target, or there's a bug in the accounting of how many outstanding probes there are. What version are you using? If SVN, what revision or change are you on? I'd like to figure out if it's due to one of the changes since 7.80 or if the bug existed before that. |
Hello @dmiller-nmap! For the results above, I used the SVN version from commit 0b7e02c (January 27 2020) It does not happen for my other scans where I do not use that many ports in |
Hello @dmiller-nmap
I've resumed the scan now but I'll try to add the RTT timeout options if that happens again |
I added "--max-rtt-timeout 1000" in my .xml file and resumed the scan with it. If that allows to add an option in a resumed scan (I guess?) then I can tell you that it doesn't fix the issue as the scan got stuck again. |
I can add, if that helps, that it seems to happen usually when I'm running other network intensive activity on the same server in parallel. Potentially packet loss which isn't properly managed or disturbs some state counters? |
Definitely the same issue as #2153. In your case, it's not a ICMP Time Exceeded problem causing the targets to timeout during host discovery, but more likely because you have a lot of host discovery probes defined. Either way, the tagged commits here ought to address the issue. I know it can be hard to reproduce bugs like this, but I'd love positive confirmation that it's fixed before I close this issue out. |
Thank you very much @dmiller-nmap! |
Hi @dmiller-nmap! Good news: no more scan getting stuck under the same conditions! Thank you very much! |
I use the latest Nmap version compiled from source with these scanning options:
(yes my ping options are particular)
From time to time Nmap tends to be stuck in the ping scan phase. It seems to be blocked indefinitely because I discover it in this situation after a few hours with no progress. I kill it and resume the scan. After the resume, the problem does not appear immediately so it is very hard to diagnose and thus I do not think it happens with particular hosts either...
As you can see I already use
--host-timeout
as a safety against such cases but this does not seem to apply here.It is still responsive though when I press ENTER or increase/decrease verbosity/debug.
Here is what I get:
I am not aware of the internals of the scanning engine so I have troubles interpreting this output.
Do you have any suggestion for me? Could I be helpful in providing more information or performing some action to help in debugging this?
The text was updated successfully, but these errors were encountered: