Cancelling a scan

While a scan runs, the strip under the header has a Cancel scan button. It stops nmap immediately and marks the scan as cancelled in Scans & events; nothing from that scan is saved, no notifications are sent and it does not count towards the typical duration. It is only available until the results start being saved (the button is greyed out for the last moment of a scan). The same is available as POST /api/scans/cancel.

Three presets set these for you: Default (the original behavior), Fast (T4, top 200 ports and light version detection in deep scans) and Fastest (also no OS or version detection and no reverse DNS, quick scans on the top 50 ports, 2 minute limit per host). The card shows the exact nmap command lines that result.