Advertisement
Guest User

Untitled

a guest
Sep 8th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDB 2.59 KB | None | 0 0
  1. (gdb) i functions
  2. All defined functions:
  3.  
  4. Non-debugging symbols:
  5. 0x0804849c  _init
  6. 0x080484d0  printf@plt
  7. 0x080484e0  fflush@plt
  8. 0x080484f0  getchar@plt
  9. 0x08048500  fgets@plt
  10. 0x08048510  time@plt
  11. 0x08048520  puts@plt
  12. 0x08048530  system@plt
  13. 0x08048540  exit@plt
  14. 0x08048550  srand@plt
  15. 0x08048560  __libc_start_main@plt
  16. 0x08048570  setvbuf@plt
  17. 0x08048580  memset@plt
  18. 0x08048590  rand@plt
  19. 0x080485a0  __isoc99_scanf@plt
  20. 0x080485b0  __gmon_start__@plt
  21. 0x080485c0  _start
  22. 0x080485f0  __x86.get_pc_thunk.bx
  23. 0x08048600  deregister_tm_clones
  24. 0x08048630  register_tm_clones
  25. 0x08048670  __do_global_dtors_aux
  26. 0x08048690  frame_dummy
  27. 0x080486bb  askQuestion
  28. 0x0804875a  runChallenge
  29. 0x080488c8  printWelcome
  30. 0x080488e4  identify
  31. 0x08048978  sys
  32. 0x080489a8  main
  33. 0x08048a10  __libc_csu_init
  34. 0x08048a70  __libc_csu_fini
  35. 0x08048a74  _fini
  36. 0xf7fd6a30  _dl_catch_exception@plt
  37. 0xf7fd6a40  malloc@plt
  38. 0xf7fd6a50  _dl_signal_exception@plt
  39. 0xf7fd6a60  calloc@plt
  40. 0xf7fd6a70  realloc@plt
  41. 0xf7fd6a80  _dl_signal_error@plt
  42. 0xf7fd6a90  _dl_catch_error@plt
  43. 0xf7fd6aa0  free@plt
  44. 0xf7fdf060  _dl_rtld_di_serinfo
  45. 0xf7fe5db0  _dl_debug_state
  46. 0xf7fe75d0  _dl_mcount
  47. 0xf7fe7e80  _dl_get_tls_static_info
  48. 0xf7fe7f70  _dl_allocate_tls_init
  49. 0xf7fe8200  _dl_allocate_tls
  50. 0xf7fe8240  _dl_deallocate_tls
  51. 0xf7fe8530  ___tls_get_addr
  52. 0xf7fe8570  __tls_get_addr
  53. 0xf7fe8960  _dl_make_stack_executable
  54. 0xf7fe8e70  _dl_find_dso_for_object
  55. 0xf7feaeb0  _dl_exception_create
  56. 0xf7feafb0  _dl_exception_create_format
  57. 0xf7feb240  _dl_exception_free
  58. ---Type <return> to continue, or q <return> to quit---q
  59. Quit
  60. (gdb) i b
  61. Num     Type           Disp Enb Address    What
  62. 2       breakpoint     keep y   0x0804895b <identify+119>
  63.     breakpoint already hit 1 time
  64. 5       breakpoint     keep y   0x08048978 <sys>
  65.     breakpoint already hit 1 time
  66. 6       breakpoint     keep y   0x08048979 <sys+1>
  67.     breakpoint already hit 1 time
  68. (gdb) s
  69. Single stepping until exit from function identify,
  70. which has no line number information.
  71. aaaaaaaaaaaaaaaaaaaaaaaa78890408
  72.  
  73. Program received signal SIGSEGV, Segmentation fault.
  74. 0x39383837 in ?? ()
  75. (gdb)  i r
  76. eax            0x39383837   959985719
  77. ecx            0xf7faf89c   -134547300
  78. edx            0xffffcfe4   -12316
  79. ebx            0x0  0
  80. esp            0xffffcfbc   0xffffcfbc
  81. ebp            0xffffd008   0xffffd008
  82. esi            0xf7fae000   -134553600
  83. edi            0x0  0
  84. eip            0x39383837   0x39383837
  85. eflags         0x10292  [ AF SF IF RF ]
  86. cs             0x23 35
  87. ss             0x2b 43
  88. ds             0x2b 43
  89. es             0x2b 43
  90. fs             0x0  0
  91. gs             0x63 99
  92. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement