hcxtools: Raspberry pi terminates wlandump-ng

Hello, I am trying to use the tool “wlandumg-ng” to scan channel 6 of the surrounding wifi networks using the following command:

sudo wlandump-ng -i wlan0 -c 6 -o test.cap

After only a few seconds, the output on the terminal says, that the programm was “terminated…” Any Ideas, what I am missing? I am using a raspberry pi 3B+ with the ubuntu mate operating system. To enter the monitoring mode, I used the tool “makemonbb” from the “usefulscripts” folder. The output of that command is as follows:

select WLAN interface: wlan0
deactivating NetworkManager and wpa_supplicant
Failed to stop NetworkManager.service: Unit NetworkManager.service not loaded.
activating monitor mode on wlan0
command failed: Operation not supported (-95)
Interface wlan0
	ifindex 3
	wdev 0x1
	addr b8:27:eb:30:42:63
	type managed
	wiphy 0
	channel 34 (5170 MHz), width: 20 MHz, center1: 5170 MHz
	txpower 31.00 dBm

Seems like it fails to stop the Network manager. Any ideas how I can fix this?

Cheers

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 79 (49 by maintainers)

Most upvoted comments

Guys, looks like we need a place to write all those tips&tricks, since they will get lost in bugtracker. @ZerBea , how about enabling the Wiki module for the repo(or maybe better, for hcxdumptool repo)? Then @strasharo can write some tips there, we can add something and etc. Looks like everyone have his own set of scripts and configurations 😃

Othery way around would be to just add the interface name in /etc/network/interfaces like this:

iface wlan0 inet manual

And then restart. NetworkManager is ignoring any interfaces described in /etc/network/interfaces by default, so it will no longer try to control it and you wouldn’t have to bother and kill the processes anymore. You can confirm if it works by using:

nmcli d

It should show that the interface is not being managed by networkmanager.

Cheers

Now, have fun with hcxtools.