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

Study for the Nmap/ZenMap Switches Test. Prepare with flashcards and multiple choice questions, each question provides hints and explanations. Get ready for 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 Examzify

You can unsubscribe at any time. Read our privacy policy