From f1e0ac9696971bd5ce4ebcb31346d64f529024e8 Mon Sep 17 00:00:00 2001 From: balls Date: Thu, 18 Apr 2024 22:56:20 +0300 Subject: [PATCH] added permbanned accs saving + edited the version checking system --- src/checker.py | 4 +++- src/main.py | 26 ++------------------------ src/system/ver.txt | 1 + src/system/xd.txt | 1 - 4 files changed, 6 insertions(+), 26 deletions(-) create mode 100644 src/system/ver.txt delete mode 100644 src/system/xd.txt diff --git a/src/checker.py b/src/checker.py index 0847d1f..c12a3ec 100644 --- a/src/checker.py +++ b/src/checker.py @@ -328,6 +328,8 @@ def checker(self, username, password): self.printinfo() break case 4: + with open(f'{self.outpath}/permbanned.txt', 'a', encoding='UTF-8') as file: + file.write(f'{account.logpass}\n') self.banned += 1 self.checked += 1 self.printinfo() @@ -373,7 +375,7 @@ def checker(self, username, password): check.skins_en(account) check.balance(account) skinscount = len(account.skins) - if len(account.skins) == 1 and account.skins[0] == "N/A": + if skinscount == 1 and account.skins[0] == "N/A": skinscount = -1 if skinscount > 0 and account.banuntil == None: self.skins += 1 diff --git a/src/main.py b/src/main.py index a345db2..6185ddc 100644 --- a/src/main.py +++ b/src/main.py @@ -26,7 +26,8 @@ class program(): def __init__(self) -> None: self.count = 0 self.checked = 0 - self.version = '3.17.0.4' + with open("system/ver.txt", 'r') as r: + self.version = r.read().strip() self.riotlimitinarow = 0 path = os.getcwd() self.parentpath = os.path.abspath(os.path.join(path, os.pardir)) @@ -54,8 +55,6 @@ def start(self): (''.join(colored_name))+colorama.Fore.RESET) print(sys.center(f'v{self.version}')) - self.CheckIfFirstStart() - if 'beta' in self.version: print(sys.center( f'{Fore.YELLOW}You have downloaded the BETA version. It can work unstable and contain some bugs.')) @@ -196,27 +195,6 @@ def main(self): asyncio.run(scheck.main(accounts, self.count, isvalkekersource)) return - def CheckIfFirstStart(self) -> None: - with open("system/xd.txt", 'r+') as r: - if r.read() == '0': - win32api.MessageBox(None, - """Hello! Looks like it's your first start of ValChecker. -Although you can find the FAQ and the full guide in my discord, I will specify some things here. - - -What is a Rate Limit? When you send a lot of auth requests from one IP, riot blocks you for some time. -So that's why you should use proxies for checking. If riot bans your IP, you will not be able to login in their launcher or site for ~30 minutes. - -Where can I find proxies? Any website you trust, just search for that in the internet. Or you can buy a cheap UHQ proxy method on my discord server. - -Where can I find combos? Actually, the answer is the same as with proxies. The internet. But if you want to do combos yourself, you can buy a cheap and effective method on my discord server. - - -The link to my discord server can be found in the readme section of the github repository or on the ValChecker title screen. - -Good luck!""", "Hello!", 0) - r.write("1") - pr = program() if __name__ == '__main__': diff --git a/src/system/ver.txt b/src/system/ver.txt new file mode 100644 index 0000000..0caba26 --- /dev/null +++ b/src/system/ver.txt @@ -0,0 +1 @@ +3.17.1 \ No newline at end of file diff --git a/src/system/xd.txt b/src/system/xd.txt deleted file mode 100644 index c227083..0000000 --- a/src/system/xd.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file