faizann24 / XssPy

XssPy - Web Application XSS Scanner
http://www.fsecurify.com
MIT License
835 stars 230 forks source link

Exception then process frozen #23

Open phackt opened 6 years ago

phackt commented 6 years ago

Hello, There is an issue with this kind of command:

./xsssniper.py -u http://backlothelp.netflix.com/ --forms

We have:

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/home/phackt/Documents/repo/xsssniper/core/scanner.py", line 297, in run
    self._performInjections(target)
  File "/home/phackt/Documents/repo/xsssniper/core/scanner.py", line 197, in _performInjections
    url, data = target.getPayloadedUrl(k, pl.payload)
  File "/home/phackt/Documents/repo/xsssniper/core/target.py", line 73, in getPayloadedUrl
    encoded_params = urlencode(new_params)
  File "/usr/lib/python2.7/urllib.py", line 1342, in urlencode
    v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)

And then the process is stuck, i think because of how the thread and queue are managed.

Regards,