Skip to content

Commit 68d1c8d

Browse files
author
hackcatml
committed
update postinst script. sign the binaries on the device to avoid a crash issue on rootless jb
1 parent 4bb52eb commit 68d1c8d

5 files changed

Lines changed: 61 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ xcuserdata/
99
.theos/
1010
packages/
1111
.DS_Store
12-
.swiftpm/
12+
.swiftpm/
13+
backup/

Resources/ent.plist

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>platform-application</key>
6+
<true/>
7+
<key>application-identifier</key>
8+
<string>com.hackcatml.mldecryptapp</string>
9+
<key>com.apple.security.exception.files.absolute-path.read-write</key>
10+
<array>
11+
<string>/</string>
12+
</array>
13+
<key>com.apple.private.security.no-sandbox</key>
14+
<true/>
15+
<key>com.apple.private.persona-mgmt</key>
16+
<true/>
17+
<key>com.apple.private.MobileContainerManager.allowed</key>
18+
<true/>
19+
<key>com.apple.private.security.container-manager</key>
20+
<true/>
21+
<key>com.apple.private.security.storage.AppBundles</key>
22+
<true/>
23+
<key>com.apple.private.security.storage.AppDataContainers</key>
24+
<true/>
25+
<key>task_for_pid-allow</key>
26+
<true/>
27+
<key>get-task-allow</key>
28+
<true/>
29+
<key>com.apple.security.get-task-allow</key>
30+
<true/>
31+
<key>proc_info-allow</key>
32+
<true/>
33+
<key>com.apple.system-task-ports</key>
34+
<true/>
35+
</dict>
36+
</plist>

Resources/entitlements.plist

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>get-task-allow</key>
6+
<true/>
7+
<key>platform-application</key>
8+
<true/>
9+
<key>task_for_pid-allow</key>
10+
<true/>
11+
<key>com.apple.private.security.container-required</key>
12+
<false/>
13+
<key>com.apple.system-task-ports</key>
14+
<true/>
15+
<key>com.apple.system-task-ports.control</key>
16+
<true/>
17+
<key>com.apple.private.thread-set-state</key>
18+
<true/>
19+
</dict>
20+
</plist>

control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: com.hackcatml.mldecrypt
22
Name: mldecrypt
3-
Version: 0.2.0
3+
Version: 0.2.1
44
Architecture: iphoneos-arm
55
Description: iOS app binary dump & backup tool
66
Maintainer: hackcatml

layout/DEBIAN/postinst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
if [ -e /var/jb/usr/bin/su ]
22
then
33
chmod +s /var/jb/usr/bin/mldecrypt 2>/dev/null
4+
ldid -S/var/jb/Applications/mldecryptapp.app/ent.plist /var/jb/Applications/mldecryptapp.app/mldecryptapp
5+
ldid -S/var/jb/Applications/mldecryptapp.app/entitlements.plist /var/jb/usr/bin/mldecrypt
46
else
57
chmod +s /usr/local/bin/mldecrypt 2>/dev/null
68
fi

0 commit comments

Comments
 (0)