-
Notifications
You must be signed in to change notification settings - Fork 10
/
0001-airodump-ng.c-add-manufacturer-column-to-the-client-.patch
64 lines (56 loc) · 1.85 KB
/
0001-airodump-ng.c-add-manufacturer-column-to-the-client-.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From 443614f91092ef713eb2dd37706c519427c7b120 Mon Sep 17 00:00:00 2001
From: chinarulezzz <drop@chinarulezzz.fun>
Date: Thu, 5 Mar 2020 01:26:31 +0200
Subject: [PATCH] airodump-ng.c: add manufacturer column to the client list
Be aware!
According to this thread:
>> https://github.com/aircrack-ng/aircrack-ng/issues/1023#issuecomment-372062743
this patch is not needed at all :=D
Patch on top of b9ee19bcf868d4f4f0197cb0d886d0ebe91a6636 (git)
---
src/airodump-ng/airodump-ng.c | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/src/airodump-ng/airodump-ng.c b/src/airodump-ng/airodump-ng.c
index 68353fb..0afb607 100644
--- a/src/airodump-ng/airodump-ng.c
+++ b/src/airodump-ng/airodump-ng.c
@@ -4044,9 +4044,17 @@ static void dump_print(int ws_row, int ws_col, int if_num)
if (lopt.show_sta)
{
- strcpy(strbuf,
+ if (lopt.show_manufacturer)
+ strcpy(strbuf,
+ " BSSID STATION "
+ " PWR Rate Lost Frames Notes Manufacturer "
+ " Probes");
+ else
+ strcpy(strbuf,
" BSSID STATION "
" PWR Rate Lost Frames Notes Probes");
+
+
strbuf[ws_col - 1] = '\0';
console_puts(strbuf);
CHECK_END_OF_SCREEN();
@@ -4151,6 +4159,20 @@ static void dump_print(int ws_row, int ws_col, int if_num)
? "PMKID"
: (st_cur->wpa.state == 7 ? "EAPOL" : ""));
+ if (lopt.show_manufacturer)
+ {
+ if (st_cur->manuf == NULL)
+ {
+ st_cur->manuf = get_manufacturer(st_cur->stmac[0],
+ st_cur->stmac[1],
+ st_cur->stmac[2]);
+
+ }
+ if (strstr(st_cur->manuf, "Unknown") == NULL)
+ printf(strlen(st_cur->manuf) > 32 ? " %s" : " %-32s",
+ st_cur->manuf);
+ }
+
if (ws_col > (columns_sta - 6))
{
memset(ssid_list, 0, sizeof(ssid_list));
--
2.25.0