UNPKG

pentest-mcp

Version:

NOT for educational use: An MCP server for Nmap and John the Ripper, for professional penetration testers. Supports stdio, HTTP, and SSE transports with OAuth 2.1 authentication.

45 lines (40 loc) 1.29 kB
// Basic type declarations for node-nmap declare module 'node-nmap' { // Define a basic structure for ScanData based on common nmap output // This might need refinement based on actual nmap output needed export interface Host { hostname: string | null; ip: string; mac: string | null; ports: Port[]; osNmap: string | null; // Add other properties as needed (e.g., uptime, distance) } export interface Port { portId: string; protocol: string; state: string; reason: string; service?: { name: string; product?: string; version?: string; extrainfo?: string; method?: string; conf?: string; cpe?: string; }; } export interface ScanData { [ipOrHostname: string]: Host; } // Type for the QuickScan class export class QuickScan { constructor(target: string, args?: string); on(event: 'complete', listener: (data: ScanData) => void): this; on(event: 'error', listener: (error: any) => void): this; startScan(): void; } // Add other exports from node-nmap if needed (e.g., NmapScan) // export class NmapScan { ... } }