This file contains hidden or 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
var SecTrustEvaluate_handle = | |
Module.findExportByName('Security', 'SecTrustEvaluate'); | |
var SecTrustEvaluateWithError_handle = | |
Module.findExportByName('Security', 'SecTrustEvaluateWithError'); | |
var SSL_CTX_set_custom_verify_handle = | |
Module.findExportByName('libboringssl.dylib', 'SSL_CTX_set_custom_verify'); | |
var SSL_get_psk_identity_handle = | |
Module.findExportByName('libboringssl.dylib', 'SSL_get_psk_identity'); | |
var boringssl_context_set_verify_mode_handle = Module.findExportByName( | |
'libboringssl.dylib', 'boringssl_context_set_verify_mode'); |
This file contains hidden or 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
// | |
// AKNativeAnisetteService.m | |
// akd | |
// | |
// Created by Scott Knight on 5/10/19. | |
// Copyright © 2019 Scott Knight. All rights reserved. | |
// | |
#import <AuthKit/AuthKit.h> | |
#import "AKNativeAnisetteService.h" |
This file contains hidden or 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
Key Name Description | |
======== =========== | |
3GProximityCapability Whether the device has a 3G proximity sensor | |
3GVeniceCapability Whether the device supports FaceTime over cellular | |
720pPlaybackCapability Whether the device supports 720p video (identical to kMGQDeviceSupports720p) | |
APNCapability | |
ARM64ExecutionCapability Whether the device supports executing arm64 binaries | |
ARMV6ExecutionCapability Whether the device supports executing armv6 binaries | |
ARMV7ExecutionCapability Whether the device supports executing armv7 binaries | |
ARMV7SExecutionCapability Whether the device supports executing armv7s binaries |
This file contains hidden or 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 Cocoa | |
class MyStackView: NSStackView { | |
override func responds(to aSelector: Selector!) -> Bool { | |
if aSelector == #selector(NSSplitViewController.toggleSidebar(_:)) { | |
return false | |
} | |
return super.responds(to: aSelector) | |
} | |
This file contains hidden or 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 <IOKit/IOKitLib.h> | |
#include <mach/mach.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
void hexdump(void *ptr, int buflen) { | |
unsigned char *buf = (unsigned char*)ptr; | |
int i, j; |
This file contains hidden or 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
// Allows disabling Same-Origin Policy on iOS WKWebView. | |
// Tested on iOS 12.4. | |
// Uses private API; obviously can't be used on app store. | |
@import WebKit; | |
@import ObjectiveC; | |
void WKPreferencesSetWebSecurityEnabled(id, bool); | |
@interface WDBFakeWebKitPointer: NSObject |
This file contains hidden or 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
- (void)openShortcut:(SBSApplicationShortcutItem *)shortcutItem { | |
UIHandleApplicationShortcutAction *openAction = [[UIHandleApplicationShortcutAction alloc] initWithSBSShortcutItem:shortcutItem]; | |
NSDictionary *activationOptions = @{ | |
@"__ActivateSuspended" : [NSNumber numberWithBool:(shortcutItem.activationMode == 1)], | |
@"__Actions": @[ | |
openAction | |
], | |
@"__PromptUnlockDevice" : [NSNumber numberWithBool:YES], |
This file contains hidden or 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 <mach/mach.h> // mach_task_self, vm_protect | |
#include <substrate.h> // MSFindSymbol | |
// MARK: - Types | |
typedef void (*MSHookMemory_ptr_t)(void *target, const void *data, size_t size); | |
#define ENSURE_KERN_SUCCESS(ret) \ | |
if (ret != KERN_SUCCESS) { \ |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="Open GPX Tracker for iOS"> | |
<wpt lat="40.762468446233115" lon="-73.99090283852468"> | |
<time>2019-12-06T14:19:25Z</time> | |
<name>09:19:25</name> | |
<desc>Dec 6, 2019 at 09:19:25</desc> | |
</wpt> | |
<wpt lat="40.80559910750484" lon="-73.95810627601767"> | |
<time>2019-12-06T14:19:29Z</time> | |
<name>09:19:29</name> |
This file contains hidden or 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 UIKit | |
import ObjectiveC.runtime | |
// MARK: - IOKit | |
@objc private protocol IOHIDEvent: NSObjectProtocol {} | |
private struct IOHIDDigitizerEventMask: OptionSet { | |
let rawValue: UInt32 | |
init(rawValue: UInt32) { self.rawValue = rawValue } |
NewerOlder