Skip to content

Instantly share code, notes, and snippets.

@bmwalters
bmwalters / README.md
Created November 11, 2024 23:25
4-digit passcode bruteforce for A5 on iOS 9

tl;dr

The iphone-dataprotection project (GiHub mirror) includes a tool to determine an iOS device's 4-digit passcode using a brute force technique. That project only claims support for devices <= iOS 8 and < A5. It turns out the code also supports A5 devices on iOS 9.

However the brute force utility also requires a companion kernel patch to enable access to keys such as 0x835 in calls to the AES accelerator from userland. This doc confirms the value of said patches for 32-bit iOS 9.

This writeup also describes the various st

@pj8912
pj8912 / html2pdf.py
Last active September 4, 2023 05:14
convert html page to pdf using python
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
import datetime
from fpdf import FPDF
# CURRENT TIMESTAMP
ts = datetime.datetime.now().timestamp()
ts = str(ts)