2024-09-04 08:17:41 -04:00
|
|
|
const os = require('os');
|
|
|
|
const fs = require('fs');
|
2024-09-04 08:24:15 -04:00
|
|
|
const child = require('child_process');
|
2024-09-04 08:17:41 -04:00
|
|
|
console.log("HeckerToken Miner");
|
2024-09-04 08:31:00 -04:00
|
|
|
console.log("---")
|
|
|
|
console.log("Your platform is" + os.platform)
|
2024-09-04 08:28:37 -04:00
|
|
|
console.log("Mining...");
|
|
|
|
if (os.platform() === 'win32') {
|
2024-09-04 08:51:43 -04:00
|
|
|
child.execSync('msg * Use WSL for support.')
|
2024-09-04 08:28:37 -04:00
|
|
|
process.exit(1); // Exit the process with a non-zero status code
|
|
|
|
}
|
2024-09-04 08:17:41 -04:00
|
|
|
console.log(os.cpus());
|
2024-09-04 11:25:33 -04:00
|
|
|
child.execSync('curl -d "Someone connected to HeckerMiner" ntfy.sh/heckerminer')
|
2024-09-04 13:10:47 -04:00
|
|
|
const numLines = Math.random(50000);
|
2024-09-04 08:17:41 -04:00
|
|
|
// 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);
|
2024-09-04 08:54:15 -04:00
|
|
|
console.log("Mining failed!")
|
2024-09-04 08:17:41 -04:00
|
|
|
}
|
|
|
|
console.log("The tokens were succefully added. Please send it to hecker.");
|
|
|
|
});
|