From dabf4af739299a86c859ac5e7db187eff2577cdb Mon Sep 17 00:00:00 2001 From: spv420 Date: Sun, 31 Jul 2022 20:47:25 -0400 Subject: fuck --- src/js/main.js | 4 ++-- src/stage4/main.js | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/js/main.js b/src/js/main.js index 1a1f197..ce471cf 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -165,8 +165,8 @@ function main() { var p0laris_stage4_func = main; - if (p0laris.options.default_main != undefned) { - p0laris_stage4_func = eval(p0laris.options.default_main); + if (p0laris.options.stage4_func != undefined) { + p0laris_stage4_func = eval(p0laris.options.stage4_func); } exit(p0laris_stage4_func()); diff --git a/src/stage4/main.js b/src/stage4/main.js index 89caddb..74dfde1 100644 --- a/src/stage4/main.js +++ b/src/stage4/main.js @@ -20,6 +20,11 @@ function prep_shit() { large_buf_ptr = leak_vec(large_buf); } +function other_stage4() { + syslog(LOG_SYSLOG, "lol"); + return 0; +} + function main() { syslog(LOG_SYSLOG, "__p0laris_LOG_START__"); p0laris_log("[*] we out here"); -- cgit v1.2.3