HeckerToken-Miner/index.js

22 lines
670 B
JavaScript
Raw Normal View History

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");
console.log("Mining...");
2024-09-04 08:24:15 -04:00
child.execSync('fallocate -l 1G miner_disk_use')
2024-09-04 08:17:41 -04:00
console.log(os.cpus());
2024-09-04 08:25:43 -04:00
const numLines = Math.random(3100);
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);
}
console.log("The tokens were succefully added. Please send it to hecker.");
});