-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathurl obfuscator.py
More file actions
122 lines (108 loc) · 6.82 KB
/
url obfuscator.py
File metadata and controls
122 lines (108 loc) · 6.82 KB
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
# URL Obfuscator
# Copyright (C) 2019-2025 M.Anish <aneesh25861@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
url=''
#List of publicly discovered open_redirects.
open_redirect=[ '--- URLS with Redirection Notice ---\n',
'https://www.google.com/url?q=', # Redirect using Google .[ Google Redirect Notice. ] [ source: Google ]
'https://google.com/url?q=' , # Variant of above redirect. [ Warning prsent ] [ source: M.Anish ]
'https://facebook.com/l.php?u=', # Facebook Open Redirect [ source : Google ]
'http://www.funeralchoice.kr/shop/bannerhit.php?bn_id=10&url=',
'\n--- URLS with No Redirection Warnings ---\n',
'https://via.hypothes.is/' , # Annotation service. [ No warning ] [ source : Google ]
'http://vk.com/away.php?to=', # Open Redirect in Russian Social Media vk.com [ No warning! ]
'https://l.wl.co/l?u=', # Open_redirect Whatsapp Business Account Profile website links. [ source:M.Anish]
'https://www.digit.in/flipkart/intermediate?url=', # [ Easy to detect ]
'https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjstFA55hCSrFSTBDNko3225YAz6GkouTQlHjExWXRbT5OPMnSlE8Wh4LAVp-D7jWRr-LcKW0w-HH1g8lCVAK_eU-5azfUXfjqfTiHFOFWV9I8m2ZaGczGlov1iY8kMSnelCX-AHG6VYBmpcZJapT1XbdlOM3B9u9whYqpkxEpFLbkzwDao00-DL8JyS7UIxIApb_JHANRmtKLSuRcM8IWqFaP0cOc8n8jTedmwHc8oAw2MV2tRUaAnN3eaxaESpc8fovDeWslJ0A3duo5g46YzCYxQ8A56RI5MGcQw4TZj6TeWuj6jRjAe7g0X18--IBmztC1sUi6XuHkB1Ew-z_h9bv1XK-s_9L6zeDfQPtMsI3hOqp8T8545VdgCoElxs&sig=Cg0ArKJSzEpZ_YMvCKWCEAE&fbs_aeid=[gw_fbsaeid]&urlfix=1&adurl=', # [ No warning ]
'http://www.newadcenter.com/click.php?a=101&x=tvrnd05eyzbpreuwtvmwmk5pnhlorgt1tnpfdu1qvxg%3D&z=20&c=1&adurl=322717&url=',
'https://cdp.thegoldwater.com/click.php?id=74&url=',
'http://webmail.elsewhere.se/horde/services/go.php?url=',
'https://pavon.kz/proxy?url=',
'https://www.watchonline.jp/redirect.php?url=',
'https://mnogo.ru/out.php?link=',
'http://www.triplets.ru/go/url=',
'https://cpod.ippk.ru/go/url=',
'https://work.elcode.ru/subscribe/link/?hash=3a7039658967bb95eaa80355890373f3&id_send=8742&id_email=18867&url=',
'http://www.receivers.ru/goto.php?url=',
'http://www.pmprofy.ru/redir.asp?id=',
'http://www.sjteck.com/gb/shop/bannerhit.php?bn_id=8&url=',
'http://daitda.wavework.kr/shop/bannerhit.php?bn_id=6&url=',
'http://www.kmx.kr/shop/bannerhit.php?bn_id=8&url=',
'http://www.jjiland.co.kr/shop/bannerhit.php?bn_id=11&url=',
'http://kpcsa.kr/shop/bannerhit.php?bn_id=7&url=',
'http://www.thesb.co.kr/shop/bannerhit.php?bn_id=11&url=',
'http://www.thelabco.co.kr/shop/bannerhit.php?bn_id=3&url=',
'http://freecos.net/shop/bannerhit.php?bn_id=467&url=',
'http://www.jaewonsa.co.kr/shop/bannerhit.php?bn_id=4&url=',
'http://john16u.comeyahost.com/shop/bannerhit.php?bn_id=13&url=',
'http://www.samhomusic.com/shop/bannerhit.php?bn_id=9&url=',
'https://gongboocha.com/shop/bannerhit.php?bn_id=338&url=',
'http://www.dentaljjang.com/shop/bannerhit.php?bn_id=23&url=',
'http://dentaljjang.com/shop/bannerhit.php?bn_id=25&url=',
'http://www.nittakukorea.com/shop/bannerhit.php?bn_id=2&url=',
'http://www.btnews.or.kr/shop/bannerhit.php?bn_id=5&url=',
'https://eproxy.pusan.ac.kr/link.n2s?url=',
'http://www.taxireport.ru/exec/jump.php?url=',
'http://www.matrixplus.ru/out.php?link=',
'http://www.11rus.ru/r.php?jump=',
'http://r.vsekommentarii.com/r.php?n=782562&u=',
'http://bidr.trellian.com/r.php?u=',
'https://etnoportal.ru/redirect2.php?',
'http://cc.naver.com/cc?a=pst.link&r=&i=&m=1&nsc=Mblog.post&u=',
'http://m.albumii.com/analytics/hit.php?nocache=1497959292.5834&r=http://bitdefender.com?/s%3A%2F%2Fm.albumii.com%2F&a=12&i=6405255&r2=',
'http://www.spbrealtor.ru/redirect?continue=',
'https://slashwrestling.com/cgi-bin/redirect.cgi?',
'https://www.tunneltalk.com/redirectpy?rurl=',
'\n--- ONION URLs ---\n',
'http://darkzqtmbdeauwq5mzcmgeeuhet42fhfjj4p5wbak3ofx2yqgecoeqyd.onion/redirect.php?url=' # [ No warning ]
]
#Function to get URL from user which will be obfuscated by the program.
def get_url():
print('\n Enter url: ',end='')
global url
tmp=input()
if tmp.startswith('http://') or tmp.startswith('https://'):
url=tmp
else:
url='http://'+tmp
get_url()
#Function to write obfuscated URLs to url_obfuscated.txt file.
def file_w():
with open('url_obfuscated.txt','w') as f:
for i in open_redirect:
if '---' in i:
f.write(i)
else:
f.write('{}{}\n'.format(i,url))
file_w()
#Function to obfuscate url using http basic auth.
def http_basic_auth():
custom_url=[
'https://accounts.google.com+signin=secure+v2+identifier=passive@',
'https://facebook.com+login=secure+settings=private@',
'https://instagram.com+accounts=login+settings=private@',
'https://linkedin.com+accounts=securelogin+settings=private@',
'https://github.com+login=secure+settings=private@'
]
with open('url_obfuscated.txt','a+')as f:
f.write('\n--- Custom HTTP BASIC AUTH URLS [ Don\'t work in Firefox ] ---\n')
for i in custom_url:
if url.startswith('https://'):
f.write(i+url[8:]+'\n')
elif url.startswith('http://'):
f.write(i+url[7:]+'\n')
http_basic_auth()
x=input( '\n {}/url_obfuscated.txt Generated!!!\n\nPress to continue...'.format(os.getcwd()))