c - saving hexadecimal value in .dat file -
in tutorial writer saves 48 bytes of padding followed address 0x601040 in file called data1.dat.the writer shows output:
$ hexdump data1.dat -vc 00000000 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |aaaaaaaaaaaaaaaa| 00000010 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |aaaaaaaaaaaaaaaa| 00000020 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |aaaaaaaaaaaaaaaa| 00000030 40 10 60 00 00 00 00 00 |@.`.....| 00000038
i created file called data1.dat on 64 bit ubuntu containing:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4010600000000000
but when type hexdump data1.dat -vc get:
test@test-virtualbox:~$ hexdump data1.dat -vc 00000000 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |aaaaaaaaaaaaaaaa| 00000010 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |aaaaaaaaaaaaaaaa| 00000020 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |aaaaaaaaaaaaaaaa| 00000030 34 30 31 30 36 30 30 30 30 30 30 30 30 30 30 30 |4010600000000000| 00000040 0a |.| 00000041 test@test-virtualbox:~$
i not sure doing wrong.
Comments
Post a Comment