summaryrefslogtreecommitdiff
path: root/src/stage4/main.js
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-07-31 03:00:16 -0400
committerspv420 <spv@spv.sh>2022-07-31 03:00:16 -0400
commitb4c8eae5358953b4b55f6a7df2e8c9836b8d3c13 (patch)
treeba1fbe4350d08392a71e79833fefd27c758fc0e5 /src/stage4/main.js
parentb1e4ed080148f95bc3037ee2e059e944f3b06ff5 (diff)
cock
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