This file contains 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 sys | |
NUMLIST = { | |
"\\": "\\\\", | |
"0": "${#}", | |
"1": "${##}", | |
"2": "$((${##}<<$((${##}))))", | |
"3": "$((${##}<<$((${##}))^${##}))", | |
"4": "$((${##}<<$((${##}))<<$((${##}))))", | |
"5": "$((${##}<<$((${##}))<<$((${##}))^${##}))", |
This file contains 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 = "binary" | |
context.binary = exe = ELF(BINARY, checksec=False) | |
context.terminal = "konsole -e".split() | |
context.log_level = "INFO" | |
context.bits = 64 | |
context.arch = "amd64" |
This file contains 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 | |
# CVE-2018-7600 - Drupal 7.x RCE | |
import requests | |
import re | |
import readline | |
import sys | |
HOST=sys.argv[1] |
This file contains 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 random | |
import colorama | |
def GREEN(string): return colorama.Fore.GREEN + string + colorama.Fore.RESET | |
def RED(string): return colorama.Fore.RED + string + colorama.Fore.RESET | |
class Prisoners_problem: | |
def __init__(self): |
This file contains 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 binascii import hexlify | |
import zlib | |
import colorama | |
import subprocess | |
from base64 import b64decode | |
import os | |
from PIL import Image | |
def YELLOW(x): return colorama.Fore.YELLOW + x + colorama.Fore.RESET |