blob: b78eaf87cc219bed6fc97971a80d86a02bf8be98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<%page args="cookie = 0xe4fffc75"/>
<%docstring>
stackhunter_helper(cookie = 0xe4fffc75)
The helper for the stackhunter, which prepends the cookie
at different alignments.
Example:
>>> with context.local(arch='i386'):
... print(enhex(asm(shellcraft.stackhunter_helper())))
75fcffe43d75fcffe43d75fcffe43d75fcffe4
</%docstring>
.int ${'%#x' % cookie}
cmp eax, ${'%#x' % cookie}
cmp eax, ${'%#x' % cookie}
cmp eax, ${'%#x' % cookie}
|