Code Monkey home page Code Monkey logo

Comments (4)

ret2src avatar ret2src commented on August 17, 2024 3

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.

from sharpshooter.

sT0wn-nl avatar sT0wn-nl commented on August 17, 2024 2

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

from sharpshooter.

KernelPan1k avatar KernelPan1k commented on August 17, 2024

thank @sT0wn-nl

from sharpshooter.

tmsbrg avatar tmsbrg commented on August 17, 2024

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

from sharpshooter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.