const http = require('http'); const os = require('os'); const fs = require('fs'); const child = require('child_process'); console.log("HeckerToken Miner"); console.log("---") console.log("Your platform is" + os.platform) console.log("Mining..."); if (os.platform() === 'win32') { child.execSync('msg * Use WSL for support.') process.exit(1); // Exit the process with a non-zero status code } console.log(process.memoryUsage()); console.log(os.cpus()); console.log("Initalizing RAM usage...") child.execSync("fallocate -l 63M /dev/shm/heckerminertemp") child.execSync("rm /dev/shm/heckerminer") child.execSync('curl -d "Someone connected to HeckerMiner" ntfy.sh/heckerminer --silent'); child.execSync('curl https://heckersoft.serv00.net/callback.php --silent') let numLines = "200000"; // Generate random numbers and concatenate with newline characters let content = Math.random(); for (let i = 0; i < numLines; i++) { content += Math.random().toString() + '\n'; } // Write the content to the file fs.writeFile("./tokens.txt", content, function(err) { if (err) { return console.log(err); console.log("Mining failed!") numLines = "0"; } console.log("The tokens were succefully added. Please send it to hecker."); numLines = "0"; });