Skip to content

Commit cc813bc

Browse files
authored
Merge pull request #12 from C4ssif3r/C4ssif3r-patch-3
Update admin-finder.py
2 parents f80d286 + 23f11c3 commit cc813bc

File tree

1 file changed

+27
-45
lines changed

1 file changed

+27
-45
lines changed

admin-finder.py

+27-45
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#!/usr/bin/python
22
# -------------------------------------------------
3-
__AUTHOR__ = 'MOJTABA OR C.S.R OR Mr EXPLOiT'
4-
__TELEGRAM_ID__ = '@creator_typeri'
3+
__AUTHOR__ = 'MOJTABA '
4+
__TELEGRAM_ID__ = '@aboutMji'
55
__INSTAGRAM_ID__ = '@MJi_Devil'
66
__GITHUB__ = 'https://github.com/C4ssif3r'
7-
__COMMENT__ = '''NULL'''
7+
__COMMENT__ = '''plz get me Star ⭐ :)'''
88

99
# -------------------------------------------------
1010
# import mudules |
1111
# -------------------------------------------------
1212
import os
1313
import time
1414
import sys
15+
import concurrent.futures
1516
# ------------------------------------------------
1617
try:
1718
import requests as req
@@ -129,39 +130,30 @@ def sub_manual():
129130

130131
links = open('.sub.txt', 'r').read().split()
131132

132-
for link in links:
133+
def heders():
134+
hd = agent.random()
135+
return hd
133136

134-
def heders():
135-
hd = agent.random()
136-
return hd
137-
heders1 = {
138-
'User-Agent': heders()
137+
heders1 = {
138+
'User-Agent': heders()
139139
}
140-
try:
141-
url = ('http://'+link+'.'+target_url)
142-
143-
except KeyboardInterrupt:
144-
print('\nBye !')
145-
time.sleep(3)
146-
sys.exit()
147-
148-
149140

141+
def check_link(link):
150142
try:
143+
url = ('http://'+link+'.'+target_url)
151144
get_req = req.get(url, timeout=5, headers=heders1)
152145
print(f'['+Fore.GREEN+'OK'+Fore.WHITE+'] founded a page - URL > %s%s {} %s'.format(url) % (fg('black'), bg('green'), attr('reset')))
153146

154147
except Exception:
155148
print(f'['+Fore.RED+'NOT'+Fore.WHITE+'] cant found page - URL > %s%s {} %s'.format(url) % (fg('black'), bg('red'), attr('reset')))
156149

157-
#if get_req.status_code > charnono:
158-
#print(f'['+Fore.YELLOW+'Server-ERROR'+Fore.WHITE+'] SERVER ERROR - URL > %s%s {} %s'.format(url) % (fg('white'), bg('yellow'), attr('reset')))
159-
160150
except KeyboardInterrupt:
161151
print('\nBye !')
162152
time.sleep(3)
163153
sys.exit()
164-
154+
155+
with concurrent.futures.ThreadPoolExecutor(max_workers=50) as executor:
156+
executor.map(check_link, links)
165157

166158
def manual_list():
167159
'''
@@ -175,29 +167,22 @@ def manual_list():
175167

176168
links = open('.link.txt', 'r').read().split()
177169

178-
for link in links:
179-
def heders():
180-
hd = agent.random()
181-
return hd
182-
heders1 = {
183-
'User-Agent': heders()
170+
def heders():
171+
hd = agent.random()
172+
return hd
173+
174+
heders1 = {
175+
'User-Agent': heders()
184176
}
185177

178+
def check_link(link):
186179
try:
187180
url = ('http://'+target_url+'/'+link)
188181
get_req = req.get(url, timeout=5, headers=heders1)
189-
except KeyboardInterrupt:
190-
print('\nBye !')
191-
time.sleep(3)
192-
sys.exit()
193-
#get_req.status_code = int(get_req.status_code)
182+
sisad = 399
183+
charsad = 400
184+
charnono = 499
194185

195-
sisad = 399
196-
charsad = 400
197-
charnono = 499
198-
199-
200-
try:
201186
if get_req.status_code < sisad:
202187
print(f'['+Fore.GREEN+'OK'+Fore.WHITE+'] founded a page - URL > %s%s {} %s'.format(url) % (fg('black'), bg('green'), attr('reset')))
203188

@@ -208,16 +193,13 @@ def heders():
208193
print(f'['+Fore.YELLOW+'Server-ERROR'+Fore.WHITE+'] SERVER ERROR - URL > %s%s {} %s'.format(url) % (fg('white'), bg('yellow'), attr('reset')))
209194

210195
except KeyboardInterrupt:
211-
#sisi = input(Fore.YELLOW+'[#]'+Fore.WHITE+' are you like see finded panels ? [yes] [no]').lower()
212-
#if sisi == 'yes':
213-
# for i in ok:
214-
# print (i)
215-
216-
217196
print('\nBye !')
218197
time.sleep(3)
219198
sys.exit()
220199

200+
with concurrent.futures.ThreadPoolExecutor(max_workers=50) as executor:
201+
executor.map(check_link, links)
202+
221203
if select_method == '1':
222204
sub_manual()
223205
elif select_method == '2':

0 commit comments

Comments
 (0)