diff options
Diffstat (limited to 'src/js/main.js')
| -rw-r--r-- | src/js/main.js | 8 |
1 files changed, 7 insertions, 1 deletions
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; }; |
