Skip to content

Hydra and http improvements - #38

Open
beyefendi wants to merge 5 commits into
Wh0am123:mainfrom
beyefendi:hydra-and-http-improvements
Open

Hydra and http improvements#38
beyefendi wants to merge 5 commits into
Wh0am123:mainfrom
beyefendi:hydra-and-http-improvements

Conversation

@beyefendi

Copy link
Copy Markdown
Contributor

Summary

  • Add explicit path and port parameters to the Hydra HTTP form endpoint and MCP client tool, avoiding fragile additional_args usage.
  • Improve input validation and shell quoting for Hydra to make form-based attacks (e.g. http-post-form) safer and easier to use.
  • Tweak default Nmap scan type and small quality-of-life fixes (e.g. .gitignore and command string cleanups).

Details

  • Server: hydra endpoint now accepts path and port, validates path for form-based services, and uses shlex.quote for user-provided values.
  • Client: hydra_attack MCP tool exposes path and port in the function signature and forwards them to the server.
  • Nmap: default scan type updated from -sV to -sS in the MCP client.

Test plan

  • Run Hydra HTTP form attack via MCP using path and port arguments (no manual quoting in additional_args).
  • Confirm error response when path is omitted for http-post-form / http-get-form style services.
  • Run Nmap scan via MCP and verify the default scan flags in the executed command.

@beyefendi

Copy link
Copy Markdown
Contributor Author

@Wh0am123 latest commits are breaking this PR. I resolved conflicts this time.

monkeycode-ai Bot pushed a commit to 2H-K/MCP-Kali-Server that referenced this pull request Apr 20, 2026
Co-authored-by: monkeycode-ai <monkeycode-ai@chaitin.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