From 97153aa861ab8f8612508b332bc93ea6d91029b8 Mon Sep 17 00:00:00 2001 From: Debian Date: Mon, 5 Jan 2026 09:55:56 +0000 Subject: [PATCH] Fix username not passed to script deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Include username and port in scan_complete WebSocket event - Pass username from scan data when deploying scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/app.py | 2 ++ frontend/src/components/DiscoveryResults.jsx | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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