epsylon / xsser

Cross Site "Scripter" (aka XSSer) is an automatic -framework- to detect, exploit and report XSS vulnerabilities in web-based applications.
https://xsser.03c8.net
1.17k stars 238 forks source link

Cannot install XSSer on Kali Linux (2019.4) x64bit #49

Closed TylerByte666 closed 4 years ago

TylerByte666 commented 4 years ago

Describe the bug Cannot install XSSer on Kali 2019.4

To Reproduce

  1. Run git clone git clone https://code.03c8.net/epsylon/xsser
  2. Run python setup.py install
  3. Run apt-get install python3-pycurl python3-bs4 python3-geoip python3-geoip2 python3-cairocffi
  4. Runxsser -h

Error

root@VB-Unkl3K4L1:~/Desktop/HellRoom/xsser# xsser -h
Traceback (most recent call last):
  File "/usr/local/bin/xsser", line 4, in <module>
    __import__('pkg_resources').run_script('xsser==1.8', 'xsser')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1462, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/xsser-1.8-py2.7.egg/EGG-INFO/scripts/xsser", line 22, in <module>
    from core.main import xsser
  File "/usr/local/lib/python2.7/dist-packages/xsser-1.8-py2.7.egg/core/main.py", line 22, in <module>
    import os, re, sys, datetime, hashlib, time, urllib.request, urllib.parse, urllib.error, cgi, traceback, webbrowser, random
ImportError: No module named request

Expected behavior To be shown XSSer help page.

Running environment:

Additional context Fresh Kali install.


epsylon commented 4 years ago

Python 2.X.X is not longer supported... Please try: Python3.5.x

TylerByte666 commented 4 years ago

I shall give it a go thanks

TylerByte666 commented 4 years ago

I solved my problem by installing it using in the built in python3 that comes with a KaliLinux (2019.4):

Command: python3 --version Output: Python 3.7.5

Kali 2019.4 Installation Steps:

  1. apt-get install python3-pycurl python3-bs4 python3-geoip python3-geoip2 python3-gi python3-cairocffi
  2. git clone https://github.com/epsylon/xsser.git
  3. cd xsser
  4. python3 setup.py install

Hope this helps somebody ❤️