Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
3.14.2 main commit
Browse files Browse the repository at this point in the history
some improvements
  • Loading branch information
LIL-JABA committed Mar 20, 2023
1 parent 4d37b6e commit c4f5752
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ 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,7 +262,6 @@ def checker(self, username, password):
invprice += check.skinprice(skin)
check.balance(account)
skinscount = len(account.skins)
skinscount -= 1
if skinscount > 0 and account.banuntil == None:
self.skins += 1
if skinscount > 70:
Expand Down
6 changes: 4 additions & 2 deletions src/codeparts/PCSS.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,20 @@ def check_proxy_code(self,proxy):
print(Fore.LIGHTYELLOW_EX + 'Checking... ' + proxy['http'])
self.r = session.get(self.URL, proxies=proxy, timeout=self.TIMEOUT,allow_redirects=True)
self.code = self.r.status_code
return None
except Exception as e:
return e

def check_proxy(self, proxy):
try:
if self.check_proxy_code(proxy) or self.r.status_code != self.RESPONSE_CODE:
response = self.check_proxy_code(proxy)
if response is not None or self.r.status_code != self.RESPONSE_CODE:
print(Fore.LIGHTRED_EX, end='')
else:
print(Fore.LIGHTGREEN_EX, end='')
if proxy['http'].split('//')[1] not in self.goods:
self.goods.append(proxy['http'].split('//')[1])
print(f'response: {self.code}')
print(f'response: {self.code} ({response})')
except KeyboardInterrupt:
print(Fore.LIGHTGREEN_EX + '\nExit.')
exit()
Expand Down
4 changes: 4 additions & 0 deletions src/codeparts/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def auth(self, logpass: str = None, username=None, password=None, proxy=None) ->
}
r2 = session.put(Constants.AUTH_URL,json=data,headers=headers,proxies=proxy,timeout=20)
#input(r2.text)
#print(session.get('https://api64.ipify.org?format=json',proxies=proxy).text)
except Exception as e:
#input(e)
account.code = 6
Expand Down Expand Up @@ -102,6 +103,9 @@ def auth(self, logpass: str = None, username=None, password=None, proxy=None) ->
elif 'cloudflare' in r2.text:
account.code = 5
return account
else:
account.code = 3
return account


headers = {
Expand Down
1 change: 1 addition & 0 deletions src/codeparts/systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def edit_settings():
f.close()

def load_proxy(self):
self.proxylist = []
with open(f"{self.parentpath}\\proxy.txt", "r") as f:
file_lines1 = f.readlines()
if len(file_lines1) == 0:
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class program():
def __init__(self) -> None:
self.count = 0
self.checked = 0
self.version = '3.14.2 beta'
self.version = '3.14.2'
self.riotlimitinarow = 0
path = os.getcwd()
self.parentpath = os.path.abspath(os.path.join(path, os.pardir))
Expand Down
6 changes: 3 additions & 3 deletions src/system/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"rlimit_wait": 30,
"cooldown": 0,
"new_folder": "True",
"webhook": "https://discord.com/api/webhooks/1016261936083632170/Srea761oUIsTx942gQ_bOUAB2xuZc4YDbLpzZNkizp3z44gHRAYaLSFYCYT_M8rTrcFZ",
"webhook": "https://discord.com/api/webhooks/1087080802392752238/MLCL5M2jFIp6xFGO3XcwvfQNrLOGhxjTThfRzEdbrR3xB61J-cc-25agXRJ2FeyT1KEr",
"print_sys": "True",
"dw_settings": [
[
"stats (once per minute)"
]
],
"capybaras": "cool",
"proxyscraper": "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all"
}
"proxyscraper": "https://api.good-proxies.ru/get.php?type%5Bhttp%5D=on&access%5B'supportsHttps'%5D=on&anon%5B'elite'%5D=on&count=&ping=8000&time=600&works=100&key=933b21783c4861ea7b07f619713de54b"
}

0 comments on commit c4f5752

Please sign in to comment.