"""Nikto web server scanner tool"""
from typing import Dict, Any
def register_nikto_tool(mcp, kali_client):
"""Register the Nikto tool with the MCP server"""
@mcp.tool()
def nikto_scan(target: str, additional_args: str = "") -> Dict[str, Any]:
"""
Execute Nikto web server scanner.
Args:
target: The target URL or IP
additional_args: Additional Nikto arguments
Returns:
Scan results
"""
data = {
"target": target,
"additional_args": additional_args
}
return kali_client.safe_post("api/tools/nikto", data)