mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-12-05 02:24:17 +01:00
Merge pull request #108 from JoasASantos/fix/settings-reactive-prefill
fix(web): apply Settings Engine choice to the wizard
This commit is contained in:
1 file changed
+8
@@ -665,6 +665,14 @@ async function loadProviders() {
|
||||
sel.addEventListener('change', onProviderChange);
|
||||
try {
|
||||
const cfg = await api('/api/config/settings');
|
||||
// Settings → Engine is the default for new runs; without this the wizard's
|
||||
// reactive checkbox stayed checked and every web run used the reactive
|
||||
// engine (no tool-recon / URL harvest) even when the operator chose phased.
|
||||
const rbox = $('#fieldReactive');
|
||||
if (rbox) {
|
||||
if (cfg.reactive === 'off') rbox.checked = false;
|
||||
else if (cfg.reactive === 'on') rbox.checked = true;
|
||||
}
|
||||
if (cfg.defaultModel) {
|
||||
const parts = cfg.defaultModel.split(':');
|
||||
if (parts.length >= 2) {
|
||||
|
||||
Reference in new issue
Block a user