Open WARIOsanvi opened 3 years ago
I solved the problem as follows, using virtualenv:
apt-get install virtualenv python3-autopep8 python2-setuptools-whl python2-setuptools-whl
cd /opt/; git clone https://github.com/mdsecactivebreach/SharpShooter.git
cd SharpShooter; pip install -r requirements.txt
autopep8 -i /opt/SharpShooter/modules/excel4.py
virtualenv sharpshooter-venv -p $(which python2)
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
pip install -r requirements.txt
thank @sT0wn-nl
Nice @sT0wn-nl - for some reason virtualenv failed with Python 2 for me so I just did:
sudo apt install python2
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python2 get-pip.py
pip2 install -r requirements.txt
pypa.io is part of the official Python project. It's mentioned on https://packaging.python.org/en/latest/specifications/index.html
Here's what worked for me on a relatively current Kali Docker container (as of 2023-05-01):
# Clone fork, otherwise you'll get indentation errors.
git clone https://github.com/whale3070/SharpShooter
# Get `pip2`.
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python2 get-pip.py
# Upgrade `setuptools`, otherwise you'll get an 'egg_info' error.
pip2 install --upgrade setuptools
# Finally, install the requirements.
pip2 install -r requirements.txt
# Run SharpShooter.
python2 SharpShooter.py -h
Note that you should clone the fork used in the snippet above; otherwise you'll get Python indentation errors because of mixed tabs and spaces.
when i start SharpShooter after installing requirements.txt i do python SharpShooter.py but it doesn't start i also tried to do chmod + x or 777 on SharpShooter.py but it always gives me this error: Traceback (most latest call last): File "SharpShooter.py", line 20, in
from jsmin import jsmin
ImportError: no module called jsmin