Skip to content
Snippets Groups Projects
Verified Commit 974e0a09 authored by Spotlight Deveaux's avatar Spotlight Deveaux :fox:
Browse files

Add usage instructions

parent 9d649891
No related branches found
No related tags found
No related merge requests found
# p0sixspwn_limd
`p0sixspwn_limd` is the p0sixspwn jailbreak but utilizing the libimobiledevice library compared to MobileDevice. This allows for many, many more platforms to be supported, and should an API change, no hacky fixes to apply.
## Prerequisites
In order to build, one should simply run `make`.
Make sure that your device is on and unlocked, and in the case of multiple devices, only your iPod is connected.
Beyond this point, you can use the following syntax to run:
```
sudo ./mobile_inject Resources/DeveloperDiskImage.dmg Resources/DeveloperDiskImage.dmg.signature Resources/Root.dmg
```
......@@ -57,10 +57,10 @@ static void cb(const idevice_event_t *given_event, void *ignored_user_data) {
lockdownd_client_new_with_handshake(dev, &lockdown_client, "CopyIt");
if (err != LOCKDOWN_E_SUCCESS) {
printf("Failed to talk to lockdown: %d\n", err);
return;
exit(2);
}
Retry : {}
Retry: {}
printf("Starting AFC service...\n");
lockdownd_service_descriptor_t afc_descriptor = 0;
assert(!lockdownd_start_service(lockdown_client, "com.apple.afc",
......@@ -141,10 +141,10 @@ static void cb(const idevice_event_t *given_event, void *ignored_user_data) {
if (!status) {
printf("Error: Seems like the status given wasn't a string:\n");
print_xml(mount_result_dict);
return;
exit(2);
}
} else {
printf("Error: Doesn't seem there was any status given:\n");
printf("Error: Doesn't seem there was any status given.. check for an error. Returned:\n");
print_xml(mount_result_dict);
status = "";
}
......@@ -164,7 +164,7 @@ static void cb(const idevice_event_t *given_event, void *ignored_user_data) {
return;
}
assert(!fcntl(helper_socket, F_SETFL, O_NONBLOCK));
assert(!fcntl(0, F_SETFL, O_NONBLOCK));
// assert(!fcntl(0, F_SETFL, O_NONBLOCK));
exit(0);
} else {
printf("Failed to inject image, trying again... (if it fails, try a "
......@@ -191,8 +191,8 @@ int main(int argc, char **argv) {
real_dmg_signature = argv[2];
root_dmg = argv[3];
// Loop while performing
assert(!idevice_event_subscribe(cb, NULL));
// I guess loop
while (1) {
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment