summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/main.js4
-rw-r--r--src/stage4/main.js5
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");