update attacklab

This commit is contained in:
18218461270@163.com 2025-08-21 12:48:37 +08:00
parent 3e54fcfef1
commit e8e9a52815
2 changed files with 59 additions and 0 deletions

15
attack/r_level2.s Normal file
View File

@ -0,0 +1,15 @@
r_level2.o elf64-x86-64
Disassembly of section .text:
0000000000000000 <gadget1>:
0: 58 pop %rax
1: 90 nop
2: c3 ret
0000000000000003 <gadget2>:
3: 89 c7 mov %eax,%edi
5: 90 nop
6: c3 ret

44
attack/r_level3.s Normal file
View File

@ -0,0 +1,44 @@
r_level3.o elf64-x86-64
Disassembly of section .text:
0000000000000000 <gadget1>:
0: 48 89 e0 mov %rsp,%rax
3: c3 ret
0000000000000004 <gadget2>:
4: 48 89 c7 mov %rax,%rdi
7: 90 nop
8: c3 ret
0000000000000009 <gadget3>:
9: 58 pop %rax
a: 90 nop
b: c3 ret
000000000000000c <gadget4>:
c: 89 c2 mov %eax,%edx
e: 90 nop
f: c3 ret
0000000000000010 <gadget5>:
10: 89 d1 mov %edx,%ecx
12: 38 c9 cmp %cl,%cl
14: c3 ret
0000000000000015 <gadget6>:
15: 89 ce mov %ecx,%esi
17: 90 nop
18: 90 nop
19: c3 ret
000000000000001a <gadget7>:
1a: 48 8d 04 37 lea (%rdi,%rsi,1),%rax
1e: c3 ret
000000000000001f <gadget8>:
1f: 48 89 c7 mov %rax,%rdi
22: 90 nop
23: c3 ret