return 0;
Could be represented by this
leave
xor eax, eax
ret
Which have lower level cpu OpCodes of these values
leave # 0xC9
xor eax, eax # 0x31, 0xc0
ret # 0xC9
Which means if you wanted to create a shellcode of the 'return 0' statement in C you'd do the following.
unsigned char shellcode[] = "\xc9\x31\xc0\xc9";
More about neonprimetime
Top Blogs of all-time
- pagerank botnet sql injection walk-thru
- DOM XSS 101 Walk-Through
- An Invoice email and a Hot mess of Java
Top Github Contributions
Copyright © 2016, this post cannot be reproduced or retransmitted in any form without reference to the original post.
No comments:
Post a Comment