Skip to content

Add Windows compatibility fixes and web UI - #195

Open
BobLazar-cyber wants to merge 1 commit into
0x4m4:masterfrom
BobLazar-cyber:windows-compat-and-ui
Open

Add Windows compatibility fixes and web UI#195
BobLazar-cyber wants to merge 1 commit into
0x4m4:masterfrom
BobLazar-cyber:windows-compat-and-ui

Conversation

@BobLazar-cyber

Copy link
Copy Markdown

Summary

  • Make mitmproxy import optional so the server starts when it's not installed
  • Replace hardcoded /tmp paths in PythonEnvironmentManager and FileOperationsManager with tempfile.gettempdir() for Windows support
  • Add CORS headers (flask_cors with an after_request fallback) so a browser-based UI on another port can reach the API
  • Add ui.html: a single-file dark-themed web UI for the API

Why

The server hardcoded POSIX /tmp paths and required mitmproxy, so it crashed on startup on Windows. These changes let it run on Windows and add a browser UI covering dashboard, telemetry, processes, AI analysis, smart scan, attack chains, a 30+ tool runner, bug bounty & CTF workflows, payload generation, command exec, and cache management.

Test plan

  • python hexstrike_server.py starts on Windows without mitmproxy
  • GET /health returns healthy
  • Open ui.html (served on :9000) and confirm it connects to the API on :8888

🤖 Generated with Claude Code

- Make mitmproxy import optional (graceful fallback when not installed)
- Fix hardcoded /tmp paths in PythonEnvironmentManager and
  FileOperationsManager to use tempfile.gettempdir() for Windows support
- Add CORS headers via flask_cors (or fallback after_request hook) so
  the UI can reach the API from a different port
- Add ui.html: single-file dark hacker-themed web UI that connects to
  the Flask API on port 8888, featuring dashboard, telemetry, process
  manager, AI target analysis, smart scan, attack chain, tool runner
  (30+ tools with forms), bug bounty workflows, CTF tools, payload
  generator, command exec, and cache management panels

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant