Skip to content

Commit

Permalink
xss
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen001 committed Sep 28, 2022
1 parent aef8b0e commit e099609
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions xss.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def testParams( t_urlparse, payload ):
# convert get params to post
t_urlparse = t_urlparse._replace(query='')
url = urllib.parse.urlunparse(t_urlparse)
doTest( url, 'POST', new_query )
# doTest( url, 'POST', new_query )


def testFragment( t_urlparse, payload ):
Expand Down Expand Up @@ -107,8 +107,8 @@ def testPayload( url, payload ):
if len(t_urlparse.query):
testParams( t_urlparse, payload )

if len(t_urlparse.fragment):
testFragment( t_urlparse, payload )
# if len(t_urlparse.fragment):
# testFragment( t_urlparse, payload )

testPath( t_urlparse, payload )

Expand All @@ -128,7 +128,8 @@ def testURL( url ):

def doTest( url, method='GET', post_params='' ):

t_realdotest.append( [url,method,post_params] )
realDoTest( [url,method,post_params] )
# t_realdotest.append( [url,method,post_params] )
return


Expand Down Expand Up @@ -334,7 +335,7 @@ def realDoTest( t_params ):

n_totest = len(t_totest)

random.shuffle(t_totest)
# random.shuffle(t_totest)
# print("\n".join(t_totest))
# exit()

Expand Down Expand Up @@ -377,6 +378,12 @@ def doWork():
sys.stdout.write( '[+] testing...\n' )



exit()




t_exceptions = {}
t_vulnerable = {}
t_multiproc = {
Expand Down

0 comments on commit e099609

Please sign in to comment.