DWORD encoding ?
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

