-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathbw16.h
More file actions
63 lines (54 loc) · 1.24 KB
/
bw16.h
File metadata and controls
63 lines (54 loc) · 1.24 KB
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
#ifndef __BW16_TOOL_H__
#define __BW16_TOOL_H__
#include <Arduino.h>
#include <algorithm>
#include <globals.h>
#include <vector>
struct BW16Network {
int index;
String ssid;
String bssid;
int channel;
int rssi;
};
struct BW16Group {
String ssid;
std::vector<BW16Network> aps;
int maxRssi = -127;
bool has24 = false;
bool has5 = false;
};
class BW16Tool {
public:
BW16Tool();
~BW16Tool();
void setup();
void scanWifi();
void selectWifi();
void attackWifiMenu();
void attackSelected();
void attackAll();
void beaconSpam();
void beaconList();
void beaconDeauth();
void evilPortal();
void attckbleMenu();
void send_at_ble(String type);
String readSerialLine();
private:
bool isBW16Active = false;
bool rxPinReleased = false;
std::vector<BW16Network> all_networks;
std::vector<BW16Group> grouped_networks;
std::vector<String> selected_bssids;
bool begin_bw16();
void end();
void releasePins();
void restorePins();
void display_banner();
void send_attack_command(String type);
void printCustomLog(String msg);
void centerString(String text);
void save_captured_creds(const std::vector<String> &creds);
};
#endif