-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod1.py
More file actions
22 lines (19 loc) · 770 Bytes
/
mod1.py
File metadata and controls
22 lines (19 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from urllib.request import urlopen
from sys import argv, exit
__author__ = 'D4Vinci'
def check(url):
try:
if "http" not in url: url = "http://" + url
data = urlopen(url)
headers = data.info()
if not "X-Frame-Options" in headers: return True
except: return False
def main():
try: sites = open(argv[1], 'r').readlines()
except: print("[*] Usage: python(3) clickjacking_tester.py <file_name>"); exit(0)
for site in sites[0:]:
status = check(site)
if status:
print(" \033[1;38;5;087m [ X ] \033[91mVULNERABLE => \033[1;38;5;214m "+ site)
# else: print('Every single thing is crashed, Python got mad, dude wtf you just did?')
if __name__ == '__main__': main()