blob: ca81b6aaf9370fe01779d45ead288f66b96fcb8c (
plain)
1
2
3
4
5
6
7
8
|
<% from pwnlib.shellcraft import amd64 %>
<%page args="size=0x100000, fd=0"/>
<%docstring>Migrates to a new stack.</%docstring>
${amd64.linux.mmap_rwx(size)}
${amd64.mov('rsp', 'rax')}
add rsp, ${'%#x' % ((size * 3 // 4) & ~7)}
|