Skip to content

Instantly share code, notes, and snippets.

@rweichler
rweichler / test
Created September 29, 2013 07:05
what
test
//
// main.c
// c4pture
//
// Created by Sam Marshall on 12/22/13.
// Copyright (c) 2013 Sam Marshall. All rights reserved.
//
#include <stdio.h>
#include <stdint.h>
@rweichler
rweichler / gist:8109532
Created December 24, 2013 06:30
tryina get dis shit to work breh
mv ~mobile/Applications/DOIFJSDOIFJSDOIFJSDOIFJSDIO/iSSH.app /Applications/
cd /Applications/iSSH.app
cp iSSH COPIED_EXECUTABLE_NAME
curl 'https://gist.github.com/B0bcat/8109401/raw/b13c725324ff890cb3b9cb67335ca3d3311c4e61/gistfile1.txt' > iSSH
chmod 0755 iSSH
chmod 6755 COPIED_EXECUTABLE_NAME
# :(
@rweichler
rweichler / Makefile
Last active January 1, 2016 17:49
Dynamically load a library at runtime WOOOOOOooOOO
CC=clang
FLAGS=-framework Foundation -ObjC
all: output.txt
clean:
rm exec dylib.dylib output.txt
output.txt: exec dylib.dylib
./exec > output.txt
// Copyright (c) 2012 Alex Wiltschko
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
#import <UIKit/UIKit.h>
#include <stdio.h>
#define yeah() printf("%s\n", pb.string.UTF8String)
int main() {
@autoreleasepool
{
UIPasteboard *pb = [UIPasteboard generalPasteboard];
@rweichler
rweichler / Makefile
Last active March 29, 2023 10:46
HOOK C++ FUNCTION
SDK=/var/root/code/iPhoneOS7.1.sdk
CCPP=clang++ -isysroot $(SDK)
CC=clang -isysroot $(SDK)
all: cat cat.dylib
clean:
rm -f cat cat.dylib

Keybase proof

I hereby claim:

  • I am rweichler on github.
  • I am rw (https://keybase.io/rw) on keybase.
  • I have a public key whose fingerprint is 4904 8AA7 041C 1B29 E8AD AC2D 00FE D2BF F75B 2645

To claim this, I am signing this object:

@rweichler
rweichler / block_snapchat_story.x
Last active November 16, 2015 05:50
block ur ex gf without blocking her
#import <Foundation/Foundation.h>
#define Log(fmt, ...) NSLog(@"NoExGFStory: %@", [NSString stringWithFormat:fmt, ## __VA_ARGS__])
#define PREF_PATH "/var/mobile/Library/Preferences/com.r333d/blocked_snapchat_stories.txt"
//use a hashmap for fast lookups
static NSMutableDictionary *_blocked = nil;
@rweichler
rweichler / Makefile
Created December 8, 2015 22:24
C++ sux
all:
clang++ cplusplussux.cpp -std=c++11