Skip to content

Instantly share code, notes, and snippets.

View citrusui's full-sized avatar
📚
Resist fascism.

Avery citrusui

📚
Resist fascism.
View GitHub Profile
@citrusui
citrusui / 2017-XX-XX-more-info-on-apple-ipsw-downloads.md
Last active February 27, 2022 19:33
An incomplete write-up of my failed attempt to conjure a meaning behind Apple's IPSW URLs.

More info on Apple IPSW downloads

IPSWs are files used by iTunes to update or restore the firmware on a mobile Apple device. Originally used for classic iPods, the IPSW made its way onto the iPhone, iPod touch, iPad, Apple TV, iPad mini, and Apple Watch. Although IPSWs may seem like magic, they are cleverly disguised .zip archives. You can read more about the file format of IPSWs here.

Over a year ago, @q3hardcore on Twitter discovered a technical leak from one of Apple's update servers. For reasons unknown, their Amazon S3 bucket was accidentally published publicly. In other words, going to https://appldnld.s3.amazonaws.com presented you with a wall of XML, full of links to files stored on Apple's update server. I did not think to archive the page before it want back to being protected.

Example: http://appldnld.apple.com/iOS7.1/031-4388.20140310.ZA355/iPad2,1_7.1_11D167_Restore.ipsw

Where appldnld.apple.com is the domain,

@citrusui
citrusui / guess.md
Created February 20, 2017 23:01
trying to guess the meaning behind Apple IPSW URLs

Example URL:

http://appldnld.apple.com/iPhone/061-4956.20080710.V50OI/iPhone1,1_2.0_5A347_Restore.ipsw

[Left is text, right is the conversion to hex]

[Everything is case sensitive, I think]

// 2.0 for iPhone1,1

/arm-io: base = 38000000
/arm-io/vic: 38E00000:00002000
/arm-io/edgeic: 38E02000:00001000
/arm-io/gpio: 3E400000:00001000
/arm-io/gpio: 39A00000:00001000
/arm-io/power: 39A00000:00001000
/arm-io/clkrstgen: 3C500000:00001000
/arm-io/clkrstgen: 38100000:00001000
/arm-io/dmac0: 38200000:00001000
/arm-io/dmac1: 39900000:00001000
@citrusui
citrusui / dropdown.md
Last active June 25, 2025 12:57
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@citrusui
citrusui / gitio.rb
Created July 23, 2016 19:48
Customized URLs for https://git.io
#!/usr/bin/env ruby
print "URL: "
ENV["url"] = gets.chomp
print "Code: "
ENV["code"] = gets.chomp
system 'curl -i https://git.io -F "url=$url" -F "code=$code"'
@citrusui
citrusui / sudoers
Created February 19, 2016 02:10
Default sudoers file on iOS
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
@citrusui
citrusui / geekgrade.md
Last active December 6, 2024 02:48
GeekGrade IPSW direct download links
@citrusui
citrusui / watch.txt
Last active June 1, 2019 14:54
Apple Watch IPSWs for watchOS 2.1
https://secure-appldnld.apple.com/watch/os2.1/031-29536-20151208-ca603a1a-8eec-11e5-9b1f-e0c48b8beceb/watch1,1_2.1_13s661_restore.ipsw
https://secure-appldnld.apple.com/watch/os2.1/031-29539-20151208-ca603a1a-8eec-11e5-9b1f-e1c48b8beceb/watch1,2_2.1_13s661_restore.ipsw