Skip to content

Instantly share code, notes, and snippets.

View JJTech0130's full-sized avatar

James Gill JJTech0130

View GitHub Profile
@JJTech0130
JJTech0130 / partfinder.py
Created August 23, 2025 03:07
Lookup Ford parts by scraping parts.ford.com
import requests
import json
import rich
from bs4 import BeautifulSoup, Tag
DEALER_STORE_ID=1405 # You can pretty much pick any dealer
CATALOG_ID=251 # Not sure
def get_wc_cookies():
# curl -L 'https://parts.ford.com/shop/AjaxManageUserVehicles' -H 'Content-Type: application/x-www-form-urlencoded' -d 'storeId=1405'
import requests
import webview
import time
from xml.etree import ElementTree as ET
def login():
# Open a WebView to https://www.fdspcl.dealerconnection.com/NonDealerLogin?accountCountry=USA&accountLanguage=EN
# and wait for it to redirect to https://www.fdspcl.dealerconnection.com/AuthorizeNonDealer
# and then get a FDRS cookie
/*
clang ./locks.m -framework Foundation -l sqlite3 && ./a.out
*/
#import <Foundation/Foundation.h>
#include <unistd.h>
#include <libproc.h>
#include <sys/stat.h>
#include <sys/xattr.h>
#include <fcntl.h>
#include <spawn.h>
import Foundation
import Darwin
import Logging
// MARK: - Dynamic Symbol Lookup
func resolve<T>(_ base64Symbol: String) -> T? {
let decoded = Data(base64Encoded: base64Symbol)!
let symbol = decoded.withUnsafeBytes { ptr in
String(cString: ptr.bindMemory(to: CChar.self).baseAddress!)
@JJTech0130
JJTech0130 / lldb.py
Created April 23, 2025 04:29
LLDB remote protocol
"""
Implements Apple's customized version of the GDB/LLDB remote protocol, intended for use with debugserver on iOS.
A macOS implementation of debugserver can be found here: https://github.com/swiftlang/llvm-project/blob/next/lldb/tools/debugserver/source/debugserver.cpp
Use the script tools/proxy.py to proxy the real lldb implementation to discover new commands.
"""
from anyio.abc import ByteStream
class GDBRemote:
"""
@JJTech0130
JJTech0130 / debugger_jit_improved.m
Last active September 10, 2025 06:07
Improved method of using a debugger for JIT on iOS... Uses split rx/rw regions, and works on iOS 18.4b1
#import <Foundation/Foundation.h>
#import <mach/mach.h>
#import <stdio.h>
#import <stdlib.h>
#import <string.h>
#include <libkern/OSCacheControl.h>
const int REGION_SIZE = 0x4000*1;
void write_instructions(void* page)
#import <Foundation/Foundation.h>
#import <mach/mach.h>
#import <stdio.h>
#import <stdlib.h>
#import <string.h>
#define PAGE 0x4000
__attribute__((section("__TEXT,__nop_section"), aligned(PAGE)))
static const uint32_t nop_page[PAGE / sizeof(uint32_t)] = {
@JJTech0130
JJTech0130 / reboot_verizon_router.sh
Last active February 2, 2025 20:48
Script to reboot Verizon 5G Home Internet router automatically
#!/bin/bash
# Configuration
password="XTYTH3CP2" # Set your password here
timeout_duration=10 # Set timeout duration in seconds
# Change into a temporary directory, storing the current directory
current_dir=$(pwd)
cd "$(mktemp -d)" || exit
@JJTech0130
JJTech0130 / install-unlock-turbo.sh
Last active January 15, 2025 20:09
Unlocks Turbo Boost when it has been locked due to an unsupported power supply (Dell Optiplex BD PROCHOT issue)
#!/bin/bash
# Check if the script is being run as root
if [[ $(id -u) -ne 0 ]]; then
echo "This script must be run as root. Exiting."
exit 1
fi
# Install necessary tools (msr-tools)
echo "Installing msr-tools..."