I hereby claim:
- I am c0deh4cker on github.
- I am c0deh4cker (https://keybase.io/c0deh4cker) on keybase.
- I have a public key ASDAYDYtqJGjVHyfmEJDXA3gw4geCBLvgpynNHx7M2t1Wgo
To claim this, I am signing this object:
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
/* For supporting Linux and other systems that don't have mach-o headers */ |
// Just like C#'s using statement and Python's with statement. | |
// This allows use of a resource within a code block, after which | |
// the declared object's destructor will clean up. | |
// There's nothing about `with` that doesn't work in C, but it is | |
// pointless in standard C as there are no destructors. | |
// Multiple with statements can be nested as well, so it works as | |
// you'd expect. If for some bizarre reason you need to put multiple | |
// using statements on the same line, I've added another version, | |
// defined below as with_inline. | |
// |
// | |
// main.c | |
// macho-syms | |
// | |
// Created by C0deH4cker on 3/19/16. | |
// Copyright © 2016 C0deH4cker. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> |
// | |
// patternhooker.c | |
// PatternHooker | |
// | |
// Finds a function by searching for a byte pattern and hooks it with CydiaSubstrate. | |
// | |
// Created by C0deH4cker on 7/26/15. | |
// Copyright (c) 2015 C0deH4cker. All rights reserved. | |
// |
#!/usr/bin/env python | |
from pwn import * | |
import sys | |
debug_server = False | |
use_system_libc = True | |
r = remote("pwn.chal.csaw.io", 8003); use_system_libc = False | |
# r = process("./hungman") | |
# r = process("./linux_serverx64"); debug_server = True |
/* | |
hacky.c | |
Written on 9/19/13 by @C0deH4cker for reasons unknown. | |
Inspired by http://carolina.mff.cuni.cz/~trmac/blog/2005/the-ugliest-c-feature-tgmathh/ | |
DISCLAIMER: | |
No preprocessors were harmed in the creation of this code. | |
*/ | |
/* |
/* THIS IS VERY BAD */ | |
#define CONCAT(a, b) CONCAT_(a, b) | |
#define CONCAT_(a, b) a##b | |
#define THIS_IS_BAD(test, first, rest, cond, body...) THIS_IS_BAD_2(__COUNTER__, test, first, rest, cond, ##body) | |
#define THIS_IS_BAD_2(uniq, test, first, rest, cond, body...) THIS_IS_BAD_3(CONCAT(this_is_bad_, uniq), test, first, rest, cond, ##body) | |
#define THIS_IS_BAD_3(label, test, first, rest, cond, body...) do { \ | |
if(test) { \ | |
first(); \ |
I hereby claim:
To claim this, I am signing this object:
// Part 1 | |
extension UInt { | |
public init(bytes: Bytes) { | |
self = 0 | |
for byte in bytes { | |
self <<= 8 | |
self |= UInt(byte) | |
} | |
} | |
} |
// | |
// Property.h | |
// | |
// Created by C0deH4cker on 2/2/14. | |
// Copyright (c) 2014 C0deH4cker. All rights reserved. | |
// | |
#ifndef _PROPERTY_H_ | |
#define _PROPERTY_H_ |