diff options
| author | spv420 <spv@spv.sh> | 2022-07-31 22:45:40 -0400 |
|---|---|---|
| committer | spv420 <spv@spv.sh> | 2022-07-31 22:45:40 -0400 |
| commit | 35f5555e9c0fb88827201d6660988b619abb2bd2 (patch) | |
| tree | 0c1533f1980efd01fb26b4c9ebf1ed84621a066c /src/stage4/main.js | |
| parent | 7204eca4a28c681b5ec4801a236f521c69d0e70b (diff) | |
wbamo
Diffstat (limited to 'src/stage4/main.js')
| -rw-r--r-- | src/stage4/main.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/stage4/main.js b/src/stage4/main.js index 980525b..f251666 100644 --- a/src/stage4/main.js +++ b/src/stage4/main.js @@ -31,19 +31,7 @@ function csbypass_wrapper() { } function csbypass_stage4() { -// csbypass_wrapper(); - - var np = new native_ptr(UNSLID_BASE + (get_our_slide() << 12)); - var native_ptr_u16 = native_ptr_type(2, u8x2_to_u16, u16_to_u8x2); - var native_ptr_u32 = native_ptr_type(4, u8x4_to_u32, u32_to_u8x4); - var native_ptr_u16_2 = native_ptr_type(2, u8x2_to_u16, u16_to_u8x2); - - var np1 = new native_ptr_u16(UNSLID_BASE + (get_our_slide() << 12)); - var np2 = new native_ptr_u32(UNSLID_BASE + (get_our_slide() << 12)); - var np3 = new native_ptr_u16_2(UNSLID_BASE + (get_our_slide() << 12)); - -// p0laris_log("%s", Proxy.toString()); - p0laris_log("%x %x %x %x", np1.deref(), np2.deref(), np3.deref()); + csbypass_wrapper(); return 0; } @@ -67,9 +55,21 @@ function main() { sym_cache["JSContextGetGlobalObject"] = JSContextGetGlobalObject + dyld_shc_slide; prep_shit(); + var np = new native_ptr(UNSLID_BASE + (get_our_slide() << 12)); + var native_ptr_u16 = native_ptr_type(2, u8x2_to_u16, u16_to_u8x2); + var native_ptr_u32 = native_ptr_type(4, u8x4_to_u32, u32_to_u8x4); + var native_ptr_u16_2 = native_ptr_type(2, u8x2_to_u16, u16_to_u8x2); + + var np1 = new native_ptr_u16(UNSLID_BASE + (get_our_slide() << 12)); + var np2 = new native_ptr_u32(UNSLID_BASE + (get_our_slide() << 12)); + var np3 = new native_ptr_u16_2(UNSLID_BASE + (get_our_slide() << 12)); + +// p0laris_log("%s", Proxy.toString()); + p0laris_log("%x %x %x %x", np1.deref(), np2.deref(), np3.deref()); + // reboot(); - var tfp0 = get_kernel_task(); +// var tfp0 = get_kernel_task(); syslog(LOG_SYSLOG, "__p0laris_LOG_END__"); return 0; |
