Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

genEth.Wallet.fromMnemonic is not a function #10

Closed
Ali-Hex opened this issue Feb 7, 2023 · 1 comment
Closed

genEth.Wallet.fromMnemonic is not a function #10

Ali-Hex opened this issue Feb 7, 2023 · 1 comment

Comments

@Ali-Hex
Copy link

Ali-Hex commented Feb 7, 2023

TypeError: genEth.Wallet.fromMnemonic is not a function
at generate (C:\Users\buou0\Desktop\Ethereum-Stealer-main\Windows\test\test.js:12:32)
at Object. (C:\Users\buou0\Desktop\Ethereum-Stealer-main\Windows\test\test.js:27:5)
at Module._compile (node:internal/modules/cjs/loader:1246:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1300:10)
at Module.load (node:internal/modules/cjs/loader:1103:32)
at Module._load (node:internal/modules/cjs/loader:942:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47

@Elmirko
Copy link

Elmirko commented Mar 20, 2024

"use strict";

process.title = "Ethereum Stealer by Michal2SAB";

const { ethers } = require('ethers');
const fs = require('fs');

const riches = fs.readFileSync('./riches.txt', 'utf8');

function generate() {
var wallet = ethers.Wallet.createRandom(); // Create a random wallet directly
console.log(wallet.address);
if (riches.includes(wallet.address)) {
console.log("");
process.stdout.write('\x07');
console.log("\x1b[32m%s\x1b[0m", ">> Success: " + wallet.address);
var successString = "Wallet: " + wallet.address + "\n\nPrivate Key: " + wallet.privateKey + "\n\n12 word phrase: " + wallet.mnemonic.phrase;
fs.writeFileSync('./Success.txt', successString, (err) => {
if (err) throw err;
});
process.exit();
}
}

while (true) {
generate();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants