From e8e9a52815769ba2b512e3875e062844fe7bd9dd Mon Sep 17 00:00:00 2001 From: "18218461270@163.com" <18218461270@163.com> Date: Thu, 21 Aug 2025 12:48:37 +0800 Subject: [PATCH] update attacklab --- attack/r_level2.s | 15 +++++++++++++++ attack/r_level3.s | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 attack/r_level2.s create mode 100644 attack/r_level3.s diff --git a/attack/r_level2.s b/attack/r_level2.s new file mode 100644 index 0000000..fe8f6a2 --- /dev/null +++ b/attack/r_level2.s @@ -0,0 +1,15 @@ + +r_level2.o: 文件格式 elf64-x86-64 + + +Disassembly of section .text: + +0000000000000000 : + 0: 58 pop %rax + 1: 90 nop + 2: c3 ret + +0000000000000003 : + 3: 89 c7 mov %eax,%edi + 5: 90 nop + 6: c3 ret diff --git a/attack/r_level3.s b/attack/r_level3.s new file mode 100644 index 0000000..227222a --- /dev/null +++ b/attack/r_level3.s @@ -0,0 +1,44 @@ + +r_level3.o: 文件格式 elf64-x86-64 + + +Disassembly of section .text: + +0000000000000000 : + 0: 48 89 e0 mov %rsp,%rax + 3: c3 ret + +0000000000000004 : + 4: 48 89 c7 mov %rax,%rdi + 7: 90 nop + 8: c3 ret + +0000000000000009 : + 9: 58 pop %rax + a: 90 nop + b: c3 ret + +000000000000000c : + c: 89 c2 mov %eax,%edx + e: 90 nop + f: c3 ret + +0000000000000010 : + 10: 89 d1 mov %edx,%ecx + 12: 38 c9 cmp %cl,%cl + 14: c3 ret + +0000000000000015 : + 15: 89 ce mov %ecx,%esi + 17: 90 nop + 18: 90 nop + 19: c3 ret + +000000000000001a : + 1a: 48 8d 04 37 lea (%rdi,%rsi,1),%rax + 1e: c3 ret + +000000000000001f : + 1f: 48 89 c7 mov %rax,%rdi + 22: 90 nop + 23: c3 ret