Archive: bettercap_linux_amd64_v2.26.zip inflating: bettercap inflating: bettercap_linux_amd64_v2.26.sha256 [sudo] password for anna:
bettercap: error while loading shared libraries: libnetfilter_queue.so.1: cannot open shared object file: No such file or directory
It shows something wrong during installation, so I try the last command
1 2
anna@ubuntu1804:~$ sudo bettercap -eval "caplets.update; ui.update; quit" bettercap: error while loading shared libraries: libnetfilter_queue.so.1: cannot open shared object file: No such file or directory
It shows I need to install libnetfilter-queue1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
anna@ubuntu1804:~$ sudo apt install libnetfilter-queue1 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libnetfilter-queue1 0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded. Need to get 11.4 kB of archives. After this operation, 61.4 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libnetfilter-queue1 amd64 1.0.2-2 [11.4 kB] Fetched 11.4 kB in 0s (42.2 kB/s) Selecting previously unselected package libnetfilter-queue1. (Reading database ... 219919 files and directories currently installed.) Preparing to unpack .../libnetfilter-queue1_1.0.2-2_amd64.deb ... Unpacking libnetfilter-queue1 (1.0.2-2) ... Setting up libnetfilter-queue1 (1.0.2-2) ... Processing triggers for libc-bin (2.27-3ubuntu1) ...
After install this package, I run the command again, this time it works The bettercap is installed successfully.
1 2 3 4 5 6 7 8 9 10
anna@ubuntu1804:~$ sudo bettercap -eval "caplets.update; ui.update; quit" bettercap v2.26.1 (built for linux amd64 with go1.13.3) [type 'help' for a list of commands]
[21:01:54] [sys.log] [inf] caplets creating caplets install path /usr/local/share/bettercap/ ... [21:01:54] [sys.log] [inf] caplets downloading caplets from https://github.com/bettercap/caplets/archive/master.zip ... [21:01:55] [sys.log] [inf] caplets installing caplets to /usr/local/share/bettercap/caplets ... [21:01:55] [sys.log] [inf] ui checking latest stable release ... [21:01:55] [sys.log] [inf] ui downloading ui v1.3.0 from https://github.com/bettercap/ui/releases/download/v1.3.0/ui.zip ... [21:02:01] [sys.log] [inf] ui installing to /usr/local/share/bettercap/ui ... [21:02:02] [sys.log] [inf] ui installation complete, you can now run the http-ui (or https-ui) caplet to start the UI.
create systemd service file: /etc/systemd/system/bettercap.service
#!/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
After these steps, I want to start bettercap servive first I want to run bettercap-luncher
1 2 3 4 5 6
root@ubuntu1804:/usr/bin# ./bettercap-launcher ./bettercap-launcher: line 2: /usr/bin/monstart: No such file or directory cat: /sys/class/net/eth0/carrier: No such file or directory bettercap v2.26.1 (built for linux amd64 with go1.13.3) [type 'help' for a list of commands]
no interface matching 'mon0' found.
google monstart, it said it is based on kali linux, not Ubuntu.
1 2 3 4 5 6
root@ubuntu1804:/usr/bin# dpkg -l |grep kali root@ubuntu1804:/usr/bin# apt install monstart Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package monstart
so monstart can not be install on Ubuntu.
try to start bettercap service, it is supposed to be failed.