Skip to content

Instantly share code, notes, and snippets.

from Pwn import *
p = Pwn(
elf='SecretHolder_d6c0bed6d695edc12a9e7733bedde182554442f8',
host='52.68.31.117',
port=5566
)
# p = Pwn(
# elf='SecretHolder_d6c0bed6d695edc12a9e7733bedde182554442f8'
# )
from keystone import *
from capstone import *
from unicorn import *
from unicorn.x86_const import *
from struct import *
from termcolor import *
import os
import sys
#!/usr/bin/python
# Author : peternguyen
from Pwn import *
p = Pwn(elf='./booklibrary')
password = '\xbbDhQ\xb8\xae'
def login(passwd):
p.read_until('$>')
#!/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'):
#!/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):
#!/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):
#!/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')
#!/usr/bin/python
# Author : peternguyen
from Pwn import *
import time
p = Pwn(host='lab01.matesctf.org',port=4001)
def login(buf):
p.read_until('>')
#!/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()
#!/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()