News for hackers. Stuff that matters.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by jerf on Tuesday September 28, 2021 @11:10AM (#28683712)
Well, 5 minutes is about 2^8 seconds, you can get about 2^32 cycles per core per second nowadays, and you can have about 2^6 cores maximum, so with an incredibly, unspeakably generous "scan one IP in one cycle" a 64-core computer should be able to scan about 2^(8+32+6) = 2^46 addresses in a little under five minutes.

We seem to be a wee bit short of 2^126, yes.

Re:Masscan: TCP port scanner, scanning entire Internet in un... by lol768 on Tuesday September 28, 2021 @11:22AM (#28683870)
Lots of people like to pretend the "entire internet" is synonymous with the IPv4 address space...
Re:Masscan: TCP port scanner, scanning entire Internet in un... by ehPReth on Tuesday September 28, 2021 @12:16PM (#28684496)
My ISP for one…
Re:Masscan: TCP port scanner, scanning entire Internet in un... by birdyrooster on Tuesday September 28, 2021 @03:10PM (#28686266)
Well you can understand why in the case of masscan, it would be a pretty boring claim to say that masscan is “scanning the entire internet in 100 years from a single machine!”
Re:Masscan: TCP port scanner, scanning entire Internet in un... by gitfan86 on Tuesday September 28, 2021 @11:12AM (#28683746)
Large blocks of IPs are not part of the internet. 10. 172. Etc...
Re:Masscan: TCP port scanner, scanning entire Internet in un... by jerf on Tuesday September 28, 2021 @11:27AM (#28683949)
The IPv4 internet is merely 2^32, and people have been scanning that whole thing for years now. The /112 is referring to IPv6 addresses.

Plus the copy about not hammering other networks won't matter when you're trying to scan entire /64s that are behind one home router or something. That's gonna get noticed. You can't really scan IPv6 like you can scan IPv4, the math I gave is part of why. The code to do it is trivial, but the hardware just isn't there.

Re:Masscan: TCP port scanner, scanning entire Internet in un... by londons_explore on Tuesday September 28, 2021 @11:43AM (#28684138)
I'm really surprised shady figures aren't publishing lists of active IPv6 addresses to allow scanning.

For example, someone with access to a backbone internet router could easily log src and destination ipv6 addresses, and sell the complete list sorted and compressed. Malware authors could then use the list to portscan for badly firewalled stuff.

Re:Masscan: TCP port scanner, scanning entire Internet in un... by pixl97 on Tuesday September 28, 2021 @11:49AM (#28684202)
With IPv6 privacy extensions this gets really big really fast and is mostly empty.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by dadrian on Tuesday September 28, 2021 @01:19PM (#28685159)
People absolutely do this, they're just not going to post it for free.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by ryanlol on Tuesday September 28, 2021 @12:01PM (#28684347)
It’s not surprising. Malware authors aren’t going to pay for something that’ll have no meaningful effect on their infection rates.

There’s more than enough stuff on IPv4, IPv6 isn’t worth the effort.

FWIW shodan was setting up their own public ntp servers to track down v6 users.

Re:Masscan: TCP port scanner, scanning entire Internet in un... by pjf on Tuesday September 28, 2021 @05:47PM (#28687922)
https://ipv6hitlist.github.io/

First time to be called shady, though ;)

Re:Masscan: TCP port scanner, scanning entire Internet in un... by sva_ on Tuesday September 28, 2021 @03:00PM (#28686175)
I'm pretty sure the IPv4 internet is constantly being scanned. I blocked ICMP echo request (ping) in my firewall, and saw it throws a warning of an attempted ping every other minute.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by hsbauauvhabzb on Tuesday September 28, 2021 @06:42PM (#28688330)
Scanning 2^32 wasn’t exactly viable 30 years ago, so never say never.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by jerf on Tuesday September 28, 2021 @10:26PM (#28689643)
Yes, people often say this about IPv6 thinking they're being clever. It's not. 2^128 is big, relative to the universe itself.

It is an accident of history that computing spent so much time at binary orders of magnitude that technology could catch up and make the previous limits seem small. At some point, the exponential curve takes off and no amount of physical resources can catch up to it, because our universe taps out at O(n^3). 2^128 is pretty much on the other side of that takeoff point. You can almost catch up to it... at the cost of the resources of an entire galaxy... or more.

(Technically it's even sooner than O(n^3) if you also have to avoid black holes, but since the relevant comparison here is "exponential" the details hardly matter here.)

Re:Masscan: TCP port scanner, scanning entire Internet in un... by hsbauauvhabzb on Wednesday September 29, 2021 @07:23AM (#28692317)
Fair point, I just did the math and even with a botnet of 13m (pulled from googling ‘largest botnet’) it’d still take e+22 years, give or take a few billion.

Still, network address obfuscation really shouldn’t be a security control.

Re:Masscan: TCP port scanner, scanning entire Internet in un... by signa11 on Tuesday September 28, 2021 @11:18AM (#28683822)
all non-routeable addresses, multicast etc. etc.