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 re import findall | |
from random import choice, randint | |
from string import digits, ascii_uppercase | |
from hashlib import sha256 | |
from sys import argv, exit | |
MAX_NAME_LEN = 64 |
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
from pwn import * | |
from re import findall | |
from ctypes import c_int32 | |
# GLOBAL VARS | |
elf = ELF('./poli_wars') | |
libc = ELF('/usr/lib32/libc.so.6') | |
XWING_SIZE = 0x24 + 4 | |
Z95_SIZE = 0x1c + 4 |
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
from pwn import * | |
import sys | |
""" | |
Unpack the binary with upx -d | |
""" | |
BINARY = "./minesweeper" | |
# Set context for asm | |
context.clear() |
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
from pwn import * | |
import sys | |
BINARY = "./auir" | |
LIBC = './libc-2.23.so' | |
LOCAL_LIBC = '/usr/lib/libc.so.6' | |
# Set context for asm | |
context.clear() | |
context(os='linux', arch='amd64', bits=64) |
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
from pwn import * | |
import sys | |
from time import time, sleep | |
import ctypes | |
import threading | |
BINARY = './damocles.patched' | |
LIBC = './libc.so.6' | |
LOCAL_LIBC = '/lib/x86_64-linux-gnu/libc.so.6' |
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 os | |
#flag = open("flag", "r") | |
#os.dup2(flag.fileno(), 1023) | |
#flag.close() | |
# | |
#import Collection | |
#a = Collection.Collection({"a":1337, "b":[1.2], "c":{"a":45545}}) | |
#a = Collection.Collection({"a":1337, "b":[1.2], "c":{"a":45545}, "d":[1, 2]}) | |
#b = Collection.Collection({"b":[1.2], "a":1337, "c":{"a":45545}, "d":[1, 2]}) |
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 * | |
import sys | |
import struct | |
BINARY = './winterpreter.exe' | |
IS_REMOTE = True | |
H,P = ('183.107.102.15', 54321) | |
if not IS_REMOTE: |