Skip to content

Instantly share code, notes, and snippets.

copy contents of /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk from official SDK to /var/sdk on iPhone
Install apt from Cydia
pushd /var/sdk/usr/lib
ln -s libgcc_s.1.dylib libgcc_s.10.5.dylib
ln -s dylib1.o dylib1.10.5.o
ln -s crt1.o crt1.10.5.o
ln -s libstdc++.6.0.9.dylib libstdc++.6.dylib
ln -s libstdc++.6.0.9.dylib libstdc++.dylib
ln -s libobjc.A.dylib libobjc.dylib
ln -s libSystem.B.dylib libSystem.dylib
@saurik
saurik / relogin.c
Created April 18, 2012 22:30
setuid login wrapper that let's you only be you
#include <pwd.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
static void check(const char **name, const char *user) {
if (*name != NULL || user == NULL)
return;
@dieseltravis
dieseltravis / _.js
Created May 31, 2012 20:53
javascript bookmarklet to edit cookies on a page
(function (w, d) {
var id = (new Date()).valueOf(),
itemTemplate = "<label>"
+ "<code>{name}=</code>"
+ "<input id='Cookie{name}{index}{id}' type='text' value='{value}' style='font-family:monospace;width:50%' />"
+ "</label>"
+ "<input type='button' value='Update' onclick='window.UpdateCookie{id}(\"{name}\", {index});' />"
+ "<input type='button' value='Delete' onclick='window.DeleteCookie{id}(\"{name}\");' />"
+ "<br/>",
formatTemplate = function (name, value, index) {
@Angles
Angles / some iOS browser URI launching JS snippets.js
Last active August 2, 2024 07:38
"Open In" Bookmarklets for iOS
/* WITH MODS TO ORIG -- iOS Browser Bookmarklets to launch other apps and stuff */
/* ver 2014-04-14a */
/* backing up my "Open In" bookmarks */
// note iOS6 requires some changes to these
// BEGIN TESTING STUFF -- IN PROFRESS LIKELY NOT WORKING
// SOME WORK, MOST tests are not WORK --
// PINNER APP TEST STUFF (as a private one)
// the page title as the title and your selected text as the description.
@Proteas
Proteas / DCrypt-Proteas.sh
Created February 6, 2013 06:54
水货一枚半
#!/bin/sh
#
# DeCrypt - v1.2 (2013-02-05)
# - v1.1 (2008-10-21)
# - v1.2 (2013-02-05)
# FloydianSlip, Proteas
#
# Heavily based on xcrack
#
@ursachec
ursachec / build-libevent-ios.sh
Last active June 30, 2023 07:22
libevent build script for iOS
#!/bin/bash
set -u
# Setup architectures, library name and other vars + cleanup from previous runs
ARCHS=("armv7" "armv7s" "i386")
SDKS=("iphoneos" "iphoneos" "macosx")
LIB_NAME="libevent-2.0.21-stable"
TEMP_DIR="$(pwd)/tmp"
TEMP_LIB_PATH="$(pwd)/tmp/${LIB_NAME}"
@mike-ward
mike-ward / README.md
Last active December 18, 2018 12:46
AngularJS Demo using iTunes as a data source

iTunes browser in AngularJS

@dnozay
dnozay / README.md
Last active October 13, 2016 21:52
recompile bash on OSX 10.6.
@dev-zzo
dev-zzo / sagem-router-root-pass-gen.py
Created January 8, 2015 12:16
SAGEM ROUTER FAST 3304/3464/3504 - telnet root password generator
"""
SAGEM ROUTER FAST 3304/3464/3504 - telnet root password generator.
Work based on: http://1337day.com/exploit/16687
"""
import sys
@z448
z448 / aplist.sh
Last active May 6, 2017 04:57
shell script for listing app bundle IDs, display names, UUIDs installed applications
#!/bin/bash
#see output in < aplst_setlinks.sh aplst_setvars appList.err appList.log appList.out >
#dep:plutil.pl
dataPath=/var/mobile/Containers/Data/Application
bundlePath=/var/mobile/Containers/Bundle/Application
mcmMetaPrefFile=.com.apple.mobile_container_manager.metadata.plist
itunesMetaPrefFile=iTunesMetadata.plist
myAppLinksFolder=/var/mobile/applinks
exec > >(tee appList.log)