Skip to content

Instantly share code, notes, and snippets.

@AdrianKoshka
Forked from mainframed/until_nmap.sh
Created October 18, 2017 04:54
Show Gist options
  • Save AdrianKoshka/3ce3d08aa57eca55ef7883a96877507f to your computer and use it in GitHub Desktop.
Save AdrianKoshka/3ce3d08aa57eca55ef7883a96877507f 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