mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-22 14:40:05 +01:00
79 lines
1.6 KiB
C++
79 lines
1.6 KiB
C++
#ifndef Settings_h
|
|
#define Settings_h
|
|
|
|
#include <EEPROM.h>
|
|
#include <ESP8266WiFi.h>
|
|
#include <ESP8266WebServer.h>
|
|
#include "Mac.h"
|
|
#include "MacList.h"
|
|
#include "NameList.h"
|
|
|
|
extern void sendBuffer();
|
|
extern void sendToBuffer(String str);
|
|
extern void sendHeader(int code, String type, size_t _size);
|
|
|
|
extern const bool debug;
|
|
extern String data_getVendor(uint8_t first, uint8_t second, uint8_t third);
|
|
extern void eepromWriteInt(int adr, int val);
|
|
extern int eepromReadInt(int adr);
|
|
extern NameList nameList;
|
|
|
|
#define ssidLenAdr 1024
|
|
#define ssidAdr 1025
|
|
#define passwordLenAdr 1057
|
|
#define passwordAdr 1058
|
|
#define deauthReasonAdr 1090
|
|
#define attackTimeoutAdr 1091
|
|
#define attackPacketRateAdr 1093
|
|
#define clientScanTimeAdr 1094
|
|
#define attackEncryptedAdr 1095
|
|
#define ssidHiddenAdr 1096
|
|
#define apScanHiddenAdr 1097
|
|
#define apChannelAdr 1098
|
|
#define useLedAdr 1099
|
|
#define channelHopAdr 1100
|
|
#define multiAPsAdr 1101
|
|
#define multiAttacksAdr 1102
|
|
#define macIntervalAdr 1103
|
|
#define beaconIntervalAdr 1105
|
|
#define ledPinAdr 1106
|
|
|
|
#define checkNumAdr 2001
|
|
#define checkNum 73
|
|
|
|
class Settings
|
|
{
|
|
public:
|
|
Settings();
|
|
void load();
|
|
void reset();
|
|
void save();
|
|
void send();
|
|
void info();
|
|
|
|
int ssidLen;
|
|
String ssid = "";
|
|
bool ssidHidden;
|
|
int passwordLen;
|
|
String password = "";
|
|
int apChannel;
|
|
bool apScanHidden;
|
|
uint8_t deauthReason;
|
|
unsigned int attackTimeout;
|
|
int attackPacketRate;
|
|
int clientScanTime;
|
|
bool attackEncrypted;
|
|
bool useLed;
|
|
bool channelHop;
|
|
bool multiAPs;
|
|
bool multiAttacks;
|
|
int macInterval;
|
|
bool beaconInterval;
|
|
int ledPin;
|
|
|
|
private:
|
|
size_t getSize();
|
|
};
|
|
|
|
#endif
|