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

Nmap should prevent Windows from going to sleep while scanning #1192

Closed
dmiller-nmap opened this issue Apr 21, 2018 · 0 comments
Closed

Nmap should prevent Windows from going to sleep while scanning #1192

dmiller-nmap opened this issue Apr 21, 2018 · 0 comments

Comments

@dmiller-nmap
Copy link

dmiller-nmap commented Apr 21, 2018

Nmap scans sometimes take a long time, and Nmap does not tolerate scan interruptions (maybe that should be its own issue!). Windows offers ways for applications to report that the system is "in use" and should not be suspended due to idle timeouts. Nmap should use those methods to avoid interruptions when possible.

Note that this should be done by Nmap itself and not Zenmap, since there's no reason Zenmap can't be suspended and resume just fine. Also, we should take care not to use any method that prevents the screen from locking, since Nmap does not require the display and screen locks are a security mechanism.

Reference: SetThreadExecutionState

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

No branches or pull requests

1 participant