Skip to content

Commit

Permalink
xss
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen001 committed Nov 26, 2019
1 parent 4ee1a09 commit a95abba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions xss.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ 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 )
testPath( t_urlparse, payload )


def testURL( url ):
Expand Down Expand Up @@ -137,7 +137,6 @@ def doTest( url, method='GET', post_params='' ):
parser.add_argument( "-a","--path",help="set paths list" )
parser.add_argument( "-p","--payloads",help="set payloads list" )
parser.add_argument( "-o","--hosts",help="set host list (required or -u)" )
# parser.add_argument( "-r","--redirect",help="follow redirection" )
parser.add_argument( "-s","--scheme",help="scheme to use, default=http,https" )
parser.add_argument( "-t","--threads",help="threads, default 10" )
parser.add_argument( "-u","--urls",help="set url list (required or -o)" )
Expand Down Expand Up @@ -248,7 +247,6 @@ def doTest( url, method='GET', post_params='' ):
n_payloads = len(t_payloads)

sys.stdout.write( '%s[+] options are -> threads:%d, payloads:%d%s\n' % (fg('green'),_threads,n_payloads,attr(0)) )
sys.stdout.write( '[+] computing host and payload list...\n' )


for scheme in t_scheme:
Expand Down

0 comments on commit a95abba

Please sign in to comment.