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

add support for building with the libnl3 (--enable-libnl3) #350

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yarda
Copy link

@yarda yarda commented Dec 14, 2021

Fixes #349

Signed-off-by: Jaroslav Škarvada jskarvad@redhat.com

@yarda
Copy link
Author

yarda commented Dec 14, 2021

Tested just the build not the function. By default it builds with the bundled liw. With the configure --enable-libnl3 it will build and link with the libnl3.

Currently:

  • it links with the bundled liw even when the libnl3 is enabled, this shouldn't be problem the compiler optimizer should drop the unused objects
  • it uses pkgconfig for the libnl3, but it doesn't check for it with the autotools macros
  • it doesn't use auttools macros for checking of the libnl3 presence

@yarda yarda force-pushed the libnl3 branch 2 times, most recently from 5bc0d61 to 1e308dd Compare December 14, 2021 22:08
@rofl0r
Copy link
Collaborator

rofl0r commented Dec 14, 2021

Tested just the build not the function.

you do intend to test it though, i presume ?

Fixes t6x#349

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
@yarda
Copy link
Author

yarda commented Dec 14, 2021

I had to readd the ethernet.h include, but now bellow the conditional, because otherwise it fails to compile with the libnl3.

@yarda
Copy link
Author

yarda commented Dec 15, 2021

Tested just the build not the function.

you do intend to test it though, i presume ?

I am not sure how to properly test it, I only run:

# ./reaver -i wlp3s0mon -b BSSID -vv

Reaver v1.6.6-git-10-g1e308dd WiFi Protected Setup Attack Tool
Copyright (c) 2011, Tactical Network Solutions, Craig Heffner <cheffner@tacnetsol.com>

[+] Waiting for beacon from BSSID
[+] Switching wlp3s0mon to channel 1
[+] Switching wlp3s0mon to channel 2
[+] Switching wlp3s0mon to channel 3
[+] Switching wlp3s0mon to channel 6
[+] Received beacon from BSSID
[+] Vendor: Broadcom
[!] AP seems to have WPS turned off
[+] Trying pin "12345670"
[+] Sending authentication request
[+] Sending association request
[!] WARNING: Receive timeout occurred

The AP indeed has WPS turned off, but it seems it's switching the channels.

@rofl0r
Copy link
Collaborator

rofl0r commented Dec 15, 2021

yeah, seems to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please drop wireless-extension requirement
2 participants