{"id":23934465,"url":"https://github.com/ethanolivertroy/nmap-GPT","last_synced_at":"2025-09-11T17:32:05.370Z","repository":{"id":144608506,"uuid":"600489032","full_name":"ethanolivertroy/nmap-GPT","owner":"ethanolivertroy","description":"This tool helps new security professionals actively learn how to address security concerns associated with open ports on a network device by scanning the device using Nmap and then leveraging the OpenAI API to provide insight on the specific security considerations that should be made for each open port.","archived":false,"fork":false,"pushed_at":"2024-11-05T02:17:43.000Z","size":13,"stargazers_count":21,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-31T11:39:21.573Z","etag":null,"topics":["artificial-intelligence","cybersecurity","openai","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethanolivertroy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T16:48:50.000Z","updated_at":"2024-11-11T19:06:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f663a28-3339-4d20-9ff3-b02d922f7c77","html_url":"https://github.com/ethanolivertroy/nmap-GPT","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanolivertroy%2Fnmap-GPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanolivertroy%2Fnmap-GPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanolivertroy%2Fnmap-GPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanolivertroy%2Fnmap-GPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethanolivertroy","download_url":"https://codeload.github.com/ethanolivertroy/nmap-GPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232659037,"owners_count":18557020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","cybersecurity","openai","python"],"created_at":"2025-01-06T00:35:39.272Z","updated_at":"2025-09-11T17:32:05.349Z","avatar_url":"https://github.com/ethanolivertroy.png","language":"Python","funding_links":[],"categories":["资源列表"],"sub_categories":["项目"],"readme":"# NMAP-GPT (2025 Edition)\n\n![nmap-gpt](https://user-images.githubusercontent.com/63926014/221396066-0ace46a1-bb97-4fc0-825c-412f4e2dbc4d.png)\n\nThis tool helps security professionals actively learn how to address security concerns associated with open ports on a network device. It works by scanning the device using Nmap or RustScan and then leveraging the OpenAI API to provide insights on specific security considerations for each open port, including the latest vulnerability information as of 2025.\n\n## Features (2025 Edition)\n\n- **Modern OpenAI API**: Updated to use the latest OpenAI client library and models\n- **Enhanced Scanning**: Added advanced scanning options for more detailed vulnerability assessment\n- **RustScan Integration**: Optional use of RustScan for faster port discovery\n- **Comprehensive Reports**: Detailed reports with service version detection and OS fingerprinting\n- **Export Options**: Save results in JSON or CSV format for further analysis\n\n## Installation\n\n1. Install required dependencies:\n\n```bash\npip install python-nmap openai\n```\n\n2. For RustScan features, install RustScan:\n\n```bash\n# Using Cargo (Rust package manager)\ncargo install rustscan\n\n# Or using Docker\ndocker pull rustscan/rustscan:latest\n```\n\n3. Set your OpenAI API key:\n\n```bash\nexport OPENAI_API_KEY=\"your-api-key-here\"\n```\n\n## Usage\n\n### Basic Nmap Scan\n\n```bash\npython3 nmap-gpt.py example.com -p 80\n```\n\n### Advanced Nmap Scan with Version Detection\n\n```bash\npython3 nmap-gpt.py example.com -p 1-1000 --scan-type advanced --output results.json\n```\n\n### Using RustScan for Faster Port Discovery\n\n```bash\npython3 experimental/rustscan-ai.py example.com -p 1-1000 --nmap-follow --output results.json\n```\n\n## Command Options\n\n### Nmap-GPT Options\n\n```\n  host                  Host or IP address to scan\n  -p PORT, --port PORT  Port or port range to scan (default: '1-1024')\n  --output OUTPUT       Output file to save results (JSON or CSV)\n  --model MODEL         OpenAI model to use (default: 'gpt-4-turbo')\n  --scan-type {basic,advanced}\n                        Type of scan to perform (default: 'basic')\n```\n\n### RustScan-AI Options\n\n```\n  host                  Host or IP address to scan\n  -p PORT, --port PORT  Port or port range to scan (default: '1-1024')\n  --output OUTPUT       Output file to save results (JSON or CSV)\n  --model MODEL         OpenAI model to use (default: 'gpt-4-turbo')\n  --nmap-follow         Run nmap after RustScan for service detection\n  --ulimit ULIMIT       Set ulimit for RustScan (default: 5000)\n  --timeout TIMEOUT     Set timeout for RustScan in milliseconds (default: 1000)\n  --batch-size BATCH_SIZE\n                        Set batch size for RustScan (default: 500)\n```\n\n## Examples \n\n### Basic Port Scanning\n\n![Example of basic port scan](https://user-images.githubusercontent.com/63926014/218787405-c4fdd27d-06b6-44e6-ae97-174033dd2288.png)\n\n### Advanced Security Analysis\n\n![Example of advanced security analysis](https://user-images.githubusercontent.com/63926014/218797253-d5d01fed-e425-4379-9dfa-f29d862a82ec.png)\n\n### RustScan Integration\n\nThe experimental RustScan integration provides significantly faster port discovery:\n\n```bash\npython3 experimental/rustscan-ai.py example.com --nmap-follow\n```\n\nThis combines RustScan's fast port discovery with Nmap's detailed service detection, followed by OpenAI analysis of potential vulnerabilities.\n\n## Security Notes\n\n- This tool is intended for educational purposes and authorized security testing only\n- Always ensure you have permission to scan the target systems\n- The OpenAI analysis provides general security information but should not replace professional security assessments\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethanolivertroy%2Fnmap-GPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethanolivertroy%2Fnmap-GPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethanolivertroy%2Fnmap-GPT/lists"}