Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #### Running this -
  2. #!/run/current-system/sw/bin/bash
  3.  
  4. set -x
  5.  
  6. cat > temp <<EOF
  7. dcu 0x0040068f;
  8. ! echo -n "value of rax: ";
  9. dr?rax;
  10. ! echo -n "value of rip: ";
  11. dr?rip;
  12. ! echo -n "executing: ";
  13. pd 1 @ rip;
  14. ds;
  15. ! echo -n "value of rax: ";
  16. dr?rax;
  17. EOF
  18.  
  19. r2 -q -d -e scr.color=false -i temp example2/example2
  20.  
  21. ### Produces this -
  22. value of rax: 0x00400680
  23. value of rip: 0x0040068f
  24. executing: ;-- rip:
  25. 0x7fdcbdf6bc10 4889e7 mov rdi, rsp
  26. value of rax: 0x5612a329a268c500
  27. a has value: 03
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement