$ mkdir decrypt
$ d decrypt
$ cp /problems/core_decrypt.tar .
$ tar xvf core_decrypt.tar
$ cat cryptor.c
$ file ENCRYPTED
$ file core.26474
$ gdb cryptor core.26474
(gdb) info stack
(gdb) frame 1
(gdb) info locals
(gdb) print /x &key
(gdb) print /x key
$ python -c 'print "\xc5\xe4\x4c\x04\xbb\x2f\x5c\x10\xba\x75\x1b\xc3\x97\x4c\xdc\xdc"' > key
$ ./cryptor ENCRYPTED solution key
$ cat solution
No comments:
Post a Comment