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
// clang gpu_compiler.m -fobjc-arc -fmodules -mmacosx-version-min=11.0 -framework Foundation -framework CoreGraphics -o gpu_compiler | |
#import <Foundation/Foundation.h> | |
#import <Metal/Metal.h> | |
void compile_to_gpu_code(id<MTLDevice> device, NSString *programString, NSString *destinationPath) { | |
NSError *error; | |
MTLCompileOptions *options = [MTLCompileOptions new]; | |
options.libraryType = MTLLibraryTypeDynamic; | |
options.installName = [NSString stringWithFormat:@"@executable_path/userCreatedDylib.metallib"]; |
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
# Based on https://wiibrew.org/wiki/IOS/Syscall_IDAPython | |
from idc import * | |
from idautils import * | |
from ida_bytes import * | |
from ida_idaapi import BADADDR | |
from ida_xref import add_cref | |
# NOTE: most names here are custom because even official names are confusing. | |
syscall_names = { |
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 requests | |
import json | |
import sys | |
import time | |
from requests.models import Response | |
# Common Twitter WebApp Bearer | |
USER_AUTH_TOKEN = "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA" |
OlderNewer