Skip to main content
Glama
MIT License
25
89
  • Linux
  • Apple
node-nmap.d.ts1.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 { ... } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DMontgomery40/pentest-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server