summaryrefslogtreecommitdiff
path: root/src/stage4/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stage4/main.js')
-rw-r--r--src/stage4/main.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/stage4/main.js b/src/stage4/main.js
index 328bb0a..959f4b5 100644
--- a/src/stage4/main.js
+++ b/src/stage4/main.js
@@ -1,9 +1,25 @@
+var socket = scall_wrapper("socket");
+var htons = scall_wrapper("htons");
+var inet_addr = scall_wrapper("inet_addr");
+var dup2 = scall_wrapper("dup2");
+var bind = scall_wrapper("bind");
+var listen = scall_wrapper("listen");
+var accept = scall_wrapper("accept");
+var close = scall_wrapper("close");
+var printf = scall_wrapper("printf");
+var AF_INET = 2;
+var SOCK_DGRAM = 2;
+var SOCK_DGRAM = 2;
+var IPPROTO_UDP = 17;
+
function main() {
- printf("[*] landed in stage4\n");
- syslog(LOG_SYSLOG, "we out here");
+ syslog(LOG_SYSLOG, "__p0laris_LOG_START__");
+ p0laris_log("[*] we out here");
+ p0laris_log("[*] landed in stage4");
printf("[*] p0laris.dyld_shc_slide=0x%08x\n", p0laris.dyld_shc_slide);
printf("[*] p0laris.racoon_slide=0x%08x\n", p0laris.racoon_slide);
+ syslog(LOG_SYSLOG, "__p0laris_LOG_END__");
return 0;
} \ No newline at end of file