This file contains 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
from Pwn import * | |
p = Pwn( | |
elf='SecretHolder_d6c0bed6d695edc12a9e7733bedde182554442f8', | |
host='52.68.31.117', | |
port=5566 | |
) | |
# p = Pwn( | |
# elf='SecretHolder_d6c0bed6d695edc12a9e7733bedde182554442f8' | |
# ) |
This file contains 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
from keystone import * | |
from capstone import * | |
from unicorn import * | |
from unicorn.x86_const import * | |
from struct import * | |
from termcolor import * | |
import os | |
import sys |
This file contains 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/python | |
# Author : peternguyen | |
from Pwn import * | |
p = Pwn(elf='./booklibrary') | |
password = '\xbbDhQ\xb8\xae' | |
def login(passwd): | |
p.read_until('$>') |
This file contains 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/python | |
# Author : peternguyen | |
from Pwn import * | |
p = Pwn(elf='./pwn200') | |
def exploit(**kargs): | |
global p # use global var | |
if kargs.has_key('p'): |
This file contains 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/python | |
# Author : peternguyen | |
from Pwn import * | |
import time | |
# p = Pwn(elf='./pwn250_FC4D17C352040B99EA177FAA032F553F',host='lab02.matesctf.org',port=4321) | |
# p = Pwn(elf='./pwn250_FC4D17C352040B99EA177FAA032F553F') | |
def exploit(**kargs): |
This file contains 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/python | |
# Author : peternguyen | |
from Pwn import * | |
import re | |
# p = Pwn(elf='./apple_DA0AEF582865A302F7DC56E62C4554BB') | |
p = Pwn(host='125.235.240.168',port=10002,elf='./apple_DA0AEF582865A302F7DC56E62C4554BB') | |
def add_item(item_id): |
This file contains 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/python | |
# Author : peternguyen | |
from Pwn import * | |
import time | |
import re | |
# p = Pwn(elf='./pwn300_17eca9c392e17ed1c4b51f7a1913832b') | |
p = Pwn(host='lab01.matesctf.org',port=1337,elf='./pwn300_17eca9c392e17ed1c4b51f7a1913832b') |
This file contains 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/python | |
# Author : peternguyen | |
from Pwn import * | |
import time | |
p = Pwn(host='lab01.matesctf.org',port=4001) | |
def login(buf): | |
p.read_until('>') |
This file contains 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/python | |
# Author : peternguyen | |
from Pwn import * | |
p = Pwn(mode = 1,host='lab03.matesctf.org',port=4321) | |
# p = Pwn(mode=1) | |
def exploit(): | |
p.connect() |
This file contains 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/python | |
# Author : peternguyen | |
from Pwn import * | |
p = Pwn(mode = 1,host='lab02.matesctf.org',port=4231) | |
# p = Pwn(mode=1) | |
def exploit(): | |
p.connect() |