Hacker News new | ask | show | jobs
by rejschaap 2073 days ago
Probably not a great idea to make it so easy to scan the entire internet. Even providing the command in the readme before explaining why it is a bad idea.
2 comments

There are numerous public domain tools that do this, so the cat is already out of the bag.

Last I read about it, you can scan the entire IPv4 space for a port in about 40 minutes providing you have the bandwidth and a forgiving ISP. I see another comment claiming a tool can do it in 6 minutes. Easy at "apt get install" and a single command.

The tool that can do it in 6 minutes is massscan, the original repo of which is the link of the post:

https://github.com/robertdavidgraham/masscan

Note that "scan the internet in 6 minutes" only means this tool is capable of generating packets fast enough on the host machine to theoretically do a 6 minute scan. In practice, the NIC, home network, and local ISP connection will bottleneck and the scan will be orders of magnitude slower.

It's been trivial to do for ages even before masscan existed.

Even then, you exist as an entity on the internet to have things connect to you. If there are ways in which you don't want to be connected to, you have a firewall to enforce that.