Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### Running this -
- #!/run/current-system/sw/bin/bash
- set -x
- cat > temp <<EOF
- dcu 0x0040068f;
- ! echo -n "value of rax: ";
- dr?rax;
- ! echo -n "value of rip: ";
- dr?rip;
- ! echo -n "executing: ";
- pd 1 @ rip;
- ds;
- ! echo -n "value of rax: ";
- dr?rax;
- EOF
- r2 -q -d -e scr.color=false -i temp example2/example2
- ### Produces this -
- value of rax: 0x00400680
- value of rip: 0x0040068f
- executing: ;-- rip:
- 0x7fdcbdf6bc10 4889e7 mov rdi, rsp
- value of rax: 0x5612a329a268c500
- a has value: 03
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement