menkrep1337 / XSSCon

XSSCon: Simple XSS Scanner tool
MIT License
210 stars 60 forks source link

Update xsscon.py #7

Closed jerrychan807 closed 5 years ago

jerrychan807 commented 5 years ago

fix a small bug ...

[16:25:15] [INFO] Starting XSSCon...
***************
Traceback (most recent call last):
  File "/Users/chanjerry/Documents/GitHub/python_demo/XSSCon/xsscon.py", line 74, in <module>
    start()
  File "/Users/chanjerry/Documents/GitHub/python_demo/XSSCon/xsscon.py", line 52, in start
    core.main(getopt.u,getopt.proxy,getopt.user_agent,check(getopt),getopt.cookie,getopt.method)
  File "/Users/chanjerry/Documents/GitHub/python_demo/XSSCon/lib/core.py", line 148, in main
    self.session=session(proxy,headers,cookie)
  File "/Users/chanjerry/Documents/GitHub/python_demo/XSSCon/lib/helper/helper.py", line 26, in session
    r.cookies.update(json.loads(cookie))
  File "/Users/chanjerry/anaconda3/lib/python3.6/json/__init__.py", line 348, in loads
    'not {!r}'.format(s.__class__.__name__))
TypeError: the JSON object must be str, bytes or bytearray, not 'dict'