-
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
"500 Command unrecognized" loop with -sV -sC -p2121 -dd #1478
Comments
Forgot to mention: Nmap 7.70 |
Most likely there is a specific script that is stuck. Can you try to identify it by hitting a space while it is looping (and everything else has already stopped)? You should get output similar to the following:
|
|
This is very helpful. Stay tuned. |
Could you please apply the following patch to --- a/scripts/ftp-syst.nse
+++ b/scripts/ftp-syst.nse
@@ -81,7 +81,7 @@
-- SYST
local auth_done = false
- local syst
+ local syst = nil
repeat
if not socket:send("SYST\r\n") then
return nil
@@ -110,6 +110,9 @@
if status then
auth_done = true
end
+ else
+ stdnse.debug1("SYST error: %d %s", code, message)
+ break
end
until not auth_done
|
Yes that is much better! Would you like to know anything other than, nmap finishes normally and gives reasonable-looking results? |
If you ran the scan with at least one
but there is no need to go out of your way to look for it. The stack trace you have provided isolated the issue pretty well. I am confident that this patch is what we should go with. Unless you still see some misbehavior then I am going to commit it. |
Yup: Thanks for working on this! |
The fix has been committed as r37583. Thank you for reporting the issue and providing the necessary run-time trace. |
Initially was using
-O -sV -sC
on a number of hosts, then narrowed it down to the above command as minimal to reproduce a seemingly frozen nmap run.Running
sudo nmap [ip] -sV -sC -p2121 -dd
eventually results in this looping over and over, many times per second:
Happy to submit the IP privately, if that'll help.
The text was updated successfully, but these errors were encountered: