jq is useful to slice, filter, map and transform structured json data.
brew install jq
/* | |
File: ExceptionTest.c | |
Contains: Test code for Mach exception handling. | |
Written by: DTS | |
Copyright: Copyright (c) 2006 by Apple Computer, Inc., All Rights Reserved. | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. |
// | |
// LibC.m | |
// | |
// Created by Alban Diquet on 5/14/14. | |
// Copyright (c) 2014 Alban Diquet. All rights reserved. | |
// | |
#import <CydiaSubstrate.h> | |
#import "LibC.h" |
#include <substrate.h> | |
#include <mach/mach.h> | |
#include <mach/mach_time.h> | |
#include <IOKit/hid/IOHIDEventTypes.h> | |
#include <IOKit/hidsystem/IOHIDUsageTables.h> | |
#include <GraphicsServices/GraphicsServices.h> |
#! /usr/sbin/dtrace -C -s | |
/* | |
requirement: disable SIP | |
*/ | |
#pragma D option quiet | |
BEGIN { | |
printf("vm_kernel_slide: 0x%p\n", (`vm_kernel_slide)); | |
printf("vm_kernel_base: 0x%p\n", (`vm_kernel_base)); |
void inject_trusts(int pathc, const char *paths[]) | |
{ | |
printf("[+] injecting into trust cache...\n"); | |
extern uint64_t g_kern_base; | |
static uint64_t tc = 0; | |
if (tc == 0) { | |
/* loaded_trust_caches | |
iPhone11,2-4-6: 0xFFFFFFF008F702C8 |
import UIKit | |
import ObjectiveC.runtime | |
// MARK: - IOKit | |
@objc private protocol IOHIDEvent: NSObjectProtocol {} | |
private struct IOHIDDigitizerEventMask: OptionSet { | |
let rawValue: UInt32 | |
init(rawValue: UInt32) { self.rawValue = rawValue } |
#!/usr/bin/env zsh | |
set -e; | |
set +m; # Job control would've been nice, but manual round robin it is, sigh. | |
if [ -z "${ZSH_VERSION+x}" ]; then | |
echo 'Try again with zsh.'; | |
exit 1; | |
fi; |
const typeMap = { | |
"c": "char", | |
"i": "int", | |
"s": "short", | |
"l": "long", | |
"q": "long long", | |
"C": "unsigned char", | |
"I": "unsigned int", | |
"S": "unsigned short", |