Skip to content

Instantly share code, notes, and snippets.

@mainframed
Created October 18, 2017 04:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mainframed/b6aa4fab46f0cbc111a5ac09863d8385 to your computer and use it in GitHub Desktop.
Save mainframed/b6aa4fab46f0cbc111a5ac09863d8385 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Nmap can crash when scanning large ranges
# To use this script, start your scan with whatever
# nmap options you want making sure you use -oA <filename>
# or -oG <filename> (you need the gnmap file) then cancel
# the scan. replace <filename> below and run this script.
# It will also record when it failed to a file called failed.txt
until nmap --resume <filename>.gnmap
do
date >> failed.txt
done
#copyright SoF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment