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

nsock_loop() continuesly loops with 0 events pending #1149

Closed
adamtimmins opened this issue Mar 7, 2018 · 2 comments
Closed

nsock_loop() continuesly loops with 0 events pending #1149

adamtimmins opened this issue Mar 7, 2018 · 2 comments

Comments

@adamtimmins
Copy link

I'm doing a simple scan of the local network with

nmap -p 5900 --script vnc-brute 192.168.0.0/24 --script-args passdb=/root/Desktop/pass.txt

And due to the volume of IP's it starts getting stuck with NSOCK DEBUG, and the ETA just keeps climbing:

NSOCK DEBUG [17.9320s] nsock_loop(): nsock_loop() started (timeout=50ms). 0 events pending
NSOCK DEBUG [17.9320s] nsock_set_loglevel(): Set log level to FULL DEBUG

Is there anyway to mitigate this so I can complete the scan?

@dmiller-nmap
Copy link

I'm a bit confused as to what could be causing this. Can you reduce the scan to a smaller set that still produces the error? For example, do a port scan for 5900, then do your --script vnc-brute against each of the discovered systems separately. Does one of them cause the error, or do they all finish?

If you can get it down to just one target that causes the error, then further try to reduce the problem:

  • Does it happen with --script-args unpwdb.passlimit=5
  • Does it happen with --script-args unpwdb.timelimit=5s

Finally, what is the output of nmap --version?

@adamtimmins
Copy link
Author

The nmap version I'm running:

Nmap version 7.60 ( https://nmap.org )
Platform: x86_64-pc-linux-gnu
Compiled with: liblua-5.3.3 openssl-1.1.0g libssh2-1.8.0 libz-1.2.8 libpcre-8.39 nmap-libpcap-1.7.3 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select

I had to do the IP ranges from 30 at a time to 10 and then to 5 to stop getting the error. I couldn't bring it down to 1 IP that was the issue. I tried the above script-args and I got the same issue.

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

2 participants