Im gonna get pwnagotchi working on rpi4.
sudo apt install golang git build-essential libpcap-dev libusb-1.0-0-dev libnetfilter-queue-dev
git clone https://github.com/bettercap/bettercap
cd bettercap/
make build
sudo make intall
sudo nano /etc/systemd/system/bettercap.service
[Unit]
Description=bettercap api.rest service.
Documentation=https://bettercap.org
Wants=network.target
[Service]
Type=simple
PermissionsStartOnly=true
ExecStart=/usr/bin/bettercap-launcher
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target
sudo nano /usr/local/share/bettercap/caplets/pwnagotchi-auto.cap
# enable interface monitor mode and define wifi interface to be mon0
set wifi.interface wlx00
# api listening on http://127.0.0.1:8081/ and ui to http://127.0.0.1
set api.rest.address 127.0.0.1
set api.rest.port 8081
set api.rest.username pwnagotchi
set api.rest.password pwnagotchi
set api.rest.websocket true
# go!
api.rest on
sudo nano /usr/bin/bettercap-launcher
#!/usr/bin/env bash
/usr/bin/monstart
if [[ $(ifconfig | grep usb0 | grep RUNNING) ]] || [[ $(cat /sys/class/net/eth0/carrier) ]]; then
# if override file exists, go into auto mode
if [ -f /root/.pwnagotchi-auto ]; then
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
else
/usr/bin/bettercap -no-colors -caplet pwnagotchi-manual -iface mon0
fi
else
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
fi
sudo bettercap -eval "caplets.update; ui.update; quit"
sudo bettercap -caplet https-ui -iface wlxxxx
wget "https://github.com/evilsocket/pwngrid/releases/download/v1.10.3/pwngrid_linux_aarch64_v1.10.3.zip"
unzip pwngrid_linux_aarch64_v1.10.3.zip
sudo chmod +x pwngrid
sudo mv pwngrid /usr/bin/
sudo nano /etc/systemd/system/pwngrid-peer.service
sudo pip3 install tensorflow
pip3 install scikit-build
wget https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2.tar.gz
tar -zxf cmake-3.18.2.tar.gz
cd cmk-3.18.2/
./bootstrap && make && sudo make install
cd bin/
sudo mv * /usr/bin
sudo pip3 install cmake
wget "https://github.com/evilsocket/pwnagotchi/archive/v1.4.3.zip"
unzip v1.4.3.zip