How To: Find Random Devices on the Internet
I have said it before, but I love hping3. It's incredibly handy for all kinds of packet manipulation.
One feature I wanted to demonstrate is sending ICMP packets.
ICMP(Internet Communications Message Protocol) is very important as it is practically used for network management. When I want to see if a host is available/accessible on my network I send a quick ping and the target sends a ICMP packet back to me with the details of its status in the header.
ICMP is powerful because it is a tool that can evoke a response from the target without an actual error being present.
So for curiosity sake let's compare a simple ping with hping3:
is the same as
hping3 -1 -c 1 192.168.1.55
The only slight difference is that the ping will continue running until you stop it and the hping3 option sends only one ICMP packet.
If you are anything like me you may occasionally wonder about the vasteness of the Internet. It's huge and that is only considering the clearnet when we attempt to comprehend the enormity of the deep web it's then that our brains really start to wrinkle.
I did an experiment with hping3.
I wanted to use hping3 to send an ICMP packet out to the web and find a device. I didn't want to think about where the packet was going, or what type of device may be on the other end. I wanted to find a way to essentially stand in a room (the Internet) and yell any name that came to me and see who responds.
I found a way and it was incredibly easy.
hping3 -1 x.x.x.x --rand-dest -I wlan0 --fast
Run this command from your terminal and you will be sending a single ICMP packet out to completely random hosts over the internet.
You will get results very quickly, and honestly why wouldn't you, there are close to 26 Billion IoT devices connected to the internet
hping3 -1 192.168.1.x --rand-dest -I wlan0