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.21k stars 240 forks source link

Mac (12.0.1) Installation #77

Closed BaronSam3di closed 3 years ago

BaronSam3di commented 3 years ago

Hi Team!

Really excited about getting inot this tool. Great effort!

I am wondering if you can help.

Describe the bug

Installing on mac is being blocked by pycurl. I followed this article to make sure I was only useing python3 . My dump of my termial is so you can see exactly what I did.

Is it possible to run this tool on Mac?

To Reproduce

Simpler to show you my entire shell flow


~/mystuff/xsser (master)$./xsser 

[Error] Cannot import lib: pycurl. 

 To install it try:

 $ 'sudo apt-get install python3-pycurl' or 'pip3 install pycurl'

~/mystuff/xsser (master)$pip3 install pycurl
Requirement already satisfied: pycurl in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (7.44.1)
~/mystuff/xsser (master)$python --version
Python 3.10.0
~/mystuff/xsser (master)$sudo pyhton setup.py 
Password:
sudo: pyhton: command not found
~/mystuff/xsser (master)$sudo python3 setup.py 
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied
~/mystuff/xsser (master)$sudo python3 setup.py --help-commands
Standard commands:
  build             build everything needed to install
  build_py          "build" pure Python modules (copy to build directory)
  build_ext         build C/C++ extensions (compile/link to build directory)
  build_clib        build C/C++ libraries used by Python extensions
  build_scripts     "build" scripts (copy and fixup #! line)
  clean             clean up temporary files from 'build' command
  install           install everything from build directory
  install_lib       install all Python modules (extensions and pure Python)
  install_headers   install C/C++ header files
  install_scripts   install scripts (Python or otherwise)
  install_data      install data files
  sdist             create a source distribution (tarball, zip file, etc.)
  register          register the distribution with the Python package index
  bdist             create a built (binary) distribution
  bdist_dumb        create a "dumb" built distribution
  bdist_rpm         create an RPM distribution
  check             perform some checks on the package
  upload            upload binary package to PyPI

Extra commands:
  alias             define a shortcut to invoke one or more commands
  bdist_egg         create an "egg" distribution
  develop           install package in 'development mode'
  dist_info         create a .dist-info directory
  easy_install      Find/get/install Python packages
  egg_info          create a distribution's .egg-info directory
  install_egg_info  Install an .egg-info directory for the package
  rotate            delete older distributions, keeping N newest files
  saveopts          save supplied options to setup.cfg or other config file
  setopt            set an option in setup.cfg or another config file
  test              run unit tests after in-place build (deprecated)
  upload_docs       Upload documentation to sites other than PyPi such as devpi

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

~/mystuff/xsser (master)$sudo python3 setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/core
copying core/update.py -> build/lib/core
copying core/options.py -> build/lib/core
copying core/randomip.py -> build/lib/core
copying core/mozchecker.py -> build/lib/core
copying core/dork.py -> build/lib/core
copying core/curlcontrol.py -> build/lib/core
copying core/threadpool.py -> build/lib/core
copying core/reporter.py -> build/lib/core
copying core/imagexss.py -> build/lib/core
copying core/flashxss.py -> build/lib/core
copying core/__init__.py -> build/lib/core
copying core/gtkcontroller.py -> build/lib/core
copying core/encdec.py -> build/lib/core
copying core/twsupport.py -> build/lib/core
copying core/tokenhub.py -> build/lib/core
copying core/main.py -> build/lib/core
copying core/crawler.py -> build/lib/core
copying core/globalmap.py -> build/lib/core
creating build/lib/core/fuzzing
copying core/fuzzing/vectors.py -> build/lib/core/fuzzing
copying core/fuzzing/HTTPsr.py -> build/lib/core/fuzzing
copying core/fuzzing/DCP.py -> build/lib/core/fuzzing
copying core/fuzzing/__init__.py -> build/lib/core/fuzzing
copying core/fuzzing/DOM.py -> build/lib/core/fuzzing
copying core/fuzzing/heuristic.py -> build/lib/core/fuzzing
creating build/lib/core/post
copying core/post/__init__.py -> build/lib/core/post
copying core/post/xml_exporter.py -> build/lib/core/post
package init file 'core/driver/__init__.py' not found (or not a regular file)
running build_scripts
creating build/scripts-3.10
copying and adjusting xsser -> build/scripts-3.10
changing mode of build/scripts-3.10/xsser from 644 to 755
~/mystuff/xsser (master)$sudo python3 setup.py install
running install
running bdist_egg
running egg_info
creating xsser.egg-info
writing xsser.egg-info/PKG-INFO
writing dependency_links to xsser.egg-info/dependency_links.txt
writing top-level names to xsser.egg-info/top_level.txt
writing manifest file 'xsser.egg-info/SOURCES.txt'
package init file 'core/driver/__init__.py' not found (or not a regular file)
reading manifest file 'xsser.egg-info/SOURCES.txt'
writing manifest file 'xsser.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-universal2/egg
running install_lib
running build_py
creating build/bdist.macosx-10.9-universal2
creating build/bdist.macosx-10.9-universal2/egg
creating build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/update.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/options.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/randomip.py -> build/bdist.macosx-10.9-universal2/egg/core
creating build/bdist.macosx-10.9-universal2/egg/core/fuzzing
copying build/lib/core/fuzzing/vectors.py -> build/bdist.macosx-10.9-universal2/egg/core/fuzzing
copying build/lib/core/fuzzing/HTTPsr.py -> build/bdist.macosx-10.9-universal2/egg/core/fuzzing
copying build/lib/core/fuzzing/DCP.py -> build/bdist.macosx-10.9-universal2/egg/core/fuzzing
copying build/lib/core/fuzzing/__init__.py -> build/bdist.macosx-10.9-universal2/egg/core/fuzzing
copying build/lib/core/fuzzing/DOM.py -> build/bdist.macosx-10.9-universal2/egg/core/fuzzing
copying build/lib/core/fuzzing/heuristic.py -> build/bdist.macosx-10.9-universal2/egg/core/fuzzing
creating build/bdist.macosx-10.9-universal2/egg/core/post
copying build/lib/core/post/__init__.py -> build/bdist.macosx-10.9-universal2/egg/core/post
copying build/lib/core/post/xml_exporter.py -> build/bdist.macosx-10.9-universal2/egg/core/post
copying build/lib/core/mozchecker.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/dork.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/curlcontrol.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/threadpool.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/reporter.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/imagexss.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/flashxss.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/__init__.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/gtkcontroller.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/encdec.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/twsupport.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/tokenhub.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/main.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/crawler.py -> build/bdist.macosx-10.9-universal2/egg/core
copying build/lib/core/globalmap.py -> build/bdist.macosx-10.9-universal2/egg/core
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/update.py to update.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/options.py to options.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/randomip.py to randomip.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/fuzzing/vectors.py to vectors.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/fuzzing/HTTPsr.py to HTTPsr.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/fuzzing/DCP.py to DCP.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/fuzzing/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/fuzzing/DOM.py to DOM.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/fuzzing/heuristic.py to heuristic.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/post/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/post/xml_exporter.py to xml_exporter.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/mozchecker.py to mozchecker.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/dork.py to dork.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/curlcontrol.py to curlcontrol.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/threadpool.py to threadpool.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/reporter.py to reporter.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/imagexss.py to imagexss.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/flashxss.py to flashxss.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/gtkcontroller.py to gtkcontroller.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/encdec.py to encdec.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/twsupport.py to twsupport.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/tokenhub.py to tokenhub.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/main.py to main.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/crawler.py to crawler.cpython-310.pyc
byte-compiling build/bdist.macosx-10.9-universal2/egg/core/globalmap.py to globalmap.cpython-310.pyc
installing package data to build/bdist.macosx-10.9-universal2/egg
running install_data
creating /usr/share/doc/xsser
error: could not create '/usr/share/doc/xsser': Operation not permitted
~/mystuff/xsser (master)$code .
~/mystuff/xsser (master)$

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Running environment:

Target details:

Additional context

Please let me know if you need any more info or have any questions :relieved:


epsylon commented 3 years ago

Hi @YorkshireGold

It looks some wrong with permissions:

error: could not create '/usr/share/doc/xsser': Operation not permitted