If an NSE script times out, what happens to the script and the scan?

Prepare for the Nmap and ZenMap Tests. Access flashcards and multiple choice questions, with hints and explanations for each question. Ensure success in your exam!

Multiple Choice

If an NSE script times out, what happens to the script and the scan?

Explanation:
NSE scripts have per-script timeouts so a slow or hanging script won’t block the whole scan. When a script exceeds its allowed time, that script is terminated and marked as timed out. The engine then keeps running other scripts for the same target or other targets, so the scan continues with the remaining work. You can adjust how long scripts are allowed to run with --script-timeout if you need longer-running checks. This behavior ensures progress even if some scripts take longer to complete.

NSE scripts have per-script timeouts so a slow or hanging script won’t block the whole scan. When a script exceeds its allowed time, that script is terminated and marked as timed out. The engine then keeps running other scripts for the same target or other targets, so the scan continues with the remaining work. You can adjust how long scripts are allowed to run with --script-timeout if you need longer-running checks. This behavior ensures progress even if some scripts take longer to complete.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy