Created
August 29, 2016 17:01
-
-
Save grittyninja/bedf4849bcba3fda8d80cbe8d8edd643 to your computer and use it in GitHub Desktop.
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
import sys | |
from pwn import * | |
def exploit(r): | |
# craft exploit here | |
if __name__ == "__main__": | |
log.info("%s HOST PORT" % sys.argv[0]) | |
if len(sys.argv) > 1: | |
r = remote(sys.argv[1], int(sys.argv[2])) | |
exploit(r) | |
else: | |
r = process("./vuln") | |
print "[+] exploit running on pid: ", util.proc.pidof(r) | |
pause() | |
exploit(r) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment