SkypLabs / probequest

Toolkit for Playing with Wi-Fi Probe Requests
https://probequest.skyplabs.net/en/stable/
GNU General Public License v3.0
255 stars 48 forks source link

libpcap0.8 version 1.10 breaks the application #39

Open warp123 opened 3 years ago

warp123 commented 3 years ago

Installed on Kali machine. After fresh kali installations the program works just fine, but after a full-upgrade of the OS, probequest stops working with the following error

Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner self.run() File "/usr/lib/python3.9/threading.py", line 892, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 906, in _run sniff_sockets[L2socket(type=ETH_P_ALL, iface=iface, File "/usr/lib/python3/dist-packages/scapy/arch/linux.py", line 407, in init attach_filter(self.ins, filter, iface) File "/usr/lib/python3/dist-packages/scapy/arch/linux.py", line 142, in attach_filter bp = compile_filter(bpf_filter, iface) File "/usr/lib/python3/dist-packages/scapy/arch/common.py", line 128, in compile_filter raise Scapy_Exception( scapy.error.Scapy_Exception: Failed to compile filter expression type mgt subtype probe-req (-1)

I had similar problems with bettercap when the program was trying to set the wifi adapter in monitor mode, and the problem was there with the library "libpcap0.80" which is updated in version 1.10 lately.

We tried installing the previous version 1.9.1 and both applications now work perfectly.

I am also addressing the issue here, in order to help anybody else experiencing the same problems. Not really a bug of the program but of the libraries it seems to make use of.

SkypLabs commented 3 years ago

Many thanks @warp123!

I'll look into it as soon as I can.

free-doughnuts commented 3 years ago

Hey. Same issue on my Kali machine as well. Last OS upgrade: 2 days ago.

warp123 commented 3 years ago

Downgrade the libpcap version to 1.9.1 and it will work again. I personally marked the package not to be upgraded by apt until it gets fixed.

free-doughnuts commented 3 years ago

Ok. Thanks :)

ludgeromiguel commented 3 years ago

Hey guys how you downgrade the libpcap version? Where i can find that documentation for do it? i tryed install libpcap0.8=1.9.1, but says it didnt find the version for it. Where i can bypass this? I'm really getting mad because i'm 2 hours finding and testing everything to solve this and nothing works. Help me guys please

warp123 commented 3 years ago

wget http://old.kali.org/kali/pool/main/libp/libpcap/libpcap0.8_1.9.1-4_amd64.deb dpkg -i libpcap0.8_1.9.1-4_amd64.deb

ludgeromiguel commented 3 years ago

wget http://old.kali.org/kali/pool/main/libp/libpcap/libpcap0.8_1.9.1-4_amd64.deb dpkg -i libpcap0.8_1.9.1-4_amd64.deb

Thank you so much men!!!

Now when i run with root( needed ) it says he didnt find the module, what ?!

┌──(kali㉿kali)-[~] └─$ probequest usage: probequest [-h] [--debug] [--fake] -i INTERFACE [--ignore-case] [--mode {raw,pnl}] [-o OUTPUT_FILE] [--version] [-e ESSID_FILTERS [ESSID_FILTERS ...] | -r ESSID_REGEX] [--exclude MAC_EXCLUSIONS [MAC_EXCLUSIONS ...] | -s MAC_FILTERS [MAC_FILTERS ...]] probequest: error: the following arguments are required: -i/--interface

┌──(kali㉿kali)-[~] └─$ sudo probequest 2 ⨯ [sudo] password for kali: Traceback (most recent call last): File "/usr/local/bin/probequest", line 13, in from probequest.config import Config, Mode ModuleNotFoundError: No module named 'probequest'

warp123 commented 3 years ago

Are you sure that you provided the right syntax? Sudo probequest -i wlan0mon

Presumably that you have set the wlan0 interface to monitor mode

ludgeromiguel commented 3 years ago

Yep i provided right syntaxt but i can do it to show better:

issue

warp123 commented 3 years ago

Nope. Your syntax is not right. After you start airmon-ng on wlan0 then interface is named wlan0mon. Check it with a simple ifconfig. So the right syntax is as I wrote to you earlier Sudo probequest -i wlan0mon

ludgeromiguel commented 3 years ago

Nope. Your syntax is not right. After you start airmon-ng on wlan0 then interface is named wlan0mon. Check it with a simple ifconfig. So the right syntax is as I wrote to you earlier Sudo probequest -i wlan0mon

My monitor mode is different, gives a wlan0 to use on monitor mode. But thanks i make it work, i reinstall kali linux and tryed again and voilá it worked ;) so happy. Anyway thank you so much to downgrade libpcap! worked

dave7280 commented 3 years ago

Same problem here. Kali 2021.1. Downgrading libpcap using commands below does not help.

wget http://old.kali.org/kali/pool/main/libp/libpcap/libpcap0.8_1.9.1-4_amd64.deb
dpkg -i libpcap0.8_1.9.1-4_amd64.deb
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2021.1
Codename:       kali-rolling
scapy.error.Scapy_Exception: Failed to compile filter expression type mgt subtype probe-req (-1)
^C[*] Bye!
SkypLabs commented 2 years ago

The issue seems to have been fixed upstream a while ago: https://github.com/the-tcpdump-group/libpcap/issues/989