Saturday, July 25, 2009

What do you know about URLs?Change IP to octal/Hexa Decimal !

Every site on the Internet is identified by a unique IP address/Name.Most of the us use

website's name in browser,but we can access it by using its IP :-)

Getlaidtonight.com@74.125.127.100 Some might think its getlaidtonight.com but its Google :)

To find out the IP address of a website you can use ping command, or you can always use whois

;-)

Lets take Google.com for our example , using ping command we found out Google s IP as

74.125.127.100 . Now you can use this in your browser !

http://Username:password@blah-bla.com/members/restricted.html

If the website requires username and/or password to access its content this can be used for

automatic login else it is ignored by the server.

You can try 1243321@74.125.127.100 it will still lead you to Google.com

This might not work in 6+ versions of Internet Explorer.

This is what Firefox says


















& Opera :

























In this case,the characters preceding '@' is ignored and google.com is loaded.

We can even convert our IP in to OCTAL/Dword/Hexa Decimal , and it still works in browser.

OCTAL :

we can represent ip in base of 8 , use calc in windows to do the conversion.































use scientific mode,which looks something like,
















IP in dotted-decimal format is 74.125.127.100 ,
Octal value of 74 is 112
Octal value of 125 is 175
Octal value of 127 is 177
Octal value of 100 is 220

Now we can write it as 112.175.177.220 , this looks like dotted-decimal format,so zero is added in front of it so that browser realises it is in octal form.You can add any number of zeros !

74.125.127.100 in Octal form is 0112.0175.0177.0220 or 00112.0000000175.00177.0220

HexaDecimal:

Convert all the individual values in to hexa decimal.The hexa decimal ip is preceded by 0x

Hexa decimal value of 74 is 4a
Hexa decimal value of 125 is 7d
Hexa decimal value of 127 is 7f
Hexa decimal value of 100 is 64

74.125.127.100 in hexadecimal form is 0x4A.0x7d.0x7f.0x64

You can even use combination of all these , ex : 74.0x7d.0177.100

You can use this site which converts dotted-decimal to octal/hexadecimal/dword .

Thank you for reading.

0 comments: