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/python | |
from pwn import * | |
# Note 2, this will now work with any commands lower than 16 bytes :). Any more than that will be copied over the stack canary. | |
# Get the string representation of a bytes/multiple bytes. Thanks google | |
def varint(n): | |
if n < 0: | |
n += 2**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
# Creates a simple directory maze. May be useful for CTF challenges where file races are involved (hi pwn.college :) ) | |
import os | |
import shutil | |
import sys | |
# How many directories do you want to make? 50 works quite well. | |
dirdepth = 50 | |
# For some reason the os.symlink() was messing up (probably because of me), so i made my own, worse version |