I saw a tutorial, once about being able to rewrite an IPv4 ip as a long integer, does any have/ know where i can find information on this. TIA.
Printable View
I saw a tutorial, once about being able to rewrite an IPv4 ip as a long integer, does any have/ know where i can find information on this. TIA.
Do you mean in binary/hex?
No just a normal long integer ie http://<insert number here>
As far as i can remember the number is a 32-bit unsigned integer, called a D-word
Therealmaster - 2600 had an article in v17,#3 Fall 2000 page 43 titled: "Another Way to Defeat URL Filters" -by ASM_dood.
Here is the jist of the article. Take the IP address you want, and convert each octet into its binary form. Then take each binary octet and link them together i.e: 1.2.3.4 -> 00000001000000100000001100000100
plug that number into a scientific calculator in binary mode and then convert to decimal i.e.
00000001000000100000001100000100 -> 16909060
put this in after the http://16909060
and you have converted IP to decimal.
http://www.geektools.com/geektools-cgi/ipconv.cgi
This is an online calculator to do the conversion for you. You can enter either the dotted-quad address (192.168.1.5) or the decimal address (3232235781) and it will do the conversion for you.