Commit 9b592ff3 authored by blackle's avatar blackle
Browse files

ESP offset should be 0x08 to get the environment variables

parent 859c6c11
......@@ -34,7 +34,7 @@ _parent.0:
xchg eax, edi ;edi is zero now and will be overwritten eventually
mov al, SYS_waitpid
int 0x80
lea esi, [esp+0x10]
lea esi, [esp+0x08]
db 0x3D ; cmp eax, ...
dw 2 ;!e_type
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment