1
1
#!/usr/bin/python
2
2
# -------------------------------------------------
3
- __AUTHOR__ = 'MOJTABA OR C.S.R OR Mr EXPLOiT '
4
- __TELEGRAM_ID__ = '@creator_typeri '
3
+ __AUTHOR__ = 'MOJTABA '
4
+ __TELEGRAM_ID__ = '@aboutMji '
5
5
__INSTAGRAM_ID__ = '@MJi_Devil'
6
6
__GITHUB__ = 'https://github.com/C4ssif3r'
7
- __COMMENT__ = '''NULL '''
7
+ __COMMENT__ = '''plz get me Star ⭐ :) '''
8
8
9
9
# -------------------------------------------------
10
10
# import mudules |
11
11
# -------------------------------------------------
12
12
import os
13
13
import time
14
14
import sys
15
+ import concurrent .futures
15
16
# ------------------------------------------------
16
17
try :
17
18
import requests as req
@@ -129,39 +130,30 @@ def sub_manual():
129
130
130
131
links = open ('.sub.txt' , 'r' ).read ().split ()
131
132
132
- for link in links :
133
+ def heders ():
134
+ hd = agent .random ()
135
+ return hd
133
136
134
- def heders ():
135
- hd = agent .random ()
136
- return hd
137
- heders1 = {
138
- 'User-Agent' : heders ()
137
+ heders1 = {
138
+ 'User-Agent' : heders ()
139
139
}
140
- try :
141
- url = ('http://' + link + '.' + target_url )
142
-
143
- except KeyboardInterrupt :
144
- print ('\n Bye !' )
145
- time .sleep (3 )
146
- sys .exit ()
147
-
148
-
149
140
141
+ def check_link (link ):
150
142
try :
143
+ url = ('http://' + link + '.' + target_url )
151
144
get_req = req .get (url , timeout = 5 , headers = heders1 )
152
145
print (f'[' + Fore .GREEN + 'OK' + Fore .WHITE + '] founded a page - URL > %s%s {} %s' .format (url ) % (fg ('black' ), bg ('green' ), attr ('reset' )))
153
146
154
147
except Exception :
155
148
print (f'[' + Fore .RED + 'NOT' + Fore .WHITE + '] cant found page - URL > %s%s {} %s' .format (url ) % (fg ('black' ), bg ('red' ), attr ('reset' )))
156
149
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
-
160
150
except KeyboardInterrupt :
161
151
print ('\n Bye !' )
162
152
time .sleep (3 )
163
153
sys .exit ()
164
-
154
+
155
+ with concurrent .futures .ThreadPoolExecutor (max_workers = 50 ) as executor :
156
+ executor .map (check_link , links )
165
157
166
158
def manual_list ():
167
159
'''
@@ -175,29 +167,22 @@ def manual_list():
175
167
176
168
links = open ('.link.txt' , 'r' ).read ().split ()
177
169
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 ()
184
176
}
185
177
178
+ def check_link (link ):
186
179
try :
187
180
url = ('http://' + target_url + '/' + link )
188
181
get_req = req .get (url , timeout = 5 , headers = heders1 )
189
- except KeyboardInterrupt :
190
- print ('\n Bye !' )
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
194
185
195
- sisad = 399
196
- charsad = 400
197
- charnono = 499
198
-
199
-
200
- try :
201
186
if get_req .status_code < sisad :
202
187
print (f'[' + Fore .GREEN + 'OK' + Fore .WHITE + '] founded a page - URL > %s%s {} %s' .format (url ) % (fg ('black' ), bg ('green' ), attr ('reset' )))
203
188
@@ -208,16 +193,13 @@ def heders():
208
193
print (f'[' + Fore .YELLOW + 'Server-ERROR' + Fore .WHITE + '] SERVER ERROR - URL > %s%s {} %s' .format (url ) % (fg ('white' ), bg ('yellow' ), attr ('reset' )))
209
194
210
195
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
-
217
196
print ('\n Bye !' )
218
197
time .sleep (3 )
219
198
sys .exit ()
220
199
200
+ with concurrent .futures .ThreadPoolExecutor (max_workers = 50 ) as executor :
201
+ executor .map (check_link , links )
202
+
221
203
if select_method == '1' :
222
204
sub_manual ()
223
205
elif select_method == '2' :
0 commit comments