Add index.js

This commit is contained in:
heckeralt 2024-09-04 08:17:41 -04:00
commit 24ea1c49ef
1 changed files with 20 additions and 0 deletions

20
index.js Normal file
View File

@ -0,0 +1,20 @@
const os = require('os');
const fs = require('fs');
console.log("HeckerToken Miner");
console.log("Mining...");
console.log(os.cpus());
const numLines = Math.random(3);
// 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.");
});