OP 06 February, 2024 - 12:41 PM
Paste script in Logs Finder and run the script in cmd - and you can add more domains.com in "Requests = ["
Code:
import os
import shutil
class LogChecker:
default_dir = str(os.path.abspath(os.getcwd()))
main_dir_check = False
wallet_destination_dir = ""
Requests = ["bitmain","binance","kraken","robinhood","antpool","coinbase","antmain","nicehash","go2bank","chase.com"
,"etrade.com","moneylion.com","bluebird.com","sofi.com",".public.com","pool.bitcoin","f2pool","eobot.com","schwab.com","wellsfargo","etoro","btc.com"
,"slushpool.com","viabtc.com","iqmining.com","btc.top","blockchain","bitmex","coinmama","poloniex.com","acorns.com"]
Request_Find = False
Request_name = ""
def __main__(self):
self.log_run()
def log_run(self):
self.main_dir_check_method()
for dir in os.listdir():
if os.path.isdir(dir):
os.chdir(dir)
for cookie_dir_find in os.listdir():
if str(cookie_dir_find) == "Cookies":
self.cookie_check_method(cookie_dir_find)
if self.Request_Find == True:
self.wallet_path_create()
shutil.copytree(str(os.path.abspath(os.getcwd())),
f"{self.wallet_destination_dir}/{str(os.path.basename(os.getcwd()))}")
self.Request_Find = False
self.Request_name = ""
os.chdir(self.default_dir)
def main_dir_check_method(self):
if self.main_dir_check == False:
current_dir = str(os.path.abspath(os.getcwd()))
os.chdir(self.default_dir)
for dir in os.listdir():
if str(dir) == ("То шо нужно"):
shutil.rmtree("То шо нужно")
os.mkdir("То шо нужно")
os.chdir(current_dir)
self.main_dir_check = True
def cookie_check_method(self, wallet_dir):
current_dir = str(os.path.abspath(os.getcwd()))
os.chdir(wallet_dir)
for cookie in os.listdir():
CoockieTxt = open(os.path.abspath(cookie), encoding="utf8", errors='ignore').read().split('\n')
for line in CoockieTxt:
for Request in self.Requests:
if Request in line:
self.Request_Find = True
if Request not in self.Request_name:
self.Request_name += f"{Request}_"
os.chdir(current_dir)
def wallet_path_create(self):
current_dir = str(os.path.abspath(os.getcwd()))
separate_dir_found = False
os.chdir(str(self.default_dir))
os.chdir("То шо нужно")
for separate_der in os.listdir():
if str(separate_der) == str(f"{self.Request_name}"):
separate_dir_found = True
if separate_dir_found == True:
os.chdir(f"{self.Request_name}")
else:
os.mkdir(f"{self.Request_name}")
os.chdir(f"{self.Request_name}")
self.wallet_destination_dir = str(os.path.abspath(os.getcwd()))
os.chdir(current_dir)
print("Start")
Checks = LogChecker()
Checks.log_run()
print("End")