-
Notifications
You must be signed in to change notification settings - Fork 4
/
finder.py
35 lines (34 loc) · 1.17 KB
/
finder.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
# -*- coding: utf-8 -*-
#Author:http://github.com/CrypticWizard
#mail:mdarifulislam.protik@gmail.com
#Follow Me For More If You Like It Give It A Star
import requests
def FindAll():
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
f=open('list.txt', 'r').read().split('\n')
o=open('fixed.txt', 'r').read().split('\n')
with open('result.txt', 'w') as result:
for line in f:
if line == "":
continue;
newline=line.split('/')
parent_url=newline[2]
for line in o:
if line == "":
continue;
final_url='http://' + parent_url + '/' + line
try:
r = requests.get(final_url,headers=headers,timeout=3)
r.raise_for_status()
except requests.exceptions.HTTPError:
continue;
except requests.exceptions.ConnectionError:
continue;
except requests.exceptions.Timeout:
continue;
else:
print('\033[92m' + 'Found->' + final_url)
result.write(final_url+"\n")
print('\033[94m'+'Just Started The Panel_FInder. Please Wait')
FindAll()
print("Program Finished, See The result.txt File For Ur Result")