Guest User

Untitled

a guest
Feb 15th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(int argc, char * argv[]) {
  3. char buf[256];
  4. if(argc == 1) {
  5. printf("Usage: %s inputn", argv[0]);
  6. exit(0);
  7. }
  8. strcpy(buf,argv[1]);
  9. printf("%s", buf);
  10. }
  11.  
  12. Breakpoint 1, 0x080497d6 in main ()
  13. (gdb) info registers
  14. eax 0xbffff1f0 -1073745424
  15. ecx 0xbffff575 -1073744523
  16. edx 0xbffff1f0 -1073745424
  17. ebx 0x80da000 135110656
  18. esp 0xbffff1e0 0xbffff1e0
  19. ebp 0xbffff2f8 0xbffff2f8
  20. esi 0x80da000 135110656
  21. edi 0x80481e8 134513128
  22. eip 0x80497d6 0x80497d6 <main+97>
  23. eflags 0x246 [ PF ZF IF ]
  24. cs 0x73 115
  25. ss 0x7b 123
  26. ds 0x7b 123
  27. es 0x7b 123
  28. fs 0x0 0
  29. gs 0x33 51
Add Comment
Please, Sign In to add comment