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 binascii | |
import hashlib | |
from Crypto.Cipher import AES | |
import sys | |
# src: http://permalink.gmane.org/gmane.comp.security.openwall.john.user/5628 | |
# cat ~/.sqlnet.ora | |
# TRACE_DIRECTORY_CLIENT = /tmp | |
# TRACE_FILE_CLIENT = HoustonWeHaveAProblem |
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 python | |
# encoding: utf-8 | |
# try to find a solution to a subproblem of the Archer ARG | |
# Author: Martin Heistermann <code()mheistermann.de> | |
# License: THE BEER-WARE LICENSE (Revision 42): | |
# Martin Heistermann wrote this software. As long as you retain this notice | |
# you can do whatever you want with this stuff. If we meet some day, and you |
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 python | |
# encoding: utf-8 | |
# try to find a solution to a subproblem of the Archer ARG | |
# Author: Martin Heistermann <code()mheistermann.de> | |
# License: THE BEER-WARE LICENSE (Revision 42): | |
# Martin Heistermann wrote this software. As long as you retain this notice | |
# you can do whatever you want with this stuff. If we meet some day, and you |
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
#!/opt/sage-6.2-x86_64-Linux/sage -python | |
import sys | |
sys.path.insert(1, "/usr/lib/python2.7/dist-packages") | |
import pexpect | |
from pexpect import fdpexpect | |
from sage.all import * | |
DEBUG = False |
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
#include <iostream> | |
#include <inttypes.h> | |
#include <assert.h> | |
#include <vector> | |
// brute-force python2's string hash randomization (-R option) given a list | |
// of pairs (s,hash(s)) | |
// caveat: this doesnt incorporate a xor with the string length (trivial to | |
// add), thus all given strings must have the same length! |
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 | |
# encoding: utf-8 | |
# exploit for plaidCTF 2015's 'radhos' challenge | |
import subprocess | |
import re | |
import ast | |
import shutil | |
import requests |
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
#include <inttypes.h> | |
// cbmc -DPREFIX=0 -DSUFFIX=0 -DTARGET=1234 -DLEN=6 collision.c | |
int main() | |
{ | |
uint32_t prefix=PREFIX; | |
uint32_t suffix=SUFFIX; | |
unsigned char str[LEN]; | |
uint32_t x = prefix; | |
x ^= str[0] << 7; |
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 python | |
# encoding: utf-8 | |
from pwn import * | |
GDB = 0 | |
LOCAL = 0 | |
filename = "/home/shitcpu/flag" |
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 strings import stringlist | |
import re | |
import json | |
re_stringaccess = re.compile(r"_\$_447d\[([0-9]+)\]") | |
def main(): | |
def repl(matchobj): | |
numstr = matchobj.groups()[0] | |
idx = json.loads(numstr) |
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
extern crate glium; | |
use glium::Program; | |
use glium::program::{ProgramCreationError, ProgramCreationInput}; | |
use glium::backend::Facade; | |
pub struct ReloadingProgram<'a, F: Facade + 'a> { | |
current: Option<Result<Program, ProgramCreationError>>, | |
facade: &'a F, | |
input: Box<ProgramCreationInput<'a>>, |
OlderNewer