Pwncat Install Error Raspberry Pi 4

I wanted to set up pwncat on my offensive Raspberry Pi. The documentation said it was as simple as running one command. So I tried that and ran the command I found in the documentation:

pip3 install pwncat-cs

Well, it failed to install some packages. I tried a few things I found on Google and wasn’t sure why I couldn’t get it working for a few minutes. It would fail with the following error:

ERROR: Could not build wheels for bcrypt, which is required to install pyproject.toml-based projects

I tried a few things like manually installing bcrypt, still failed. A combination of things fixed my problem so I wrote a quick block of code you can run to do the same.

sudo apt update
sudo apt install build-essential libssl-dev libffi-dev python3-dev python3-pip -y
pip3 install --upgrade pip
pip3 install "bcrypt<4.0.0"
pip3 install pwncat-cs

If you have not added your local bin directory to your path you will need to access pwncat at the following path:

~/.local/bin/pwncat-cs

If you want to download all available plugins you can run the following:

~/.local/bin/pwncat-cs --download-plugins

Hopefully, this guide saves you a few minutes if anyone else is trying to install pwncat on a Raspberry Pi 4.

By Andrew

I love technology, and when I found Raspberry Pi's I was instantly hooked. Within the first week I had at least 5. I am also a avoid programmer so I made this blog about my creations to help others do cool things with their Pi's.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x