robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23.79k stars 3.08k forks source link

Txt as input #666

Open lanjian747 opened 2 years ago

lanjian747 commented 2 years ago

Can masscan take a TXT file as input and Scan IP in the TXT file?

mikehardenize commented 2 years ago

You can do -c filename, where the file contains e.g:

range=192.168.0.0/16
range=10.0.0.0/8
mzpqnxow commented 12 months ago

You can do -c filename, where the file contains e.g:


range=192.168.0.0/16

range=10.0.0.0/8

Alternately, -iL which behaves the same as nmap -iL