bettercap / bettercap/bettercap
UI not displaying collected WiFi
- Dominant language
- Go
- Stars
- 20k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
# Prerequisites
---
*Description of the bug or feature request*
### Environment
Please provide:
* Bettercap version you are using ( `bettercap -version` ) :
bettercap v2.41.1 (built for linux amd64 with go1.24.4)
* OS version and architecture you are using
Linux linuxlaptop 6.8.0-64-generic #67~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 24 15:19:46 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
* Command line arguments you are using.
no arguments
* **Full debug output** while reproducing the issue ( `bettercap -debug ...` ).
* WiFi Chip: Ralink Technology, Corp. RT5370 Wireless Adapter
### Steps to Reproduce
sudo ./bettercap
ui on
set wifi.interface wlxaabbccddeeff (changed for privacy)
wif.recon on
wifi.show
Go to UI in browser, go to wifi tab, look for devices
also tried manually setting monitor mode, and same result.
Previous issues offered no solution
**Expected behavior:** *What you expected to happen*
Wifi devices in the Wifi Tab. Empty message disappears once data is collected, but no devices or infomration is displayed
**Actual behavior:** *What actually happened*
No devices displayed in WiFi Tab.
Events list and main console both show WiFi devices, probes, and handshakes being collected
Debug log for event in question
```
10.0.0.0/24 > 10.0.0.50 » wifi.recon on
[20:15:28] [sys.log] [inf] wifi using interface wlxaabbccddeeff (aa:bb:cc:dd:ee:ff)
[20:15:28] [sys.log] [dbg] SetInterfaceTxPower(wlxaabbccddeeff, 30) iw based
[20:15:28] [sys.log] [dbg] exec=/usr/sbin/iw args=[dev wlxaabbccddeeff set txpower fixed 30] ret_err=exit status 161 ret_out=command failed: Operation not supported (-95)
[20:15:28] [sys.log] [war] wifi could not set interface wlxaabbccddeeff txpower to 30, 'Set Tx Power' requests not supported: exit status 161
[20:15:28] [sys.log] [dbg] creating capture for 'wlxaabbccddeeff' with options: {Monitor:true Snaplen:65536 Bufsize:2097152 Promisc:true Timeout:500ms}
[20:15:28] [sys.log] [dbg] exec=/usr/sbin/ip args=[link set wlxaabbccddeeff down] ret_err= ret_out=
[20:15:28] [sys.log] [dbg] exec=/usr/sbin/iw args=[dev wlxaabbccddeeff set type monitor] ret_err= ret_out=
[20:15:28] [sys.log] [dbg] exec=/usr/sbin/ip args=[link set wlxaabbccddeeff up] ret_err= ret_out=
[20:15:28] [sys.log] [dbg] creating capture for 'wlxaabbccddeeff' with options: {Monitor:false Snaplen:65536 Bufsize:2097152 Promisc:true Timeout:500ms}
[20:15:28] [sys.log] [dbg] exec=/usr/sbin/iw args=[wlxaabbccddeeff info] ret_err= ret_out=Interface wlxaabbccddeeff
ifindex 7
wdev 0x300000001
addr 1c:bf:ce:f4:be:b2
type monitor
wiphy 3
channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytestx-packets
0 0 0 0 0 0 0 0 0
[20:15:28] [sys.log] [dbg] exec=/usr/sbin/iw args=[phy3 info] ret_err= ret_out=Wiphy phy3
wiphy index: 3
max # scan SSIDs: 4
max scan IEs length: 2257 bytes
max # sched scan SSIDs: 0
max # match sets: 0
Retry short long limit: 2
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* CCMP-256 (00-0f-ac:10)
* GCMP-128 (00-0f-ac:8)
* GCMP-256 (00-0f-ac:9)
* CMAC (00-0f-ac:6)
* CMAC-256 (00-0f-ac:13)
* GMAC-128 (00-0f-ac:11)
* GMAC-256 (00-0f-ac:12)
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* mesh point
Band 1:
Capabilities: 0x17e
HT20/HT40
SM Power Save disabled
RX Greenfield
RX HT20 SGI
RX HT40 SGI
RX STBC 1-stream
Max AMSDU length: 3839 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 32767 bytes (exponent: 0x002)
Minimum RX AMPDU time spacing: 2 usec (0x04)
HT TX/RX MCS rate indexes supported: 0-7, 32
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm)
* 2472 MHz [13] (20.0 dBm)
* 2484 MHz [14] (disabled)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* connect
* disconnect
* set_qos_map
* set_multicast_to_unicast
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ AP, mesh point } <= 8,
total <= 8, #channels <= 1
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports low priority scan.
Device supports scan flush.
Device supports AP scan.
Device supports per-vif TX power setting
Driver supports full state transitions for AP/GO clients
Driver supports a userspace MPM
Device supports configuring vdev MAC-addr on create.
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xb0 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
Supported extended features:
* [ RRM ]: RRM
* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
* [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
* [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
* [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
* [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
* [ DEL_IBSS_STA ]: deletion of IBSS station support
* [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
* [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
[20:15:28] [sys.log] [dbg] wifi new frequencies: []
[20:15:28] [sys.log] [inf] wifi channels: []
[20:15:28] [sys.log] [dbg] wifi wifi supported frequencies: []
[20:15:28] [sys.log] [dbg] exec=/usr/sbin/iw args=[dev wlxaabbccddeeff set freq 2412] ret_err= ret_out=
[20:15:28] [sys.log] [inf] wifi started (min rssi: -200 dBm)
wlp0s20f3 » [20:15:28] [mod.started] wifi
```
--
**♥ ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY ♥**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported sequence with `sudo ./bettercap`, `ui on`, `wifi.recon on`, and `wifi.show`, then compare the browser WiFi tab with the events and console output. Trace the WiFi data from collection to the UI entry point; done means devices collected by `wifi.recon` are displayed in the WiFi tab. No source file or test is named in the report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, linux
- Domain
- backend, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100