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 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 |
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 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): |