MCPcopy Create free account
hub / github.com/BruceDevices/firmware / queueProbeResponse

Function queueProbeResponse

src/modules/wifi/karma_attack.cpp:1561–1577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1559}
1560
1561void queueProbeResponse(const ProbeRequest &probe, const RSNInfo &rsn) {
1562 String probeMac = probe.mac;
1563 if (macBlacklist.find(probeMac) != macBlacklist.end()) {
1564 if (millis() - macBlacklist[probeMac] < 60000) return;
1565 else macBlacklist.erase(probeMac);
1566 }
1567 if (responseQueue.size() >= 10) return;
1568 if (probeSSIDEquals(probe, "*WILDCARD*")) return;
1569 ProbeResponseTask task;
1570 task.ssid = probe.ssid;
1571 task.targetMAC = probe.mac;
1572 task.channel = probe.channel;
1573 task.rsn = rsn;
1574 task.timestamp = millis();
1575 responseQueue.push(task);
1576 if (responseQueue.size() <= 3) processResponseQueue();
1577}
1578
1579void checkForAssociations() {
1580 unsigned long now = millis();

Callers 1

processQueuedProbeEventsFunction · 0.85

Calls 6

millisFunction · 0.85
probeSSIDEqualsFunction · 0.85
processResponseQueueFunction · 0.85
sizeMethod · 0.80
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected