How many bytes?
Page 1 of 1
- Lance(HAOH)Intermediate
-
OS : Windows XP Professional, Windows 7 Enterprise, Windows 8 Professional WMC, Ubuntu Linux
Anti-Malware : Avast 8
Posts : 143
Rubies : 4503
Likes : 0
Could anyone please explain to me why this uses 32 bytes? Shouldn't 8 bits make 1 byte
and this should make up 16 bytes?
0000000: 0100 4d61 696e 2053 742e 0000 0000 0000 ..Main St.......
0000016: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000032: 1900 536f 7574 6820 5374 2e00 0000 0000 ..South St......
0000048: 0000 0000 0000 0000 0000 0000 0000 0000 ................
and this should make up 16 bytes?
0000000: 0100 4d61 696e 2053 742e 0000 0000 0000 ..Main St.......
0000016: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000032: 1900 536f 7574 6820 5374 2e00 0000 0000 ..South St......
0000048: 0000 0000 0000 0000 0000 0000 0000 0000 ................
- skilldegreeIntermediate
-
OS : Win7 x64 Ultimate
Posts : 55
Rubies : 3327
Likes : 0
Um not 100% sure, but that looks like hex to me. so each individual number would take up 1 byte?
- Lance(HAOH)Intermediate
-
OS : Windows XP Professional, Windows 7 Enterprise, Windows 8 Professional WMC, Ubuntu Linux
Anti-Malware : Avast 8
Posts : 143
Rubies : 4503
Likes : 0
Yup. The chunk of numbers is hexadecimal view from a hex-editor. But each individual number is called a bit. 8 bits make a byte. But I am confused... The book which I took the sample from wrote that this was a 32 bit string. Could someone please help to clarify my doubts?
- Doctor InfernoSite Admin
-
OS : Windows 7 Home Premium and Ultimate X64
Anti-Malware : Kaspersky PURE and Malwarebytes' Anti-Malware
Posts : 11975
Rubies : 75705
Likes : 14
Hello,
Each hexadecimal digit represents four binary digits also known as bits. So ignoring the equation of 8 bits = 1 bytes, there are 32 bytes as counted. Shown in bold:
0000000: 0100 4d61 696e 2053 742e 0000 0000 0000 ..Main St.......
0000016: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000032: 1900 536f 7574 6820 5374 2e00 0000 0000 ..South St......
0000048: 0000 0000 0000 0000 0000 0000 0000 0000 ................
Each hexadecimal digit represents four binary digits also known as bits. So ignoring the equation of 8 bits = 1 bytes, there are 32 bytes as counted. Shown in bold:
0000000: 0100 4d61 696e 2053 742e 0000 0000 0000 ..Main St.......
0000016: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000032: 1900 536f 7574 6820 5374 2e00 0000 0000 ..South St......
0000048: 0000 0000 0000 0000 0000 0000 0000 0000 ................
Please be a GeekPolice fan on Facebook!

Have we helped you? Help us! | Doctor by day, ninja by night.
- Lance(HAOH)Intermediate
-
OS : Windows XP Professional, Windows 7 Enterprise, Windows 8 Professional WMC, Ubuntu Linux
Anti-Malware : Avast 8
Posts : 143
Rubies : 4503
Likes : 0
Thanks for your help! 

- Doctor InfernoSite Admin
-
OS : Windows 7 Home Premium and Ultimate X64
Anti-Malware : Kaspersky PURE and Malwarebytes' Anti-Malware
Posts : 11975
Rubies : 75705
Likes : 14
Glad I could help! 

Please be a GeekPolice fan on Facebook!

Have we helped you? Help us! | Doctor by day, ninja by night.
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum