From f41d301107edbef9fa918172b4249ca39a6d2c45 Mon Sep 17 00:00:00 2001 From: nn9dev <39563889+nn9dev@users.noreply.github.com> Date: Tue, 5 Feb 2019 10:15:32 -0500 Subject: [PATCH 1/3] add Log for confirming ssh --- rootlessJB/ViewController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootlessJB/ViewController.m b/rootlessJB/ViewController.m index 2c624f9..eef24e1 100644 --- a/rootlessJB/ViewController.m +++ b/rootlessJB/ViewController.m @@ -285,6 +285,8 @@ - (IBAction)jailbrek:(id)sender { // kill it if running launch("/var/containers/Bundle/iosbinpack64/usr/bin/killall", "-SEGV", "dropbear", NULL, NULL, NULL, NULL, NULL); failIf(launchAsPlatform("/var/containers/Bundle/iosbinpack64/usr/local/bin/dropbear", "-R", "--shell", "/var/containers/Bundle/iosbinpack64/bin/bash", "-E", "-p", "22", NULL), "[-] Failed to launch dropbear"); + if ("/var/dropbear/") + LOG("[+] SSH is all good and running on port 22over wifi and 2222 over USB. Have fun!"); //------------- launch daeamons -------------// //-- you can drop any daemon plist in iosbinpack64/LaunchDaemons and it will be loaded automatically --// From 7302a679e086310d1876db6735af87bfc849e94a Mon Sep 17 00:00:00 2001 From: nn9dev <39563889+nn9dev@users.noreply.github.com> Date: Tue, 5 Feb 2019 10:20:57 -0500 Subject: [PATCH 2/3] proper check for if the dropbear binary exists --- rootlessJB/ViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootlessJB/ViewController.m b/rootlessJB/ViewController.m index eef24e1..2f7325f 100644 --- a/rootlessJB/ViewController.m +++ b/rootlessJB/ViewController.m @@ -285,8 +285,8 @@ - (IBAction)jailbrek:(id)sender { // kill it if running launch("/var/containers/Bundle/iosbinpack64/usr/bin/killall", "-SEGV", "dropbear", NULL, NULL, NULL, NULL, NULL); failIf(launchAsPlatform("/var/containers/Bundle/iosbinpack64/usr/local/bin/dropbear", "-R", "--shell", "/var/containers/Bundle/iosbinpack64/bin/bash", "-E", "-p", "22", NULL), "[-] Failed to launch dropbear"); - if ("/var/dropbear/") - LOG("[+] SSH is all good and running on port 22over wifi and 2222 over USB. Have fun!"); + if ("/var/containers/Bundle/iosbinpack64/usr/local/bin/dropbear"); + LOG("[+] SSH is all good and running on port 22 over wifi and 2222 over USB. Have fun!"); //------------- launch daeamons -------------// //-- you can drop any daemon plist in iosbinpack64/LaunchDaemons and it will be loaded automatically --// From 2e7355ba2872bb6ba94e6658afa6d050ef8aaa24 Mon Sep 17 00:00:00 2001 From: nn9dev <39563889+nn9dev@users.noreply.github.com> Date: Fri, 8 Feb 2019 11:29:34 -0500 Subject: [PATCH 3/3] clarify you need root to run inject --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff4e14f..2c473df 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ All executables must have at least these two entitlements: - Apps get installed in /var/Apps and later you need to run /var/containers/Bundle/iosbinpack64/usr/bin/uicache (other uicache binaries won't work) # iOS 12 -- No amfid patch, either run "inject /path/to/executable_or_dylib" after adding stuff, or reboot and rejailbreak +- No amfid patch, either ssh in as root and run "inject /path/to/executable_or_dylib" after adding stuff, or reboot and rejailbreak - Sandbox exceptions are broken. You can't tweak App Store apps + some system apps yet. - PreferenceLoader is broken, I suspect the preference bundles are some special kind of macho which amfid can understand but not the trustcache injector. - This is not dangerous and cannot screw you up but not likely to be unstable/buggy