mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-22 07:10:51 -08:00
Display show packetrate
This commit is contained in:
@@ -424,4 +424,7 @@ uint32_t Attack::getBeaconMaxPkts() {
|
|||||||
uint32_t Attack::getProbeMaxPkts() {
|
uint32_t Attack::getProbeMaxPkts() {
|
||||||
return probe.maxPkts;
|
return probe.maxPkts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t Attack::getPacketRate(){
|
||||||
|
return packetRate;
|
||||||
|
}
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ class Attack {
|
|||||||
uint32_t getDeauthMaxPkts();
|
uint32_t getDeauthMaxPkts();
|
||||||
uint32_t getBeaconMaxPkts();
|
uint32_t getBeaconMaxPkts();
|
||||||
uint32_t getProbeMaxPkts();
|
uint32_t getProbeMaxPkts();
|
||||||
|
|
||||||
|
uint32_t getPacketRate();
|
||||||
private:
|
private:
|
||||||
void deauthUpdate();
|
void deauthUpdate();
|
||||||
void deauthAllUpdate();
|
void deauthAllUpdate();
|
||||||
|
|||||||
@@ -576,7 +576,7 @@ void DisplayUI::setup() {
|
|||||||
|
|
||||||
// ATTACK MENU
|
// ATTACK MENU
|
||||||
createMenu(&attackMenu, &mainMenu, [this]() {
|
createMenu(&attackMenu, &mainMenu, [this]() {
|
||||||
addMenuNode(&attackMenu, [this]() {
|
addMenuNode(&attackMenu, [this]() { // *DEAUTH 0/0
|
||||||
if(attack.isRunning()) return buildString(b2a(deauthSelected) + str(D_DEAUTH), (String)attack.getDeauthPkts() + SLASH + (String)attack.getDeauthMaxPkts(), CHARS_PER_LINE);
|
if(attack.isRunning()) return buildString(b2a(deauthSelected) + str(D_DEAUTH), (String)attack.getDeauthPkts() + SLASH + (String)attack.getDeauthMaxPkts(), CHARS_PER_LINE);
|
||||||
else return buildString(b2a(deauthSelected) + str(D_DEAUTH) , (String)scan.countSelected(), CHARS_PER_LINE);
|
else return buildString(b2a(deauthSelected) + str(D_DEAUTH) , (String)scan.countSelected(), CHARS_PER_LINE);
|
||||||
}, [this]() { // deauth
|
}, [this]() { // deauth
|
||||||
@@ -585,7 +585,7 @@ void DisplayUI::setup() {
|
|||||||
attack.start(beaconSelected, deauthSelected, false, probeSelected, true, settings.getAttackTimeout() * 1000);
|
attack.start(beaconSelected, deauthSelected, false, probeSelected, true, settings.getAttackTimeout() * 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
addMenuNode(&attackMenu, [this]() {
|
addMenuNode(&attackMenu, [this]() { // *BEACON 0/0
|
||||||
if(attack.isRunning()) return buildString(b2a(beaconSelected) + str(D_BEACON), (String)attack.getBeaconPkts() + SLASH + (String)attack.getBeaconMaxPkts(), CHARS_PER_LINE);
|
if(attack.isRunning()) return buildString(b2a(beaconSelected) + str(D_BEACON), (String)attack.getBeaconPkts() + SLASH + (String)attack.getBeaconMaxPkts(), CHARS_PER_LINE);
|
||||||
else return buildString(b2a(beaconSelected) + str(D_BEACON), (String)ssids.count(), CHARS_PER_LINE);
|
else return buildString(b2a(beaconSelected) + str(D_BEACON), (String)ssids.count(), CHARS_PER_LINE);
|
||||||
}, [this]() { // beacon
|
}, [this]() { // beacon
|
||||||
@@ -594,7 +594,7 @@ void DisplayUI::setup() {
|
|||||||
attack.start(beaconSelected, deauthSelected, false, probeSelected, true, settings.getAttackTimeout() * 1000);
|
attack.start(beaconSelected, deauthSelected, false, probeSelected, true, settings.getAttackTimeout() * 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
addMenuNode(&attackMenu, [this]() {
|
addMenuNode(&attackMenu, [this]() { // *PROBE 0/0
|
||||||
if(attack.isRunning()) return buildString(b2a(probeSelected) + str(D_PROBE), (String)attack.getProbePkts() + SLASH + (String)attack.getProbeMaxPkts(), CHARS_PER_LINE);
|
if(attack.isRunning()) return buildString(b2a(probeSelected) + str(D_PROBE), (String)attack.getProbePkts() + SLASH + (String)attack.getProbeMaxPkts(), CHARS_PER_LINE);
|
||||||
else return buildString(b2a(probeSelected) + str(D_PROBE), (String)ssids.count(), CHARS_PER_LINE);
|
else return buildString(b2a(probeSelected) + str(D_PROBE), (String)ssids.count(), CHARS_PER_LINE);
|
||||||
}, [this]() { // probe
|
}, [this]() { // probe
|
||||||
@@ -603,8 +603,8 @@ void DisplayUI::setup() {
|
|||||||
attack.start(beaconSelected, deauthSelected, false, probeSelected, true, settings.getAttackTimeout() * 1000);
|
attack.start(beaconSelected, deauthSelected, false, probeSelected, true, settings.getAttackTimeout() * 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
addMenuNode(&attackMenu, []() {
|
addMenuNode(&attackMenu, []() { // START
|
||||||
return str(attack.isRunning() ? D_STOP_ATTACK : D_START_ATTACK);
|
return buildString(str(attack.isRunning() ? D_STOP_ATTACK : D_START_ATTACK), (String)attack.getPacketRate(), CHARS_PER_LINE);
|
||||||
}, [this]() {
|
}, [this]() {
|
||||||
if (attack.isRunning()) attack.stop();
|
if (attack.isRunning()) attack.stop();
|
||||||
else attack.start(beaconSelected, deauthSelected, false, probeSelected, true, settings.getAttackTimeout() * 1000);
|
else attack.start(beaconSelected, deauthSelected, false, probeSelected, true, settings.getAttackTimeout() * 1000);
|
||||||
|
|||||||
Reference in New Issue
Block a user