summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspv <aquaticvegetable@gmail.com>2022-04-25 13:49:09 -0400
committerspv <aquaticvegetable@gmail.com>2022-04-25 13:49:09 -0400
commit33be9e9d0a5ee0abd0837b74cca15474b81c4f57 (patch)
treee305bd22414224ec091f77b702378f139449cd43
parent0cce7c04c79ff01cb2cb127a42cf349cf76ef814 (diff)
fix
-rw-r--r--src/js/kexp/exploit.c2
-rwxr-xr-xsrc/js/kexp/exploit.js2
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));