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
airodump-ng: add support for '--exclude-bssid' option #2463
base: master
Are you sure you want to change the base?
Conversation
542ac64
to
1e1622e
Compare
Hm... the style check action keeps getting cancelled for some reason. |
I'm guessing it was because this was still using ubuntu 18.04. I just updated it to 22.04, but it disappeared from the checks. |
1e1622e
to
a9607a7
Compare
Did a force push, lets see. |
a9607a7
to
c0a0e50
Compare
manpages/airodump-ng.8.in
Outdated
@@ -103,6 +103,9 @@ It will only show networks matching the given encryption. Note that WPA is a sho | |||
.I -d <bssid>, --bssid <bssid> | |||
It will only show networks, matching the given bssid. May be specified more than once: \(aq\-d 0D:F7:E2:61:C6:6D \-d 5B:62:A1:83:00:A8\(aq | |||
.TP | |||
.I -X <bssid>, --exclude-bssid <bssid> | |||
It will show all networks, except the one matching the given bssid. May be specified more than once: \(aq\-X 0D:F7:E2:61:C6:6D \-X 5B:62:A1:83:00:A8\(aq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BSSID should be uppercase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated it for --bssid and --netmask also, so it is consistent
" --exclude-bssid\n" | ||
" <bssid> : Similar to --bssid but excludes the AP,\n" | ||
" you can pass multiple --exclude-bssid " | ||
"options\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix Indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what it looks like:
$ ./airodump-ng --help
...
--write-interval
<seconds> : Output file(s) write interval in seconds
--background <enable> : Override background detection.
Filter options:
--encrypt <suite> : Filter APs by cipher suite,
you can pass multiple --encrypt options
--netmask <netmask> : Filter APs by mask
--bssid <bssid> : Filter APs by BSSID,
you can pass multiple --bssid options
--exclude-bssid
<bssid> : Similar to --bssid but excludes the AP,
you can pass multiple --exclude-bssid options
--essid <essid> : Filter APs by ESSID,
you can pass multiple --essid options
...
Writing --exclude-bssid <bssid>
in one line would be too long so it would not fit, thats why I split it similarly to --write-interval
. If you meant shifting it so there will be only 1 space between <bssid>
and :
, I updated it:
$ ./airodump-ng --help
...
--exclude-bssid
<bssid> : Similar to --bssid but excludes the AP,
you can pass multiple --exclude-bssid options
...
src/airodump-ng/airodump-ng.c
Outdated
@@ -6530,7 +6577,22 @@ int main(int argc, char * argv[]) | |||
} | |||
else | |||
{ | |||
printf("Notice: invalid bssid\n"); | |||
printf("Error: invalid bssid\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BSSID should be uppercase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated it for --bssid also, so it is consistent
0c21f3a
to
607db32
Compare
0fc78cd
to
6d63b5f
Compare
Now at least all 4 macOS CI fail consistently, not only 1 or 2 of them (see #2465 for reference). |
6d63b5f
to
a774a02
Compare
Fixes #796
Added support for
--exclude-bssid
or-X
option. Updatedairodump-ng --help
andman airodump-ng
also. Replaced some BSSID relatedNotice: ...
messages withError: ...
. The second part in the linked issue is already implemented (--essid-regex
).Test measurements (always sorted by BSSID):