-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Wrong installation guide in pwnagotchi.ai for linux (kali linux) #946
Comments
It looks like you're missing other requirements and that the first pip install command didn't complete right. |
Can you show me these? |
Some much libarys are missing... |
?! |
Having the same issue. Trying to install pwnagotchi v1.5.3 on kali, pi4. |
Soooo for anyone who is interested, here is how I got pwnagotchi v1.5.3 up and running on Kali Linux 2020.4 (aarch64), Raspberry Pi4: This version of Kali Linux runs Python v3.8.x by default. Pwnagotchi is meant to be built on Python 3.7.x. So I would recommend avoiding Python 3.8.x for now, and building pwnagotchi on Python 3.7.x. Flash the Kali image onto the microSD card. Add the following at the bottom of config.txt on the boot partition: Place microSD into the Pi3/4 and Boot the OS. Install pre-compiled aarch64 BetterCap binary: wget "https://github.com/bettercap/bettercap/releases/download/v2.28/bettercap_linux_aarch64_v2.28.zip" Install pre-compiled aarch64 PwnGrid binary: wget "https://github.com/evilsocket/pwngrid/releases/download/v1.10.3/pwngrid_linux_aarch64_v1.10.3.zip" Install Pwnagotchi dependencies sudo apt-get update Install Python 3.7.x Add the repo for Python3.7:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA6932366A755776 Update some Python3.7 modules Install TensorFlow 1.15.0: Install gdown to download the whl file from Google Drive: Download and install tensorflow: Due to a recent change to gfortran version 10, building scipy v1.3.1 will fail when using any 10.x version. Compile Pwnagotchi from latest source code: wget "https://github.com/evilsocket/pwnagotchi/archive/v1.5.3.zip" sudo nano requirements.txt sudo python3.7 -m pip install -r requirements.txt Congratulations, pwngotchi is installed. Enable services for start-on-boot Fix permissions errors If you have your own pwnagotchi config.toml file, go ahead and load it: If you don't have your own, copy the default (default.toml is created after you run pwnagotchi at least once): sudo pwnagotchi --manual Notice: Pwnagotchi will get stuck trying to load a display. sudo cp /etc/pwnagotchi/default.toml /etc/pwnagotchi/config.toml
I personally like to watch the bettercap interface while the pwnagotchi is running in auto mode. sudo rm /usr/local/share/bettercap/caplets/pwnagotchi-manual.cap Start the services, or reboot the pi to start using the pwnagotchi sudo systemctl start bettercap I noticed that upon reboot, bettercap usually sees no access points. My theory: The kali network manager user-interface places the wifi back into managed mode on boot. To keep eth0 dhcp functionality (?): I also modified my bettercap-launcher to cycle the monitor mode just in case:
To say:
https://www.kali.org/docs/arm/kali-linux-raspberry-pi/ sudo rm /etc/ssh/ssh_host_* If you ever need to set eth- to static ip:
Note: If you ever need to force a static ip from the boot folder of the microSD card, throw the card into a PC or laptop and modify: /boot/cmdline.txt
KNOWN ISSUE: Possible Solutions: I personally run the Pi4 with an Alfa USB WiFi Module attached. To use an external wifi card with the RPi3/4:
This will disable the onboard internal wifi, and the external USB wifi will become device wlan0. There are also ways to keep both enabled, where the external would be wlan1. The better alternative at that point is to maybe find a way to set the onboard wifi to wlan1, and set the usb wifi device to wlan0 (?). |
OMG, thanks |
I'll try it a bit later |
I tried this out but I couldn't get AI to start properly, it keeps throwing that one error "could not broadcast input array" back when 5ghz channels were not supported |
could you walk me through how to do this on kali 2022.2, or can you provide me with your image?
Could you help me install this on kali 2022.2? a lot of this doesn't work anymore |
Can you be more specific with what exactly doesn't work throughout the entire setup process? At which step do you run into issues? |
pip install -r requirements.txt didn't work |
had to use |
I tried to install pwnagotchi on my kali linux os, but can't install requirements
wget "https://github.com/evilsocket/pwnagotchi/archive/v1.4.3.zip"
unzip v1.4.3.zip
cd pwnagotchi-1.4.3
this will install the requirements and pwnagotchi itself
sudo pip3 install -r requirements.txt
sudo pip3 install .
Collecting crypto==1.4.1
Using cached crypto-1.4.1-py2.py3-none-any.whl (18 kB)
Collecting requests==2.21.0
Using cached requests-2.21.0-py2.py3-none-any.whl (57 kB)
Collecting PyYAML==5.1
Using cached PyYAML-5.1.tar.gz (274 kB)
Collecting scapy==2.4.3
Using cached scapy-2.4.3.tar.gz (905 kB)
Collecting gym==0.14.0
Using cached gym-0.14.0.tar.gz (1.6 MB)
Collecting scipy==1.3.1
Using cached scipy-1.3.1.tar.gz (23.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /tmp/tmp1ydy_max prepare_metadata_for_build_wheel /tmp/tmp0a3tgwcu
cwd: /tmp/pip-install-3s7_7m21/scipy
Complete output (156 lines):
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
ERROR: Command errored out with exit status 1: /usr/bin/python3 /tmp/tmp1ydy_max prepare_metadata_for_build_wheel /tmp/tmp0a3tgwcu Check the logs for full command output.
please update installation guide and help me to install this.-
The text was updated successfully, but these errors were encountered: