News for hackers. Stuff that matters.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by chaz6 on Tuesday September 28, 2021 @11:02AM (#28683614)
I am not sure any computer is capable of sending and processing 2^126 packets (assuming global unicast, 1 packet out, 1 packet in) in under 5 minutes.
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.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by helge9210 on Tuesday September 28, 2021 @11:46AM (#28684167)
You can do it in parallel from several computers. Masscan has capability of dividing workload across multiple processes.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by martini333 on Tuesday September 28, 2021 @12:06PM (#28684398)
> It can scan the entire Internet in under 5 minutes, transmitting 10 million packets per second, from a single machine
Re:Masscan: TCP port scanner, scanning entire Internet in un... by birdyrooster on Tuesday September 28, 2021 @03:08PM (#28686246)
Definitely but then click bait wouldn’t be click bait without some misleading information
Re:Masscan: TCP port scanner, scanning entire Internet in un... by bmicraft on Tuesday September 28, 2021 @04:11PM (#28686930)
I would argue that most interesting (and unpatched?) servers do at least have an ipv4 address as well, if not exclusively
Re:Masscan: TCP port scanner, scanning entire Internet in un... by zamadatix on Tuesday September 28, 2021 @01:50PM (#28685485)
"Only" about a /15 worth of v6 is actively advertised on the internet. Still, good luck sending that many packets.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by dmw_ng on Tuesday September 28, 2021 @11:22AM (#28683879)
The v6 space has structure and is much smaller than that
Re:Masscan: TCP port scanner, scanning entire Internet in un... by kalleboo on Tuesday September 28, 2021 @11:28AM (#28683956)
Aside from Shodan's neat trick of infiltrating the NTP pool, are there any papers/blogs on successfully exploiting known properties of IPv6 (network prefixes, MAC vendors etc)? However I think about it it seems too massive
Re:Masscan: TCP port scanner, scanning entire Internet in un... by dmw_ng on Tuesday September 28, 2021 @11:53AM (#28684251)
I was mostly thinking about the sparse structure of upper bits (which are easily enumerable e.g. by downloading a RIPE database dump). As for the lower 64, MAC address OUIs contribute at most around 15 bits, and the distribution is likely strongly skewed towards only a handful of vendors, so actual randomness is probably lower still.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by pjf on Tuesday September 28, 2021 @05:49PM (#28687941)
Re:Masscan: TCP port scanner, scanning entire Internet in un... by tux3 on Tuesday September 28, 2021 @11:49AM (#28684196)
....infiltrating the NTP pool!

Oh my, that is clever =)

Re:Masscan: TCP port scanner, scanning entire Internet in un... by lima on Tuesday September 28, 2021 @12:47PM (#28684832)
Many providers sell netflow data.
Re:Masscan: TCP port scanner, scanning entire Internet in un... by OnlyMortal on Tuesday September 28, 2021 @12:04PM (#28684377)
Amateur!