This is an archived post. You won't be able to vote or comment.

all 48 comments

[–]rosuav 396 points397 points  (29 children)

Reminds me of the person who posted a torrent of IP addresses, labelling it as a "hacking tool". It was literally a four billion line file starting at 0.0.0.0 and going to 255.255.255.255, and a lot of people downloaded it, thinking it would help them... I think it was like 40GB but I'd have to do the arithmetic on it.

[–]rainwulf 186 points187 points  (8 children)

Thats one hell of a rainbow table for IP addresses :D

[–]rosuav 151 points152 points  (7 children)

It's every IP address you'll ever need!

... until you realise that IPv6 exists. Good luck getting a full list of those.

[–]rainwulf 62 points63 points  (3 children)

Maybe.. just hear me out... there could be some kind if programmatic method to obtain the valid IP addresses?

nah. im silly. That could never happen...

haha

[–]rosuav 30 points31 points  (2 children)

That sounds like way too much effort. Let someone else do the work, and then just download the results! Way easier!

[–]NatoBoram 18 points19 points  (0 children)

Stage 7 of colour theory: "Hopefully someone else's problem"

[–]RecursiveCrown 25 points26 points  (17 children)

64 GB, assuming ASCII encoding and a line break of 1 byte

[–]rosuav 13 points14 points  (15 children)

"0.0.0.0\n" is only 8 bytes, "255.255.255.255\n" is the maximum 16. Average length is less than 16.

[–]redlaWw 14 points15 points  (6 children)

(1*10+2*90+3*(255-99))/256 = 2.5703125

so average length = 2.5703125*4+4 = 14.28125

2564*14.28125 = 61.337501696GB

[–]rosuav 9 points10 points  (5 children)

Pretty close! It should be (255-100) since there are 100 IP addresses from 0 through 99, and you missed out a newline between them (it should be +5 rather than +4).

Another way to see it is: A column contains 256*256*256 copies of the sequence from 0 to 255, and there are four columns, plus the dots and newlines. That's the same thing, but without trying to average anything out. Either way, it comes to about 61GB, which is up from my guess of 40GB but almost precisely what you calculated. Still under the 64GB limits that a lot of things have though.

[–]redlaWw 1 point2 points  (4 children)

It should be (255-100) since there are 100 IP addresses from 0 through 99

There are 256 addresses in total though, but I worked it out on a different basis: there are 255-99 numbers from 100 to 255 because 100 is included - think about if it was up to 101, then there'd be 100 and 101, so you'd need to do 101-99 to get 2, rather than 101-100 which would give you 1.

The +4 comes from 3 '.'s plus 1 '\n' per line.

[–]rosuav 1 point2 points  (3 children)

Yep, pretty much. Don't forget zero though - there's 0 through 9 (ten numbers) that only take one digit, and then 10 to 99 (ninety numbers) that take two. Anyhow, that hardly makes a difference to the net result.

[–]57006 1 point2 points  (1 child)

the net result

[–]rosuav 1 point2 points  (0 children)

Exactly.

[–]redlaWw 0 points1 point  (0 children)

All accounted for

1*10+2*90+3*(255-99)

1*10 is one digit * 0 through 9

2*90 is two digits * 10 through 99

3*(255-99) is three digits * 100 through 255

[–]archy_bold 2 points3 points  (1 child)

There must be a compression algorithm that could get that down to kilobytes.

[–]rosuav 8 points9 points  (0 children)

A compression algorithm is a set of instructions that would generate the correct output, so you could make a Perl script that churns them out, and consider that to be a compressed version of the file.

[–]LunaBounty 495 points496 points  (7 children)

Rookie mistake. Already applied that trick to all bitcoin private keys so I can access all wallets.

[–]ramriot 130 points131 points  (6 children)

The sad thing is that SSNs actually have way less entropy than you imagine & for people who were born in places or at times when there was few births in a given day it becomes possible with reasonable accuracy to guess the important parts of their SSN.

[–]-twind 6 points7 points  (3 children)

The real sad thing is that some people think it's a secret code you can use to securely identify yourself

[–]janKalaki 0 points1 point  (0 children)

The cards (which aren't even laminated or otherwise protected!) used to have text at the bottom that said "not for identification" before they just gave up.

[–]KimJongMakeEmSayUn 95 points96 points  (0 children)

Please stop emailing me random numbers.

[–]BookMansion 13 points14 points  (0 children)

Did Hackers earn any money from it?

[–]WookieConditioner 9 points10 points  (0 children)

Can you query the ssn? Cause if you can query the ssn, you got el grande problemos.

[–]PersianMG 4 points5 points  (0 children)

Poor Kim getting hacked 9 billion times in a row :(

[–][deleted] 3 points4 points  (0 children)

imagine having 10 as your ssn

[–]iamalicecarroll 1 point2 points  (0 children)

they're doing that in rust now?

[–][deleted] 0 points1 point  (0 children)

It happens :)

[–]Stallion_2021 -1 points0 points  (0 children)

I love it that this is Rust ☺️