![]() |
|
[py] Automated masscan scanning for a txt full of ip ranges - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Blackhat • Red Team • Offensive Security (https://hackforums.net/forumdisplay.php?fid=447) +---- Forum: Hacking Tools and Programs (https://hackforums.net/forumdisplay.php?fid=10) +---- Thread: [py] Automated masscan scanning for a txt full of ip ranges (/showthread.php?tid=6295501) |
[py] Automated masscan scanning for a txt full of ip ranges - Biggy_Asian - Apr 1, 2025 I feel its stupid that masscan doesnt support file range stuff (not to what I know off anyway). Make a file in the same dir as the py script called "ip_ranges.txt", run the script with sudo, enjoy. Format for ranges (txt): Code x.0/24Output format (txt): Code # Masscan 1.3.2 scan initiated Tue Apr 1 15:32:54 2025Code import subprocessRE: [py] Automated masscan scanning for a txt full of ip ranges - Tyr - Apr 1, 2025 Nice. Give this a try sometime if you want to get funky. Here’s an example of your script with obfuscated variable names: Code import subprocessRE: [py] Automated masscan scanning for a txt full of ip ranges - BrothaMike - Apr 1, 2025 Masscan does allow you to have port ranges in a txt file as I've only been scanning it that way lol. -iL ipranges.txt does this pretty much. But this makes it much easier so thank you! RE: [py] Automated masscan scanning for a txt full of ip ranges - Biggy_Asian - Apr 2, 2025 (Apr 1, 2025 07:41 PM)BrothaMike Wrote: Masscan does allow you to have port ranges in a txt file as I've only been scanning it that way lol. I have never seen the -iL arg in mine, maybe I'm either on an older version or just blind but no problem. RE: [py] Automated masscan scanning for a txt full of ip ranges - x64x86 - Apr 18, 2025 (Apr 1, 2025 07:41 PM)BrothaMike Wrote: Masscan does allow you to have port ranges in a txt file as I've only been scanning it that way lol. I completely agree with you. Even a child knows this))) |