View Issue Details

IDProjectCategoryView StatusLast Update
0006651Kali Linux[All Projects] Kali Package Bugpublic2021-09-14 20:21
Reportersteveor Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Product Version2020.2 
Target VersionFixed in Version 
Summary0006651: Kali 2020.1 experiences excessive RAM usage when running bettercap web user interface. Current Kali VM does not have this issue.
DescriptionThis is submitted for informational purposes.

Bettercap web user interface (UI) in Kali 2020.1 (VMware Fusion on a MacOS Catalina 10.15.5) consumes excessive RAM.

Running this command starts the UI:

sudo bettercap -iface eth0 -caplet /usr/share/bettercap/caplets/http-ui.cap

A web server on ports 80 and 8081 are initiated. Upon logging into the UI, the RAM usage increased significantly (into the Gigabytes) rendering the application unusable.

Truncated ps_mem output while running bettercap with the UI:

kali@kali:~$ sudo ps_mem
 Private + Shared = RAM used Program

  4.0 KiB + 16.0 KiB = 20.0 KiB dconf-service
  ...
 13.5 MiB + 24.9 MiB = 38.4 MiB xfce4-terminal
 19.9 MiB + 25.1 MiB = 45.0 MiB systemd-journald
 15.7 MiB + 31.2 MiB = 47.0 MiB xfdesktop
 24.4 MiB + 53.7 MiB = 78.0 MiB WebExtensions
 70.4 MiB + 99.2 MiB = 169.5 MiB Xorg
147.5 MiB + 212.1 MiB = 359.6 MiB firefox-esr
385.9 MiB + 492.2 MiB = 878.2 MiB Web Content (3)
  4.6 GiB + 4.6 GiB = 9.3 GiB bettercap
---------------------------------
                         11.1 GiB
=================================


Steps To Reproducesudo apt install bettercap
sudo bettercap -iface eth0 -caplets /usr/share/bettercap/caplets/http-ui.cap

Upon execution, bettercap displays links to the web interface:

10.11.0.0/24 > 10.11.0.249 » [08:53:26] [sys.log] [inf] https.server starting on https://0.0.0.0:80
10.11.0.0/24 > 10.11.0.249 » [08:53:26] [sys.log] [inf] api.rest api server starting on https://0.0.0.0:8081

Open link http://0.0.0.0:80 and login using default bettercap credentials user/pass. Bettercap UI opens and system RAM usage increases significantly.


Additional InformationCurrent build:
kali@kali:~$ uname -a
Linux kali 5.4.0-kali4-amd64 0000001 SMP Debian 5.4.19-1kali1 (2020-02-17) x86_64 GNU/Linux
kali@kali:~$ bettercap -version
bettercap v2.28 (built for linux amd64 with go1.14.4)

Using the current Kali VMware build, bettercap runs as expected.

Activities

g0tmi1k

2021-09-14 20:21

administrator   ~0015195

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.
Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?
If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://kali.training/topic/filing-a-good-bug-report/

Issue History

Date Modified Username Field Change
2020-08-12 14:13 steveor New Issue
2020-12-01 10:48 g0tmi1k Priority high => normal
2020-12-01 10:50 g0tmi1k Severity major => minor
2021-09-14 20:21 g0tmi1k Status new => closed
2021-09-14 20:21 g0tmi1k Resolution open => suspended
2021-09-14 20:21 g0tmi1k Note Added: 0015195