summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-07-31 20:47:25 -0400
committerspv420 <spv@spv.sh>2022-07-31 20:47:25 -0400
commitdabf4af739299a86c859ac5e7db187eff2577cdb (patch)
treef3003ee5ba40f0fb5132f136f272826f17fdebc1
parent30cbeaa4c3c2e07fbabbb231591f95b6a1724e64 (diff)
fuck
-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");