Scan a class B subnet avoiding ranges from a specific exclude file

masscan

  • Network scanner for scanning as fast as possible.
    Best run with elevated privileges. Nmap compatibility run `masscan --nmap` to find out more.
    More information: <https://github.com/robertdavidgraham/masscan>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

masscan {{10.0.0.0/16}} --top-ports {{100}} --excludefile {{path/to/file}}

click the source code to copy install masscan on any operating system with command-not-found.com