Permalink
Browse files

New Firmwares:

- 4.3 (3) 8F455
- 4.4 94334v
- 4.4.1 9A445a
- 4.4.2 9A336a
- 4.4.3 9F405l
- 4.4.4 9A406a
  • Loading branch information...
FireCore, LLC
FireCore, LLC committed Jan 5, 2012
1 parent 68cc6a4 commit 7b0e212e1e7cd4a1a92bee9c52d21904d3b89e8c
Showing with 4,017 additions and 0 deletions.
  1. BIN Seas0nPass/Resources/Binaries/BIN/bspatch.exe
  2. BIN Seas0nPass/Resources/Binaries/BIN/cygcrypto-0.9.8.dll
  3. BIN Seas0nPass/Resources/Binaries/BIN/cygwin1.dll
  4. BIN Seas0nPass/Resources/Binaries/BIN/dfu.exe
  5. BIN Seas0nPass/Resources/Binaries/BIN/dmg-bin.exe
  6. BIN Seas0nPass/Resources/Binaries/BIN/hdutil.exe
  7. BIN Seas0nPass/Resources/Binaries/BIN/hfsplus.exe
  8. BIN Seas0nPass/Resources/Binaries/BIN/libeay32.dll
  9. BIN Seas0nPass/Resources/Binaries/BIN/libpng12.dll
  10. BIN Seas0nPass/Resources/Binaries/BIN/syringe.dll
  11. BIN Seas0nPass/Resources/Binaries/BIN/tether.exe
  12. BIN Seas0nPass/Resources/Binaries/BIN/vfdecrypt.exe
  13. BIN Seas0nPass/Resources/Binaries/BIN/xpwntool.exe
  14. BIN Seas0nPass/Resources/Binaries/BIN/zlib1.dll
  15. BIN Seas0nPass/Resources/Binaries/Cydia.tgz
  16. BIN Seas0nPass/Resources/Binaries/DEBS/asubstratesafe.deb
  17. BIN Seas0nPass/Resources/Binaries/DEBS/awkwardtv.deb
  18. BIN Seas0nPass/Resources/Binaries/DEBS/bsubstrate.deb
  19. BIN Seas0nPass/Resources/Binaries/DEBS/com.firecore.seas0npass.deb
  20. BIN Seas0nPass/Resources/Binaries/DEBS/com.nito.deb
  21. BIN Seas0nPass/Resources/Binaries/DEBS/org.xbmc.repo_0.1-1_iphoneos-arm.deb
  22. BIN Seas0nPass/Resources/Binaries/DEBS/syslogd.deb
  23. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/AppleTV.patch
  24. +142 −0 Seas0nPass/Resources/Binaries/PATCHES/8C154/Info.plist
  25. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/Services.patch
  26. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/asr.patch
  27. +194 −0 Seas0nPass/Resources/Binaries/PATCHES/8C154/commands.fc
  28. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/fstab.patch
  29. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/hfs_mdb
  30. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/iBSS.k66ap.RELEASE.patch
  31. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/kern_sploit
  32. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/punchd
  33. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/punchd.patch
  34. BIN Seas0nPass/Resources/Binaries/PATCHES/8C154/restored.patch
  35. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/8C154/uncompress
  36. BIN Seas0nPass/Resources/Binaries/PATCHES/8F191m/AppleTV.patch
  37. +105 −0 Seas0nPass/Resources/Binaries/PATCHES/8F191m/Info.plist
  38. BIN Seas0nPass/Resources/Binaries/PATCHES/8F191m/Services.patch
  39. BIN Seas0nPass/Resources/Binaries/PATCHES/8F191m/asr.patch
  40. +179 −0 Seas0nPass/Resources/Binaries/PATCHES/8F191m/commands.fc
  41. BIN Seas0nPass/Resources/Binaries/PATCHES/8F191m/fstab.patch
  42. BIN Seas0nPass/Resources/Binaries/PATCHES/8F191m/iBSS.k66ap.RELEASE.patch
  43. BIN Seas0nPass/Resources/Binaries/PATCHES/8F191m/status.patch
  44. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/8F191m/uncompress
  45. BIN Seas0nPass/Resources/Binaries/PATCHES/8F202/AppleTV.patch
  46. +109 −0 Seas0nPass/Resources/Binaries/PATCHES/8F202/Info.plist
  47. BIN Seas0nPass/Resources/Binaries/PATCHES/8F202/Services.patch
  48. BIN Seas0nPass/Resources/Binaries/PATCHES/8F202/asr.patch
  49. +190 −0 Seas0nPass/Resources/Binaries/PATCHES/8F202/commands.fc
  50. BIN Seas0nPass/Resources/Binaries/PATCHES/8F202/crunchd
  51. BIN Seas0nPass/Resources/Binaries/PATCHES/8F202/fstab.patch
  52. BIN Seas0nPass/Resources/Binaries/PATCHES/8F202/iBSS.k66ap.RELEASE.patch
  53. BIN Seas0nPass/Resources/Binaries/PATCHES/8F202/status.patch
  54. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/8F202/uncompress
  55. BIN Seas0nPass/Resources/Binaries/PATCHES/8F305/AppleTV.patch
  56. +131 −0 Seas0nPass/Resources/Binaries/PATCHES/8F305/Info.plist
  57. BIN Seas0nPass/Resources/Binaries/PATCHES/8F305/Services.patch
  58. BIN Seas0nPass/Resources/Binaries/PATCHES/8F305/asr.patch
  59. +189 −0 Seas0nPass/Resources/Binaries/PATCHES/8F305/commands.fc
  60. BIN Seas0nPass/Resources/Binaries/PATCHES/8F305/crunchd
  61. BIN Seas0nPass/Resources/Binaries/PATCHES/8F305/fstab.patch
  62. BIN Seas0nPass/Resources/Binaries/PATCHES/8F305/iBSS.k66ap.RELEASE.patch
  63. BIN Seas0nPass/Resources/Binaries/PATCHES/8F305/status.patch
  64. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/8F305/uncompress
  65. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/AppleTV.patch
  66. +120 −0 Seas0nPass/Resources/Binaries/PATCHES/8F455/Info.plist
  67. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/asr.patch
  68. +203 −0 Seas0nPass/Resources/Binaries/PATCHES/8F455/commands.fc
  69. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/fstab.patch
  70. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/iBSS.k66ap.RELEASE.patch
  71. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/options.plist.patch
  72. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/saffron.deb
  73. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/saffron.tar
  74. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/status.patch
  75. +1 −0 Seas0nPass/Resources/Binaries/PATCHES/8F455/syslog.conf
  76. BIN Seas0nPass/Resources/Binaries/PATCHES/8F455/syslogd.patch
  77. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/8F455/uncompress
  78. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/AppleTV.patch
  79. +120 −0 Seas0nPass/Resources/Binaries/PATCHES/9A334v/Info.plist
  80. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/asr.patch
  81. +213 −0 Seas0nPass/Resources/Binaries/PATCHES/9A334v/commands.fc
  82. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/fstab.patch
  83. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/iBEC.k66ap.RELEASE.patch
  84. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/iBSS.k66ap.RELEASE.patch
  85. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/kernelcache.release.k66.patch
  86. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/options.plist.patch
  87. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/status.patch
  88. +1 −0 Seas0nPass/Resources/Binaries/PATCHES/9A334v/syslog.conf
  89. BIN Seas0nPass/Resources/Binaries/PATCHES/9A334v/syslogd.patch
  90. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/9A334v/uncompress
  91. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/AppleTV.patch
  92. +117 −0 Seas0nPass/Resources/Binaries/PATCHES/9A335a/Info.plist
  93. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/asr.patch
  94. +222 −0 Seas0nPass/Resources/Binaries/PATCHES/9A335a/commands.fc
  95. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/fstab.patch
  96. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/iBEC.k66ap.RELEASE.patch
  97. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/iBSS.k66ap.RELEASE.patch
  98. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/kernelcache.release.k66.patch
  99. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/options.k66.patch
  100. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/status.patch
  101. +1 −0 Seas0nPass/Resources/Binaries/PATCHES/9A335a/syslog.conf
  102. BIN Seas0nPass/Resources/Binaries/PATCHES/9A335a/syslogd.patch
  103. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/9A335a/uncompress
  104. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/AppleTV.patch
  105. +117 −0 Seas0nPass/Resources/Binaries/PATCHES/9A336a/Info.plist
  106. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/asr.patch
  107. +222 −0 Seas0nPass/Resources/Binaries/PATCHES/9A336a/commands.fc
  108. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/fstab.patch
  109. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/iBEC.k66ap.RELEASE.patch
  110. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/iBSS.k66ap.RELEASE.patch
  111. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/kernelcache.release.k66.patch
  112. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/options.k66.patch
  113. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/status.patch
  114. +1 −0 Seas0nPass/Resources/Binaries/PATCHES/9A336a/syslog.conf
  115. BIN Seas0nPass/Resources/Binaries/PATCHES/9A336a/syslogd.patch
  116. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/9A336a/uncompress
  117. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/AppleTV.patch
  118. +118 −0 Seas0nPass/Resources/Binaries/PATCHES/9A405l/Info.plist
  119. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/asr.patch
  120. +208 −0 Seas0nPass/Resources/Binaries/PATCHES/9A405l/commands.fc
  121. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/corona.tgz
  122. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/fstab.patch
  123. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/iBEC.k66ap.RELEASE.patch
  124. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/iBSS.k66ap.RELEASE.patch
  125. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/racoon.patch
  126. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/status.patch
  127. +1 −0 Seas0nPass/Resources/Binaries/PATCHES/9A405l/syslog.conf
  128. BIN Seas0nPass/Resources/Binaries/PATCHES/9A405l/syslogd.patch
  129. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/9A405l/uncompress
  130. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/AppleTV.patch
  131. +118 −0 Seas0nPass/Resources/Binaries/PATCHES/9A406a/Info.plist
  132. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/asr.patch
  133. +208 −0 Seas0nPass/Resources/Binaries/PATCHES/9A406a/commands.fc
  134. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/corona.tgz
  135. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/fstab.patch
  136. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/iBEC.k66ap.RELEASE.patch
  137. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/iBSS.k66ap.RELEASE.patch
  138. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/racoon.patch
  139. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/status.patch
  140. +1 −0 Seas0nPass/Resources/Binaries/PATCHES/9A406a/syslog.conf
  141. BIN Seas0nPass/Resources/Binaries/PATCHES/9A406a/syslogd.patch
  142. +3 −0 Seas0nPass/Resources/Binaries/PATCHES/9A406a/uncompress
  143. +12 −0 Seas0nPass/Resources/ProgramsToWarn.txt
  144. +188 −0 Seas0nPass/Utils/ArchiveUtils.cs
  145. +39 −0 Seas0nPass/Utils/BaseIOUtils.cs
  146. +39 −0 Seas0nPass/Utils/HookResolver.cs
  147. +123 −0 Seas0nPass/Utils/LogUtil.cs
  148. +198 −0 Seas0nPass/Utils/MiscUtils.cs
  149. +60 −0 Seas0nPass/Utils/SafeDirectory.cs
  150. +51 −0 Seas0nPass/Utils/SafeFile.cs
  151. +46 −0 Seas0nPass/Utils/WinProcessUtil.cs
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>FilesystemPatches</key>
+ <dict>
+ <key>Core Files Installation</key>
+ <array>
+ <dict>
+ <key>Action</key>
+ <string>Add</string>
+ <key>File</key>
+ <string>hfs_mdb</string>
+ <key>Name</key>
+ <string>hfs_mdb</string>
+ <key>Path</key>
+ <string>usr/lib/hfs_mdb</string>
+ </dict>
+ <dict>
+ <key>Action</key>
+ <string>Add</string>
+ <key>File</key>
+ <string>kern_sploit</string>
+ <key>Name</key>
+ <string>kern_sploit</string>
+ <key>Path</key>
+ <string>usr/lib/kern_sploit</string>
+ </dict>
+ <dict>
+ <key>Action</key>
+ <string>Add</string>
+ <key>File</key>
+ <string>punchd</string>
+ <key>Name</key>
+ <string>punchd</string>
+ <key>Path</key>
+ <string>sbin/launchd</string>
+ </dict>
+ </array>
+ <key>Filesystem Jailbreak</key>
+ <array>
+ <dict>
+ <key>Action</key>
+ <string>Patch</string>
+ <key>File</key>
+ <string>etc/fstab</string>
+ <key>Name</key>
+ <string>Filesystem Write Access</string>
+ <key>Patch</key>
+ <string>fstab.patch</string>
+ </dict>
+ <dict>
+ <key>Action</key>
+ <string>Patch</string>
+ <key>File</key>
+ <string>System/Library/Lockdown/Services.plist</string>
+ <key>Name</key>
+ <string>Apple File Connection v2</string>
+ <key>Patch</key>
+ <string>Services.patch</string>
+ </dict>
+ <dict>
+ <key>Action</key>
+ <string>Patch</string>
+ <key>File</key>
+ <string>Applications/AppleTV.app/AppleTV</string>
+ <key>Name</key>
+ <string>Seatbelt</string>
+ <key>Patch</key>
+ <string>AppleTV.patch</string>
+ </dict>
+ </array>
+ </dict>
+ <key>FirmwarePatches</key>
+ <dict>
+ <key>Restore Ramdisk</key>
+ <dict>
+ <key>File</key>
+ <string>038-0318-001.dmg</string>
+ <key>IV</key>
+ <string>7c256102d0580b960213540965618b5b</string>
+ <key>Key</key>
+ <string>5d4e967158ab75ba27ec281bff4e714dacc88123ea4913ae2bee6a719c15496c</string>
+ <key>TypeFlag</key>
+ <integer>8</integer>
+ </dict>
+ <key>iBSS</key>
+ <dict>
+ <key>File</key>
+ <string>Firmware/dfu/iBSS.k66ap.RELEASE.dfu</string>
+ <key>IV</key>
+ <string>03baadf8801e8b7cdcee5a9f53609d0c</string>
+ <key>Key</key>
+ <string>c9f8bd4e52530ec8ef3e2b5926777f624061a38d09f07785287de6e88353f752</string>
+ <key>Patch</key>
+ <string>iBSS.k66ap.RELEASE.patch</string>
+ <key>TypeFlag</key>
+ <integer>8</integer>
+ </dict>
+ </dict>
+ <key>RamdiskPatches</key>
+ <dict>
+ <key>asr</key>
+ <dict>
+ <key>File</key>
+ <string>usr/sbin/asr</string>
+ <key>Patch</key>
+ <string>asr.patch</string>
+ <key>MD5</key>
+ <string>072c70c08790a4d80f1683e60f4edb71</string>
+ </dict>
+ </dict>
+ <key>PreInstalledPackages</key>
+ <array>
+ <string>org.saurik.cydia-atv</string>
+ </array>
+ <key>DeleteBuildManifest</key>
+ <false/>
+ <key>RestoreRamdiskMountVolume</key>
+ <string>ramdisk</string>
+ <key>RootFilesystem</key>
+ <string>038-0316-001.dmg</string>
+ <key>RootFilesystemSize</key>
+ <integer>770</integer>
+ <key>RootFilesystemKey</key>
+ <string>5407d28e075f5a2e06fddb7ad00123aa5a528bd6c2850d5fa0908a4dcae7dd3e00a9cdb2</string>
+ <key>RootFilesystemMountVolume</key>
+ <string>Jasper8C154.K66OS</string>
+ <key>SHA1</key>
+ <string>c2b1adea595afa2b9caf633f0a820d3b66424dbf</string>
+ <key>Filename</key>
+ <string>AppleTV2,1_4.2.1_8C154_Restore.ipsw</string>
+ <key>Name</key>
+ <string>AppleTV2,1_4.2.1_8C154</string>
+ <key>DownloadUrl</key>
+ <string>http://appldnld.apple.com/AppleTV/061-9978.20101214.gmabr/AppleTV2,1_4.2.1_8C154_Restore.ipsw</string>
+ <key>Platform</key>
+ <integer>3</integer>
+ <key>SubPlatform</key>
+ <integer>10</integer>
+</dict>
+</plist>
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,194 @@
+set $orig_filename AppleTV2,1_4.2.1_8C154_Restore.ipsw
+set $patched_filename AppleTV2,1_4.2.1_8C154_SP_Restore.ipsw
+set $folder AppleTV2,1_4.2.1_8C154
+set $downUrl http://appldnld.apple.com/AppleTV/061-9978.20101214.gmabr/AppleTV2,1_4.2.1_8C154_Restore.ipsw
+set $needTether false
+set $save_iBEC false
+
+-- $md5 will be used to determine which fw version was selected (for manual selection)
+set $md5 3fe1a01b8f5c8425a074ffd6deea7c86
+-- $name will be displayed in drop-down menu of "Create IPSW" button
+set $name "4.2.1 8C154"
+
+set $fw_code 8C154
+set $orig_dmg 038-0318-001.dmg
+set $other_dmg 038-0316-001.dmg
+
+set $orig_dmg_iv_key 7c256102d0580b960213540965618b5b
+set $orig_dmg_k_key 5d4e967158ab75ba27ec281bff4e714dacc88123ea4913ae2bee6a719c15496c
+set $other_dmg_k_key 5407d28e075f5a2e06fddb7ad00123aa5a528bd6c2850d5fa0908a4dcae7dd3e00a9cdb2
+
+set $dfu_iv_key 03baadf8801e8b7cdcee5a9f53609d0c
+set $dfu_k_key c9f8bd4e52530ec8ef3e2b5926777f624061a38d09f07785287de6e88353f752
+
+
+-- unzip firmware
+message "Unzipping..."
+resetdir UNZIPPED_ORIGINAL
+unzip firmware.ipsw UNZIPPED_ORIGINAL
+progress 5
+
+-- decrypt_ramdisk
+message "Decrypting ramdisk..."
+resetdir ipsw
+resetdir tmp
+resetdir output
+exec xpwntool.exe .\UNZIPPED_ORIGINAL\$orig_dmg ipsw/$orig_dmg -iv $orig_dmg_iv_key -k $orig_dmg_k_key
+progress 6
+
+-- patch asr
+resetdir TMP
+copy ipsw\$orig_dmg tmp\our.dmg
+message "Patching ramdisk..."
+exec hfsplus.exe .\tmp\our.dmg extract /usr/sbin/asr .\tmp\asr
+exec hfsplus.exe .\tmp\our.dmg rm /usr/sbin/asr
+exec hfsplus.exe .\tmp\our.dmg grow 16542208
+exec bspatch.exe .\tmp\asr .\tmp\asr.patched .\patches\$fw_code\asr.patch
+exec hfsplus.exe .\tmp\our.dmg add .\tmp\asr.patched /usr/sbin/asr
+exec hfsplus.exe .\tmp\our.dmg chmod 755 /usr/sbin/asr
+progress 8
+
+-- encrypt ramdisk
+message "Encrypting ramdisk..."
+exec xpwntool.exe .\tmp\our.dmg .\output\$orig_dmg -iv $orig_dmg_iv_key -k $orig_dmg_k_key -t .\UNZIPPED_ORIGINAL\$orig_dmg
+progress 9
+
+-- decrypt filesystem
+message "Decrypting file system..."
+exec vfdecrypt.exe -i .\UNZIPPED_ORIGINAL\$other_dmg -k $other_dmg_k_key -o ipsw/$other_dmg
+progress 17
+copy ipsw\$other_dmg tmp\our-big.dmg
+
+-- unpakc filesystem image
+exec dmg-bin.exe extract .\tmp\our-big.dmg .\tmp\our-big-hfsimage.dmg
+progress 49
+
+message "Patching file system..."
+
+-- patch fstab
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg extract /etc/fstab .\tmp\fstab
+exec bspatch.exe .\tmp\fstab .\tmp\fstab.patched .\patches\$fw_code\fstab.patch
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg rm /etc/fstab
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\tmp\fstab.patched /etc/fstab
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /etc/fstab
+
+progress 54
+
+-- patch appletv
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg extract /Applications/AppleTV.app/AppleTV .\tmp\AppleTV
+exec bspatch.exe .\tmp\AppleTV .\tmp\AppleTV.patched .\patches\$fw_code\AppleTV.patch
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg rm /Applications/AppleTV.app/AppleTV
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\tmp\AppleTV.patched /Applications/AppleTV.app/AppleTV
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 775 /Applications/AppleTV.app/AppleTV
+
+progress 55
+
+-- patch services plist
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg extract /System/Library/Lockdown/Services.plist .\tmp\Services.plist
+exec bspatch.exe .\tmp\Services.plist .\tmp\Services.plist.patched .\patches\$fw_code\Services.patch
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg rm /System/Library/Lockdown/Services.plist
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\tmp\Services.plist.patched /System/Library/Lockdown/Services.plist
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /System/Library/Lockdown/Services.plist
+
+-- add hfs mdb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\patches\$fw_code\hfs_mdb /usr/lib/hfs_mdb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 755 /usr/lib/hfs_mdb
+
+-- add kernel sploit
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\patches\$fw_code\kern_sploit /usr/lib/kern_sploit
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 755 /usr/lib/kern_sploit
+
+-- add punchd
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg extract /sbin/launchd .\tmp\launchd
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg rm /sbin/launchd
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\patches\$fw_code\punchd /sbin/launchd
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 755 /sbin/launchd
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\tmp\launchd /sbin/punchd
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 555 /sbin/punchd
+
+progress 56
+
+message "Installing software..."
+resetdir tmp\cydia
+ungzip cydia.tgz tmp\cydia cydia.tar
+progress 59
+
+-- add cydia to image
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg untar .\tmp\cydia\cydia.tar
+
+-- add other debs
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\DEBS\asubstratesafe.deb /private/var/root/Media/Cydia/AutoInstall/asubstratesafe.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /private/var/root/Media/Cydia/AutoInstall/asubstratesafe.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\DEBS\bsubstrate.deb /private/var/root/Media/Cydia/AutoInstall/bsubstrate.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /private/var/root/Media/Cydia/AutoInstall/bsubstrate.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\DEBS\awkwardtv.deb /private/var/root/Media/Cydia/AutoInstall/awkwardtv.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /private/var/root/Media/Cydia/AutoInstall/awkwardtv.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\DEBS\com.nito.deb /private/var/root/Media/Cydia/AutoInstall/com.nito.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /private/var/root/Media/Cydia/AutoInstall/com.nito.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\DEBS\org.xbmc.repo_0.1-1_iphoneos-arm.deb /private/var/root/Media/Cydia/AutoInstall/org.xbmc.repo_0.1-1_iphoneos-arm.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /private/var/root/Media/Cydia/AutoInstall/org.xbmc.repo_0.1-1_iphoneos-arm.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\DEBS\syslogd.deb /private/var/root/Media/Cydia/AutoInstall/syslogd.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /private/var/root/Media/Cydia/AutoInstall/syslogd.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\DEBS\com.firecore.seas0npass.deb /private/var/root/Media/Cydia/AutoInstall/com.firecore.seas0npass.deb
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 644 /private/var/root/Media/Cydia/AutoInstall/com.firecore.seas0npass.deb
+
+progress 177
+
+-- create symlinks
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mkdir /var/stash
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mkdir /usr/include
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mv /Applications /var/stash/Applications
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mv /Library/Ringtones /var/stash/Ringtones
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mv /Library/Wallpaper /var/stash/Wallpaper
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mv /usr/bin /var/stash/bin
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mv /usr/include /var/stash/include
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mv /usr/lib/pam /var/stash/pam
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mv /usr/libexec /var/stash/libexec
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg mv /usr/share /var/stash/share
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg symlink /Applications var/stash/Applications
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg symlink /Library/Ringtones ../var/stash/Ringtones
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg symlink /Library/Wallpaper ../var/stash/Wallpaper
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg symlink /usr/bin ../var/stash/bin
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg symlink /usr/include ../var/stash/include
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg symlink /usr/lib/pam ../../var/stash/pam
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg symlink /usr/libexec ../var/stash/libexec
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg symlink /usr/share ../var/stash/share
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmodh 755 /Applications
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmodh 755 /Library/Ringtones
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmodh 755 /Library/Wallpaper
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmodh 755 /usr/bin
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmodh 755 /usr/include
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmodh 755 /usr/lib/pam
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmodh 755 /usr/libexec
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmodh 755 /usr/share
+
+-- add uncompress
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg add .\patches\$fw_code\uncompress /bin/uncompress
+exec hfsplus.exe .\tmp\our-big-hfsimage.dmg chmod 755 /bin/uncompress
+
+progress 179
+message "Creating IPSW..."
+
+-- pack filesystem
+exec dmg-bin.exe build .\tmp\our-big-hfsimage.dmg .\output\$other_dmg
+
+copy UNZIPPED_ORIGINAL\kernelcache.release.k66 OUTPUT\kernelcache.release.k66
+copy UNZIPPED_ORIGINAL\BuildManifest.plist OUTPUT\BuildManifest.plist
+copy UNZIPPED_ORIGINAL\Restore.plist OUTPUT\Restore.plist
+
+resetdir OUTPUT\Firmware
+copydir UNZIPPED_ORIGINAL\Firmware OUTPUT\Firmware
+
+-- patch dfu
+exec xpwntool.exe .\OUTPUT\Firmware\dfu\iBSS.k66ap.RELEASE.dfu .\OUTPUT\Firmware\dfu\decrypted.dfu -iv $dfu_iv_key -k $dfu_k_key
+exec bspatch.exe .\OUTPUT\Firmware\dfu\decrypted.dfu .\OUTPUT\Firmware\dfu\patched.dfu .\patches\$fw_code\iBSS.k66ap.RELEASE.patch
+exec xpwntool.exe .\OUTPUT\Firmware\dfu\patched.dfu .\OUTPUT\Firmware\dfu\encrypted.dfu -iv $dfu_iv_key -k $dfu_k_key -t .\OUTPUT\Firmware\dfu\iBSS.k66ap.RELEASE.dfu
+
+progress 229
+message "Compressing IPSW..."
+delete OUTPUT\Firmware\dfu\iBSS.k66ap.RELEASE.dfu
+delete OUTPUT\Firmware\dfu\patched.dfu
+delete OUTPUT\Firmware\dfu\decrypted.dfu
+move OUTPUT\Firmware\dfu\encrypted.dfu OUTPUT\Firmware\dfu\iBSS.k66ap.RELEASE.dfu
+
+-- now all files from OUTPUT will be packed into new firmware image
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
+#!/bin/sh
+PATH=${GZIP_BINDIR-'/usr/bin'}:$PATH
+exec gzip -d "$@"
Binary file not shown.
Oops, something went wrong.

0 comments on commit 7b0e212

Please sign in to comment.