-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCLI.h
51 lines (43 loc) · 979 Bytes
/
CLI.h
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
#ifndef CLI_H
#define CLI_H
#include <string>
#include <unistd.h>
#include <cassert>
#include <clocale>
#include <locale>
#include <vector>
#include <codecvt>
#include <iostream>
#include "Network.h"
class CLI
{
typedef Tins::Dot11::address_type address_type;
enum State {
CHOOSEIF,
LISTAPS,
LISTHOSTS,
WHITELIST,
ATTACK
};
public:
CLI();
virtual ~CLI();
void mainLoop();
protected:
private:
State state;
Network network;
std::vector<std::wstring> interfaces;
std::map<std::string, std::set<address_type>> aps;
std::vector<std::string> targets;
void showMenu();
void showHeader();
void showAction();
void listInterfaces();
void listAccessPoints();
void chooseInterface(int no);
void chooseAccessPoint(int no);
void listConnectedHosts();
void attack();
};
#endif // CLI_H