forked from risinek/esp32-wifi-penetration-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
attack_method.h
35 lines (30 loc) · 961 Bytes
/
attack_method.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
/**
* @file attack_method.h
* @author risinek ([email protected])
* @date 2021-04-07
* @copyright Copyright (c) 2021
*
* @brief Provides interface for common methods used in various attacks
*/
#ifndef ATTACK_METHOD_H
#define ATTACK_METHOD_H
#include "esp_wifi_types.h"
/**
* @brief Starts periodic deauthentication frame broadcast
*
* @param ap_record target AP record which BSSID will be used in deauthentication frame
* @param period_sec period of broadcast in seconds
*/
void attack_method_broadcast(const wifi_ap_record_t *ap_record, unsigned period_sec);
/**
* @brief Stop periodic deauthentication frame broadcast
*/
void attack_method_broadcast_stop();
/**
* @brief Starts duplicated AP with same BSSID as genuine AP from ap_record
*
* This will execute deauthentication attack for given AP.
* @param ap_record target AP that will be cloned/duplicated
*/
void attack_method_rogueap(const wifi_ap_record_t *ap_record);
#endif