PDA

Click to See Complete Forum and Search --> : Urls


Therealmaster
February 21st, 2002, 12:35 PM
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.

morfius
February 21st, 2002, 12:51 PM
Do you mean in binary/hex?

Therealmaster
February 21st, 2002, 01:22 PM
No just a normal long integer ie http://<insert number here>

Therealmaster
February 21st, 2002, 01:26 PM
As far as i can remember the number is a 32-bit unsigned integer, called a D-word

vittu37
February 21st, 2002, 05:48 PM
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.

souleman
February 21st, 2002, 06:02 PM
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.