Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dopamine for 17.0b1 #501

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
url = https://github.com/opa334/ChOma
[submodule "BaseBin/XPF"]
path = BaseBin/XPF
url = https://github.com/opa334/XPF
url = https://github.com/m1zole/XPF
[submodule "Exploits/kfd/src/kfd"]
path = Application/Dopamine/Dopamine/Exploits/kfd/kfd
url = https://github.com/opa334/kfd
Expand Down
9 changes: 8 additions & 1 deletion Application/Dopamine/Exploits/kfd/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
<key>DPSupportExclude</key>
<array/>
<key>DPSupportInclude</key>
<array/>
<array>
<dict>
<key>Builds</key>
<array>
<string>21A5248v</string>
</array>
</dict>
</array>
<key>DPSupportedRanges</key>
<array>
<dict>
Expand Down
13 changes: 13 additions & 0 deletions Application/Dopamine/Exploits/kfd/kfd.m
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,19 @@ int exploit_init(const char *flavor)
.device__ARM_TT_L1_INDEX_MASK = kconstant(ARM_TT_L1_INDEX_MASK),
};

if (@available(iOS 17.0, *)) {
dynamic_system_info.vm_map__hint = vm_map__pmap + 0x70;
dynamic_system_info.vm_map__hole_hint = vm_map__pmap + 0x78;
dynamic_system_info.vm_map__holes_list = vm_map__pmap + 0x80;
dynamic_system_info.vm_map__object_size = vm_map__pmap + 0x90;

dynamic_system_info.IOSurface__isa = 0x0;
dynamic_system_info.IOSurface__pixelFormat = 0xac;
dynamic_system_info.IOSurface__allocSize = 0xb4;
dynamic_system_info.IOSurface__useCountPtr = 0xc8;
dynamic_system_info.IOSurface__indexedTimestampPtr = 0x390;
dynamic_system_info.IOSurface__readDisplacement = 0x18;
}
if (isiOS15) {
dynamic_system_info.proc__task = 0x10;
}
Expand Down
5 changes: 4 additions & 1 deletion Application/Dopamine/Jailbreak/DOBootstrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ - (void)patchBasebinDaemonPlists
- (NSString *)bootstrapVersion
{
uint64_t cfver = (((uint64_t)kCFCoreFoundationVersionNumber / 100) * 100);
if (cfver >= 2000) {
if (cfver == 2000) {
cfver -= 100;
}
if (cfver > 2000) {
return nil;
}
return [NSString stringWithFormat:@"%llu", cfver];
Expand Down
8 changes: 4 additions & 4 deletions Application/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ all: Dopamine.ipa

Dopamine.ipa: build/Build/Products/Debug-iphoneos/Dopamine.app
@echo Ad-Hoc signing Dopamine
xattr -rc build/Build/Products/Debug-iphoneos/Dopamine.app
xattr -c build/Build/Products/Debug-iphoneos/Dopamine.app
ldid -SDopamine/Dopamine.entitlements build/Build/Products/Debug-iphoneos/Dopamine.app/Dopamine
ldid -s build/Build/Products/Debug-iphoneos/Dopamine.app
rm -rf Payload Dopamine.ipa
Expand All @@ -17,10 +17,10 @@ Dopamine.ipa: build/Build/Products/Debug-iphoneos/Dopamine.app

ifeq ($(NIGHTLY), 1)
build/Build/Products/Debug-iphoneos/Dopamine.app: FORCE
xcodebuild -scheme Dopamine -derivedDataPath build -destination 'generic/platform=iOS' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO GCC_PREPROCESSOR_DEFINITIONS='NIGHTLY=1 COMMIT_HASH=\"$(COMMIT_HASH)\"'
xcodebuild -scheme Dopamine -derivedDataPath build -destination 'generic/platform=iOS' PRODUCT_BUNDLE_IDENTIFIER="com.opa334.Dopamine" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO GCC_PREPROCESSOR_DEFINITIONS='NIGHTLY=1 COMMIT_HASH=\"$(COMMIT_HASH)\"'
else
build/Build/Products/Debug-iphoneos/Dopamine.app: FORCE
xcodebuild -scheme Dopamine -derivedDataPath build -destination 'generic/platform=iOS' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
xcodebuild -scheme Dopamine -derivedDataPath build -destination 'generic/platform=iOS' PRODUCT_BUNDLE_IDENTIFIER="com.opa334.Dopamine" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
endif

clean:
Expand All @@ -29,4 +29,4 @@ clean:
build_clean:
rm -rf Payload build

FORCE: ;
FORCE: ;
2 changes: 1 addition & 1 deletion BaseBin/XPF
Submodule XPF updated 1 files
+5 −1 src/common.c
4 changes: 4 additions & 0 deletions BaseBin/libjailbreak/src/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ void jbinfo_initialize_hardcoded_offsets(void)
gSystemInfo.kernelStruct.proc.textvp = 0x350;
}
}
if (strcmp(xnuVersion, "23.0.0") >= 0) {
gSystemInfo.kernelStruct.task.threads = 0x58;
gSystemInfo.kernelStruct.vm_map.flags = 0xc8;
}
}
}
}
Expand Down
Loading