mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-11-25 21:54:26 +01:00
feat(harness,web): Artex-inspired adaptive autonomy engine
Five new modules for adaptive, self-directed exploitation: - adaptive.rs: payload mutation engine — tech-stack-aware generation, WAF bypass evolution, response-driven mutation, per-engagement journal - request_analyzer.rs: HTTP response intelligence — reflection detection with context-aware XSS suggestions, error fingerprinting, differential analysis (baseline vs attack), parameter discovery, auth context - exploration_graph.rs: dual-graph architecture — global asset graph + per-engagement exploration graph with causality edges and bidirectional anchors driving a live coverage map - planner.rs: reactive event-driven planner — coverage-driven, fact-driven, chain-driven, hint-driven intent generation with persistent todolist and dependency sequencing - noise_governor.rs: adaptive rate control — per-host throttling, 429/503 exponential backoff, request caching/dedup, stealth mode Integration: - pipeline.rs injects adaptive context into agent prompts - RECON_SYS enhanced with dnsgen, favicon hash, waymore techniques - Web UI: new Adaptive tab with live dashboard for all subsystems - Server: parses adaptive_json/graph_json/planner_json/noise_json events
This commit is contained in:
1 parent
da136453d3
commit
7fd79e4ebc
11 files changed
+4650
-190
No files matched your search
+47
-2
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
/**
|
||||
* NeuroSploit v4.4.0 — web console backend.
|
||||
* NeuroSploit v4.4.1 — web console backend.
|
||||
*
|
||||
* Zero-dependency Node HTTP server that:
|
||||
* - serves the static SPA in ./public
|
||||
@@ -109,7 +109,7 @@ const BIN = findBinary();
|
||||
// string. This keeps the web UI and the CLI binary in lockstep: bump the crate,
|
||||
// rebuild, and the title/badge/UA all move together with no web edit. Falls back
|
||||
// to the package string only when the binary is missing.
|
||||
const FALLBACK_VERSION = '4.4.0';
|
||||
const FALLBACK_VERSION = '4.4.1';
|
||||
function binaryVersion() {
|
||||
if (!BIN) return FALLBACK_VERSION;
|
||||
try {
|
||||
@@ -1156,6 +1156,51 @@ function ingestLine(job, rawLine) {
|
||||
} catch { /* ignore malformed line */ }
|
||||
}
|
||||
|
||||
// Adaptive engine events
|
||||
const adaptJson = norm.match(/^adaptive_json:\s*(.+)$/);
|
||||
if (adaptJson) {
|
||||
try {
|
||||
const data = JSON.parse(adaptJson[1]);
|
||||
if (!job.adaptive) job.adaptive = { waf: null, stack: null, payloads: 0, blocked: 0, triggered: 0 };
|
||||
if (data.waf) job.adaptive.waf = data.waf;
|
||||
if (data.stack) job.adaptive.stack = data.stack;
|
||||
if (data.payloads !== undefined) job.adaptive.payloads = data.payloads;
|
||||
if (data.blocked !== undefined) job.adaptive.blocked = data.blocked;
|
||||
if (data.triggered !== undefined) job.adaptive.triggered = data.triggered;
|
||||
job.push({ type: 'adaptive', data });
|
||||
} catch { /* ignore malformed */ }
|
||||
}
|
||||
// Exploration graph events
|
||||
const graphJson = norm.match(/^graph_json:\s*(.+)$/);
|
||||
if (graphJson) {
|
||||
try {
|
||||
const data = JSON.parse(graphJson[1]);
|
||||
if (!job.graph) job.graph = { assets: 0, explored: 0, findings: 0, coverage: 0, hints: 0 };
|
||||
Object.assign(job.graph, data);
|
||||
job.push({ type: 'graph', data });
|
||||
} catch { /* ignore */ }
|
||||
}
|
||||
// Planner events
|
||||
const planJson = norm.match(/^planner_json:\s*(.+)$/);
|
||||
if (planJson) {
|
||||
try {
|
||||
const data = JSON.parse(planJson[1]);
|
||||
if (!job.planner) job.planner = { queued: 0, running: 0, done: 0, failed: 0 };
|
||||
Object.assign(job.planner, data);
|
||||
job.push({ type: 'planner', data });
|
||||
} catch { /* ignore */ }
|
||||
}
|
||||
// Noise governor events
|
||||
const noiseJson = norm.match(/^noise_json:\s*(.+)$/);
|
||||
if (noiseJson) {
|
||||
try {
|
||||
const data = JSON.parse(noiseJson[1]);
|
||||
if (!job.noise) job.noise = { requests: 0, cached: 0, throttled: 0, blocked: 0 };
|
||||
Object.assign(job.noise, data);
|
||||
job.push({ type: 'noise', data });
|
||||
} catch { /* ignore */ }
|
||||
}
|
||||
|
||||
const rep = line.match(/report:\s*(file:\/\/\S+)/);
|
||||
if (rep) job.reportUrl = rep[1];
|
||||
|
||||
|
||||
Reference in new issue
Block a user