mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-21 14:09:59 +01:00
Fixed APScan select bug + Attack status bug
- fixed: APScan select wasn't working when Multiple AP selection was disbaled. - fixed: Attack stati wasn't shown - improved: design of select,deselect all buttons
This commit is contained in:
@@ -3,6 +3,7 @@ var networkInfo = getE('networksFound');
|
||||
var scanInfo = getE('scanInfo');
|
||||
var apMAC = getE('apMAC');
|
||||
var startStopScan = getE('startStopScan');
|
||||
var selectAllBtns = getE('selectAllBtns');
|
||||
var autoScan = false;
|
||||
|
||||
function toggleScan(onoff) {
|
||||
@@ -31,13 +32,14 @@ function getResults() {
|
||||
res.aps = res.aps.sort(compare);
|
||||
networkInfo.innerHTML = res.aps.length;
|
||||
apMAC.innerHTML = "";
|
||||
|
||||
|
||||
if (res.multiAPs == 1) selectAllBtns.style.visibility = 'visible';
|
||||
else selectAllBtns.style.visibility = 'hidden';
|
||||
|
||||
var tr = '';
|
||||
if (res.aps.length > 0) {
|
||||
tr += '<tr><th>Ch</th><th>SSID</th><th>RSSI</th><th>Encrypt.</th>';
|
||||
|
||||
if (res.multiAPs == 1) tr += '<th><button class="marginNull button-primary" onclick="select(-1)">select</button> | <button class="marginNull button-primary" onclick="select(-2)">deselect</button> all</th></tr>';
|
||||
else tr += '<th>Select</th></tr>'
|
||||
tr += '<th>Select</th></tr>'
|
||||
}
|
||||
|
||||
for (var i = 0; i < res.aps.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user