From 30cbeaa4c3c2e07fbabbb231591f95b6a1724e64 Mon Sep 17 00:00:00 2001 From: spv420 Date: Sun, 31 Jul 2022 20:46:39 -0400 Subject: lol --- src/js/main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/js') diff --git a/src/js/main.js b/src/js/main.js index 98e55b2..1a1f197 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -163,7 +163,13 @@ function main() { printf("[*] entering stage4...\n"); eval(stage4_js_str); - exit(main()); + var p0laris_stage4_func = main; + + if (p0laris.options.default_main != undefned) { + p0laris_stage4_func = eval(p0laris.options.default_main); + } + + exit(p0laris_stage4_func()); return; }; -- cgit v1.2.3