robertdavidgraham / masscan

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

Are we able to target specific countries for massscan #368

Open antihackme opened 6 years ago

antihackme commented 6 years ago

Would like to scan only websites hosted in my country. Is this possible?

mzpqnxow commented 6 years ago

I don’t know, check your local law enforcement agency for assistance

On Sun, Aug 26, 2018 at 14:02 antihackme notifications@github.com wrote:

Would like to scan only websites hosted in my country. Is this possible?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/robertdavidgraham/masscan/issues/368, or mute the thread https://github.com/notifications/unsubscribe-auth/AHpRZHLeIE2l6eaMbfk57ghui4GRGD4mks5uUuKygaJpZM4WM4Pj .

p-l- commented 6 years ago

Shameless promotion: you can use IVRE and run: ivre runscans --output ListCIDRs --country XX > CIDRs-XX (the list is generated based on Maxmind GeoIP databases).

Then, just run masscan -iL CIDRs-XX.

jonaslejon commented 5 years ago

Blockfinder by @ioerror could also be used to map network to countries: https://github.com/ioerror/blockfinder