daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (gdb) r `perl -e 'print "A"x0x40c, "B"x0x4'`
  2. Starting program: /home/howard/repos/bof/easy32 `perl -e 'print "A"x0x40c, "B"x0x4'`
  3. Input: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBB
  4.  
  5. Program received signal SIGSEGV, Segmentation fault.
  6. 0x42424242 in ?? ()
  7. (gdb) b *vulnerable+22
  8. Breakpoint 1 at 0x8048461: file easy.c, line 14.
  9. (gdb) r `perl -e 'print "A"x0x40c, "B"x0x4'`
  10. The program being debugged has been started already.
  11. Start it from the beginning? (y or n) y
  12. Starting program: /home/howard/repos/bof/easy32 `perl -e 'print "A"x0x40c, "B"x0x4'`
  13.  
  14. Breakpoint 1, 0x08048461 in vulnerable (input=0xffffd7e6 'A' <repeats 200 times>...) at easy.c:14
  15. 14        strcpy(buffer, input);
  16. (gdb) i r
  17. eax            0xffffd180    -11904
  18. ecx            0xffffd5c0    -10816
  19. edx            0xffffd5e4    -10780
  20. ebx            0x0    0
  21. esp            0xffffd170    0xffffd170
  22. ebp            0xffffd588    0xffffd588
  23. esi            0x2    2
  24. edi            0xf7fb0000    -134545408
  25. eip            0x8048461    0x8048461 <vulnerable+22>
  26. eflags         0x296    [ PF AF SF IF ]
  27. cs             0x23    35
  28. ss             0x2b    43
  29. ds             0x2b    43
  30. es             0x2b    43
  31. fs             0x0    0
  32. gs             0x63    99
  33. (gdb)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top