Author Topic: Pinging the whole internet  (Read 12654 times)

0 Members and 1 Guest are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Pinging the whole internet
« on: September 22, 2014, 05:11:38 pm »
The ipv4 version of the internet counts 2^32 individual addresses. I decided to ping all of them, wait for a response and if I get one: log that to a file.

I wrote a script that does this for me. If I run 256 instances of this script simultaneously I can ping the whole internet in about 10 days.
Just some logfiles are not super interesting to watch, but once you convert them into an image it becomes a lot more interesting. This is a test image I generated using the data from the 83.xx.xx.xx range. Each pixel represents a block of 256 ip addresses. The color is determined by how many devices responded in the block.

Pinged all addresses in the 83.xx.xx.xx range:

It takes about 1 hour to generate a picture like this. I will release the source once it's done :D



If you like my work: why not give me an internet?








Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Pinging the whole internet
« Reply #1 on: September 22, 2014, 11:47:15 pm »
I wonder if that's legal or at least within your ISP rules though? Would they consider this as some form of spam or abusing resources? You can get banned from IRC servers and channels for pinging entire userlists because it causes the client to beep or highlight the person unnecessarily.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Pinging the whole internet
« Reply #2 on: September 23, 2014, 02:12:53 am »
I checked their policy. They dont actively look for abnormal network behaviour, but if it disturbs the experience of other users they will contact the user that causes it. Pinging several thousand devices every minute should not be a huge load on the servers. It's not like I am attacking a single server with a distributed attack.
If you like my work: why not give me an internet?








Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Pinging the whole internet
« Reply #3 on: September 23, 2014, 08:04:05 am »
You can get banned from IRC servers and channels for pinging entire userlists because it causes the client to beep or highlight the person unnecessarily.
That's not really the same thing as a ICMP ping.
« Last Edit: September 23, 2014, 08:30:08 am by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Pinging the whole internet
« Reply #4 on: September 23, 2014, 08:07:20 am »
Looking interesting :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline utz

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 161
  • Rating: +28/-0
    • View Profile
    • official hp - music, demos, and more
Re: Pinging the whole internet
« Reply #5 on: September 23, 2014, 03:24:16 pm »
InternetCensus2014 Mini  :thumbsup:

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: Pinging the whole internet
« Reply #6 on: September 23, 2014, 04:32:49 pm »
Keep in mind that some companies might automatically file abuse reports for your IP and/or firewall you if you sequentially scan their IP ranges.
I'm not sure if this is a problem if you do this from a (slow) home connection, but you should randomize your targets if you run this script from a 1gbps server :P
There are some tools like zmap or masscan you could take a look at.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Pinging the whole internet
« Reply #7 on: September 23, 2014, 06:02:21 pm »
Thanks for the clarification guys. I wasn't too sure if such pigning involved the same thing as doing it on IRC, especially in terms of annoyance of other Internet users. I guess randomizing the targets might be a good idea, though, like compu said.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Pinging the whole internet
« Reply #8 on: September 23, 2014, 07:57:35 pm »
ICMP pings and IRC pings kinda have the same goal, but are quite different. One is used to check if the target computer has a working Internet connection and does not notify anything other than the target computer sending a single reply packet back and the other is pretty much used to check if the target user is still alive and in front of their computer.

And yeah, despite being not annoying at all, some people still finds ICMP pings annoying for various reasons (such as the risk of DDoS making your equipment slow down or just security, sometimes you don't want to tell everyone you exist at this IP so you block requests). They usually block it on their router or server or they check its rate for DDoSes and attacks.

So yeah, better take precautions so some people wouldn't take it as an attack.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Pinging the whole internet
« Reply #9 on: September 24, 2014, 04:15:20 am »
I should ping ip's in different order so it appears random. That way nobody will get excessive load on their 1MHz servers :P
Right now I ping it in this order:
Code: [Select]
0.xx.0.(0-255)
0.xx.1.(0-255)
0.xx.2.(0-255)
(...)
0.xx.255.(0-255)

1.xx.0.(0-255)
1.xx.1.(0-255)
(...)
xx means 256 scripts run in parallel.

I could change this to:
Code: [Select]
(0-255).0.xx.0
(0-255).1.xx.0
(0-255).2.xx.0
(...)
(0-255).255.xx.0

(0-255).0.xx.1
(0-255).1.xx.1
(...)
And so on...

The downside of this is that you need to ping the entire ipv4 range before your data makes sense :P
If you like my work: why not give me an internet?








Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Pinging the whole internet
« Reply #10 on: September 24, 2014, 10:05:55 am »
Have fun with 192.168.x.x

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Pinging the whole internet
« Reply #11 on: September 24, 2014, 10:38:41 am »
I will exclude reserved addresses from the scan. This includes the entire 127.x.x.x range as well.
« Last Edit: September 24, 2014, 02:43:10 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Pinging the whole internet
« Reply #12 on: September 24, 2014, 12:55:24 pm »
Hint: [nobbc] tags are magic ;)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Pinging the whole internet
« Reply #13 on: September 24, 2014, 02:43:44 pm »
Fixed. Thanks :)
If you like my work: why not give me an internet?








Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Pinging the whole internet
« Reply #14 on: September 24, 2014, 08:03:02 pm »
I wonder what happens when you ping 127.0.0.1... I never tried it :P