Various project, structure, UI and post-installation changes#289
Various project, structure, UI and post-installation changes#289mologie wants to merge 38 commits intokpwn:masterfrom mologie:patch/project-structure
Conversation
Remove IOKit.tbd and use the one shipped in the iOS SDK instead; move bootstrap files to Resources directory; move code signing settings to separate Xcode config file for the sake of keeping git diffs clean.
This avoids clashes if any iOS library should depend on quirks of the iOS libkern headers or includes them directly. However, OSTypes.h is missing from the iOS SDK. The rather short file from the macOS SDK is compatible.
# Conflicts: # yalu102/jailbreak.m
# Conflicts: # yalu102.xcodeproj/project.pbxproj # yalu102/Resources/reload # yalu102/jailbreak.m # yalu102/offsets.c
# Conflicts: # yalu102.xcodeproj/project.pbxproj # yalu102/jailbreak.m
|
This is interesting🤔
…On 30 jan. 2017 16:15 +0100, Oliver Kuckertz ***@***.***>, wrote:
Hey, I've been maintaining a slightly customized version of yalu102 over at https://github.com/mologie/yalu102 for the past few days and kept it in sync with your master branch. I think that the audience of yours can benefit of those patches and am submitting them here - merge/cherrypick at will, or ignore it entirely if the change set is too large. The actual exploitation phase remains untouched.
Adds a toggle for remote SSH access (https://cloud.githubusercontent.com/assets/597682/22427945/6d840c64-e705-11e6-9528-8b5f24c79060.PNG)
Pulls in #147 (#147)
Factors tfp0 exploit out into a separate class, making the VC more designer friendly
Drops offsets.c/devicesupport.m in favour of an external Kernels.plist file
Moves code signing configuration to an external file (yalu.xcconfig), which makes it more git-friendly
Don't make the path to /private/var/mobile/Library/Preferences world-writable (I'll gladly revert this one if there is a sane reason to do this. So far, everything works nicely without the change.)
Enables ARC and makes the main view controller compatible
Significantly cuts down on the amount of warning noise in the tfp0 patch and jailbreak.m
Refactors the post-jailbreak FS modification part to fix various permission/owner/group issues and reduce it in length
You can view, comment on, or merge this pull request online at:
#289
Commit Summary
Find IOKit headers automatically
Update README.md
Update README.md
Fix IOKit symlink script return code
Reorganize Xcode project
Add bootstrap.tar temporary directory to .gitignore
Use iOS libkern headers with OSTypes.h from macOS
Merge branch 'patch/auto-iokit' into patch/project-structure
Clear automated code signing settings
Refactor offsets.c into Kernels.plist, remove devicesupport.h/m
early 4k support
ew logs
Port over Mila432's offset changes
Factor tfp0 exploit out into separate file
Cosmetics
Don’t make tar world-writable
Fix app installation
hit that blunt
hit that blunt
Add printing uname result to log
Cosmetics
Add printing jailbreak() config to log
Add pte_stuff.h to Xcode project
Cosmetics
Fix vm_address_t size regression
Create softwareupdated launchd plist backup
Don’t change mode of Preferences directory
Merge branch 'master' into patch/project-structure
Cut down compiler warning noise
Merge branch 'master' into patch/project-structure
Cosmetics
Cosmetics
Merge branch 'master' into patch/project-structure
Enable ARC
Add switch for enabling remote SSH access
Reenable original OTA patch
File Changes
M README.md (https://github.com/kpwn/yalu102/pull/289/files#diff-0) (3)
A yalu102.xcconfig (https://github.com/kpwn/yalu102/pull/289/files#diff-1) (4)
M yalu102.xcodeproj/project.pbxproj (https://github.com/kpwn/yalu102/pull/289/files#diff-2) (144)
M yalu102/AppDelegate.h (https://github.com/kpwn/yalu102/pull/289/files#diff-3) (2)
M yalu102/AppDelegate.m (https://github.com/kpwn/yalu102/pull/289/files#diff-4) (7)
M yalu102/Base.lproj/Main.storyboard (https://github.com/kpwn/yalu102/pull/289/files#diff-5) (51)
D yalu102/IOKit.tbd (https://github.com/kpwn/yalu102/pull/289/files#diff-6) (852)
A yalu102/Kernels.plist (https://github.com/kpwn/yalu102/pull/289/files#diff-7) (139)
A yalu102/Resources/.gitignore (https://github.com/kpwn/yalu102/pull/289/files#diff-8) (1)
R yalu102/Resources/0.reload.plist (https://github.com/kpwn/yalu102/pull/289/files#diff-9) (0)
R yalu102/Resources/bootstrap.tar (https://github.com/kpwn/yalu102/pull/289/files#diff-10) (0)
R yalu102/Resources/dropbear.plist (https://github.com/kpwn/yalu102/pull/289/files#diff-11) (2)
R yalu102/Resources/launchctl (https://github.com/kpwn/yalu102/pull/289/files#diff-12) (0)
R yalu102/Resources/reload (https://github.com/kpwn/yalu102/pull/289/files#diff-13) (0)
R yalu102/Resources/tar (https://github.com/kpwn/yalu102/pull/289/files#diff-14) (0)
M yalu102/ViewController.h (https://github.com/kpwn/yalu102/pull/289/files#diff-15) (4)
M yalu102/ViewController.m (https://github.com/kpwn/yalu102/pull/289/files#diff-16) (409)
A yalu102/YAExploitTFP0.h (https://github.com/kpwn/yalu102/pull/289/files#diff-17) (20)
A yalu102/YAExploitTFP0.m (https://github.com/kpwn/yalu102/pull/289/files#diff-18) (336)
A yalu102/YAKernelOffsets.h (https://github.com/kpwn/yalu102/pull/289/files#diff-19) (20)
A yalu102/YAKernelOffsets.m (https://github.com/kpwn/yalu102/pull/289/files#diff-20) (48)
A yalu102/csflags.h (https://github.com/kpwn/yalu102/pull/289/files#diff-21) (26)
D yalu102/devicesupport.m (https://github.com/kpwn/yalu102/pull/289/files#diff-22) (50)
A yalu102/include/.gitignore (https://github.com/kpwn/yalu102/pull/289/files#diff-23) (2)
A yalu102/include/README.md (https://github.com/kpwn/yalu102/pull/289/files#diff-24) (3)
A yalu102/jailbreak.h (https://github.com/kpwn/yalu102/pull/289/files#diff-25) (15)
M yalu102/jailbreak.m (https://github.com/kpwn/yalu102/pull/289/files#diff-26) (303)
R yalu102/mac_policy.h (https://github.com/kpwn/yalu102/pull/289/files#diff-27) (42)
A yalu102/mach_vm.h (https://github.com/kpwn/yalu102/pull/289/files#diff-28) (12)
D yalu102/offsets.c (https://github.com/kpwn/yalu102/pull/289/files#diff-29) (116)
D yalu102/offsets.h (https://github.com/kpwn/yalu102/pull/289/files#diff-30) (37)
M yalu102/patchfinder64.h (https://github.com/kpwn/yalu102/pull/289/files#diff-31) (42)
Patch Links:
https://github.com/kpwn/yalu102/pull/289.patch
https://github.com/kpwn/yalu102/pull/289.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#289), or mute the thread (https://github.com/notifications/unsubscribe-auth/ARGTBvvA9s9hNW2j40nIyu39I5HJExPNks5rXf55gaJpZM4LxhHr).
|
|
You have been busy thanks |
|
This looks great |
|
@mwoolweaver: This is by design. The app only has permissions to make changes to the SSH daemon during the jailbreaking process. |
|
Nice, might want to take a look at #141: that adds a bunch of stuff |
|
@nullpixel1: Shameless self-advertisement ;P I don't think we can merge our two forks together just yet. Git will scream at us with conflicts. I'm also not entirely sure if it is wise to add register url scheme which makes the device patch its kernel. Your simulator changes look very interesting. We should discuss this further once/if any of the two PRs are merged. |
|
@mologie oh, no, I think they work well together as prs.
Doesn't do it directly, I only set a flag on app delegate if the user presses okay in the dialogue |
nullpixel
left a comment
There was a problem hiding this comment.
Is this needed?
All you need to do is symlink the files, no need to add this
|
@nullpixel1, GitHub is not showing your comment in context of any code. What are you referring to exactly? |
|
Sorry. edf0859 |
|
Xcode is not guaranteed to be installed under |
|
+1 then. Does it need to be in the project dir, or could you get Xcode to move it into where it expects it without additional configuration? |
|
Are you referring to the symlinks created? (Missing the context of what you wish to discuss...) If so, I made it write those to the project directory, because the an Xcode project pulled of github should not mess with any space not assigned to it. I especially wouldn't want it to modify the default search path. |
|
Looks nice to me then, +1 |
|
This is nice, +1 |
|
"Don't make the path to /private/var/mobile/Library/Preferences world-writable", I got it and anything work fine for me |
|
Closing this; the ssh toggle would conflict with how proper integration with the package manager would work. The remainder are cosmetic changes, which don't really belong into a PR. |
Hey, I've been maintaining a slightly customized version of yalu102 over at https://github.com/mologie/yalu102 for the past few days and kept it in sync with your master branch. I think that the audience of yours can benefit of those patches and am submitting them here - merge/cherrypick at will, or ignore it entirely if the change set is too large. The actual exploitation phase remains untouched.
/private/var/mobile/Library/Preferencesworld-writable (I'll gladly revert this one if there is a sane reason to do this. So far, everything works nicely without the change.)