November 14, 2006

DWORD encoding ?

by Matnet @ 10:20 pm in WWW

I try to lookup "dword" from google and the result is only this :

Definitions of dword on the Web:

Double word. A data element that is 2 words, 4 bytes, or 32 bits in size.
www.ti.com/sc/docs/products/msp/intrface/usb/terms.htm


Before this i had posted regarding phishing technic that used dword to encode the real IP at the URL. So now i'll discuss how 66.117.217.154 translate to 1115019674

From the definition on google dword is 4 bytes or 32 bits, yes of course IPV4 is 32bits so the definition is true. But how the IP translated to usual decimal number ?

OK now lets take a look our first octet :

notes* : 0x is prefix for hex , 0b prefix for binary

Decimal value : 66
Binary value : 0b1000010
Hex value : 0x42

second octet :

Decimal value : 117
Binary value : 0b1110101
Hex value : 0x75

third octet :

Decimal value : 217
Binary value : 0b11011001
Hex value : 0xd9

Fourth octet :

Decimal value : 154
Binary value : 0b10011010
Hex value : 0x9a

Ok now lets take a look at Hex value.

66.117.217.154 will be 0x42.0x75.0xd9.0x9a

so

0x42.0x75.0xd9.0x9a = 0x4275d99a

ok now translate the hex value to decimal, we will get :

0x4275d99a = 1115019674

That's all

p/s :-

- Feel free to access my blog using this dword - http://3393926802

- i'm using this calculator to compute all calculation http://www.microcontroller.com/Embedded.asp?did=92


Comments
* Name


* Email Address (will not be published)


Site



*Image Validation (?)

Comments

HTML: NO


:: Shout Me ::



:: About Me ::



They call me : Yachiru
Name : Yachiru Kusajishi
Birthday : February 12
Working Field : Shinigami lieutenant - 11th Division
E-mail : matnet80 [at] yahoo [dot] com


:: Calendar ::

February 2012
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29