HEX
Server: Apache
System: Linux pre.izzato.net 4.18.0-553.33.1.el8_10.x86_64 #1 SMP Thu Dec 19 06:22:22 EST 2024 x86_64
User: digital (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/bitninja-threat-hunting/daemon.js
#!/opt/bitninja-node-dojo/bin/node
process.env.NODE_CONFIG_DIR = "/opt/bitninja-threat-hunting/config";

var daemon = require("daemonize2").setup({
    main: "main.js",
    name: "bitninja-threat-hunting",
    pidfile: "/var/run/bitninja-threat-hunting.pid"
});
 
switch (process.argv[2]) {
 
    case "start":
        daemon.start();
        break;
 
    case "stop":
        daemon.stop();
        break;
 
    default:
        console.log("Usage: [start|stop]");
}