Skip to content

Instantly share code, notes, and snippets.

@rugo
rugo / swag.py
Last active March 30, 2019 20:53
MeePwn CTF Still Old School Solution of RedRocket (blog.redrocket.club)
import pexpect
import re
from multiprocessing import Process, Queue
from Crypto.Cipher import AES
def inv(x):
x ^= (x >> 18)
# Lowest 16 bit stay how they are, so we can just repeat...
x ^= (x << 15) & 0xEFC60000
# Do it step by step
@ormaaj
ormaaj / pattest.py
Last active July 9, 2022 17:31
Shell pattern quote/escape fuzzer.
#!/usr/bin/env python3
import subprocess, itertools
class Shell(list):
def __init__(self, shell, cmds):
self.shell = shell
super().__init__([(x, self.__run(x)) for x in cmds])
def __iter__(self):