diff --git a/backend/app.py b/backend/app.py index 7d2579c..2b04167 100644 --- a/backend/app.py +++ b/backend/app.py @@ -109,6 +109,8 @@ def start_scan(): socketio.emit("scan_complete", { "scan_id": result.scan_id, "hostname": hostname, + "username": result.username, + "port": result.port, "connected": result.connected, "error": result.error, }) diff --git a/frontend/src/components/DiscoveryResults.jsx b/frontend/src/components/DiscoveryResults.jsx index 039d2e1..4c1faac 100644 --- a/frontend/src/components/DiscoveryResults.jsx +++ b/frontend/src/components/DiscoveryResults.jsx @@ -85,7 +85,10 @@ export default function DiscoveryResults({ scanId, scan, analysis, devMode, onCo monitorId, scan.hostname, pushMetric, - { port: scan.port || 22 } + { + port: scan.port || 22, + username: scan.username || 'root' + } ); // Update the result with new deployment status