evilsocket / pwnagotchi

(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.
https://pwnagotchi.ai/
Other
7.79k stars 1.16k forks source link

[BUG] bettercap not listening to port 80 in manual mode #1250

Open hb9eue opened 3 months ago

hb9eue commented 3 months ago

Describe the bug

Bettercap does not listen to a tcp socket, thus no web interface in manual mode.

Maybe this is due that I have a waveshare_3 and therefore needed to replace a couple of files from the 1.5.5 image with the most recent github version to get that display working?

To Reproduce Steps to reproduce the behavior:

Connect USB Network (or bluetooth Netzwork).

Access pwnagotchi on port 8080 and switch to manual mode.

Log-In via ssh, spawn a root shell via sudo, verify bettercap is running:

root@pwnagotchi:~# systemctl status bettercap ● bettercap.service - bettercap api.rest service. Loaded: loaded (/etc/systemd/system/bettercap.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2019-07-10 10:12:04 BST; 8min ago Docs: https://bettercap.org Main PID: 16342 (bash) CGroup: /system.slice/bettercap.service ├─16342 bash /usr/bin/bettercap-launcher └─16359 /usr/bin/bettercap -no-colors -caplet pwnagotchi-manual -iface mon0

Check for listening sockets and their processes:

root@pwnagotchi:~# netstat -anpl Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8080 0.0.0.0: LISTEN 16369/python3
tcp 0 0 0.0.0.0:53 0.0.0.0:
LISTEN 498/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN 468/sshd
tcp 0 0 127.0.0.1:8666 0.0.0.0:
LISTEN 403/pwngrid

Conclusion: Web-UI of bettercap is not listening.

Expected behavior bettercap listening to port 80 in manual mode.

Screenshots N/A

Environment (please complete the following information):

hb9eue commented 3 months ago

Quick update after a systemctl restart bettercap it is listening (but it looks like it's not processing any of the cap files)

hb9eue commented 3 months ago

Found the hint about this image being unmaintained and more recent ones being linked from https://pwnagotchi.org/