This commit is contained in:
relikd
2024-04-02 21:54:37 +02:00
commit 8f04d673d9
119 changed files with 20136 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
cd %~dp0
curl -LO https://secure-appldnld.apple.com/itunes12/091-87819-20180912-69177170-B085-11E8-B6AB-C1D03409AD2A6/iTunes64Setup.exe
iTunes64Setup.exe /extract
@REM start /wait msiexec.exe /i AppleApplicationSupport.msi /qn
start /wait msiexec.exe /i AppleApplicationSupport64.msi /qn
@REM start /wait msiexec.exe /i AppleMobileDeviceSupport64.msi /qn
@REM start /wait msiexec.exe /i AppleSoftwareUpdate.msi /qn
@REM start /wait msiexec.exe /i Bonjour64.msi /qn
start /wait msiexec.exe /i iTunes64.msi /qn
python3 patch_itunes.py

View File

@@ -0,0 +1,22 @@
import os
# for debug
P = r"C:\Program Files\iTunes\iTunes1.exe"
if not os.path.exists(P):
# for production
P = r"C:\Program Files\iTunes\iTunes.exe"
with open(P, 'rb') as f:
data = f.read()
data = bytearray(data)
# Patch passwordSettings (actually useless)
data[0x77daf4:0x77daf4+5] = b'\xBF\x03\x00\x00\x00'
data[0x77db7e:0x77db7e+2] = b'\xEB\x0A'
# Patch signIn reason to serverDialog
data[0x7a9ed4:0x7a9ed4+6] = b'\xB9\x23\xFF\xFF\xFF\x90'
with open(P, 'wb') as f:
f.write(data)