Michal2SAB / Bitcoin-Stealer

Generate random bitcoin wallets, private keys (seeds) and then check if they match a wallet that contains some kind of balance, and then take it. Node.js
390 stars 159 forks source link

memory gets full immedietly and system freezes on linux #12

Closed ghost closed 2 years ago

ghost commented 2 years ago

my system freezes after running run.sh or gen.sh on void linux, i have 8 GB of ram,

can I limit the amount of generated addresses or the allowed ram usage?

Michal2SAB commented 2 years ago

You can edit run.sh and decrease the sleep number from 100 to whatever lower number, so that it refreshes program faster and doesn't leak memory

petjal commented 2 years ago

Some dumb ideas here: https://github.com/petjal/Bitcoin-Stealer/discussions/1

Michal2SAB commented 2 years ago

I just looked into it again and realized something very stupid I did lol. In my code I was reading the riches.txt file continously, every time a new wallet was generated.. I edited the code so that it reads riches.txt only once and stores all data in one variable. I haven't tested if it fixes the memory leak issue completely but I imagine it helped a bit.

Let me know if the new code changes anything for you. If it's fixed then the whole run.sh code and all extra stuff won't be necessary for this project anymore.