Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpcap0.8 version 1.10 breaks the application #39

Open
warp123 opened this issue Feb 1, 2021 · 13 comments
Open

libpcap0.8 version 1.10 breaks the application #39

warp123 opened this issue Feb 1, 2021 · 13 comments
Assignees
Labels
bug New bug dependencies Related to the dependencies

Comments

@warp123
Copy link

warp123 commented Feb 1, 2021

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.

@warp123 warp123 added the bug New bug label Feb 1, 2021
@SkypLabs
Copy link
Owner

SkypLabs commented Feb 1, 2021

Many thanks @warp123!

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

@free-doughnuts
Copy link

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

@warp123
Copy link
Author

warp123 commented Feb 2, 2021

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
Copy link

Ok.
Thanks :)

@ludgeromiguel
Copy link

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
Copy link
Author

warp123 commented Feb 13, 2021

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
Copy link

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
Copy link
Author

warp123 commented Feb 13, 2021

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
Copy link

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

issue

@warp123
Copy link
Author

warp123 commented Feb 13, 2021

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
Copy link

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

@SkypLabs SkypLabs added the dependencies Related to the dependencies label Feb 20, 2021
@dave7280
Copy link

dave7280 commented Mar 13, 2021

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
Copy link
Owner

The issue seems to have been fixed upstream a while ago: the-tcpdump-group/libpcap#989

@SkypLabs SkypLabs moved this to 📋 Backlog in ProbeQuest Jun 19, 2022
@SkypLabs SkypLabs moved this from 📋 Backlog to 🔖 Ready in ProbeQuest Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug New bug dependencies Related to the dependencies
Projects
Status: 🔖 Ready
Development

No branches or pull requests

5 participants