MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / toggleVulnHost

Function toggleVulnHost

web/scripts/ragnar_modern.js:5362–5375  ·  view source on GitHub ↗
(ip)

Source from the content-addressed store, hash-verified

5360 const cb = document.getElementById('wifidef-auto'); if (cb) cb.checked = false;
5361 _wifidefSaveOpts();
5362 _wifidefUpdateRunUI();
5363 const st = document.getElementById('wifidef-status');
5364 if (st) st.textContent = 'Continuous scan stopped';
5365}
5366
5367function _wifidefUpdateRunUI() {
5368 const scan = document.getElementById('wifidef-scan-btn');
5369 const stop = document.getElementById('wifidef-stop-btn');
5370 if (scan) scan.classList.toggle('hidden', _wifidef.continuous);
5371 if (stop) stop.classList.toggle('hidden', !_wifidef.continuous);
5372}
5373
5374// Must match wifi_defense.py `_BUILD`. If the running service reports something
5375// else, the webapp is executing an OLD wifi_defense module (service not restarted
5376// after a git pull) — the #1 cause of "the fix didn't work in the web UI".
5377const WIFIDEF_BUILD = '20260902-halehound-toolnames';
5378

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected