{"id":21963658,"url":"https://github.com/infosecredd/expw","last_synced_at":"2025-03-22T21:14:21.423Z","repository":{"id":264428850,"uuid":"893352116","full_name":"InfoSecREDD/ExPW","owner":"InfoSecREDD","description":"Scans for Open Ports, then searches ExploitDB for PoC's on that service then rewrites them using OpenAI.","archived":false,"fork":false,"pushed_at":"2024-11-24T08:28:29.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T21:14:14.722Z","etag":null,"topics":["chatgpt","chatgpt4","exploit-development","exploitation","exploitdb","openai","proof-of-concept"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InfoSecREDD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-11-24T07:53:02.000Z","updated_at":"2024-11-24T08:28:32.000Z","dependencies_parsed_at":"2024-11-24T08:28:00.501Z","dependency_job_id":"5e7a54cc-97ac-43bf-ba6b-b945ea9c13bc","html_url":"https://github.com/InfoSecREDD/ExPW","commit_stats":null,"previous_names":["infosecredd/expw"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfoSecREDD%2FExPW","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfoSecREDD%2FExPW/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfoSecREDD%2FExPW/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfoSecREDD%2FExPW/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfoSecREDD","download_url":"https://codeload.github.com/InfoSecREDD/ExPW/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245020338,"owners_count":20548180,"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":["chatgpt","chatgpt4","exploit-development","exploitation","exploitdb","openai","proof-of-concept"],"created_at":"2024-11-29T11:26:57.153Z","updated_at":"2025-03-22T21:14:21.392Z","avatar_url":"https://github.com/InfoSecREDD.png","language":"Python","readme":"\n\n## **(Ex)ploitDB PoC Writer**\n\nThe (Ex)ploitDB PoC Writer is a powerful Python-based tool designed for security professionals and enthusiasts. It combines port scanning, exploit searching, and payload generation into a seamless workflow. Leveraging Nmap for network scanning, SearchSploit for exploit discovery, and OpenAI's GPT-4 for rewriting exploit code, this tool streamlines the process of identifying vulnerabilities and creating proof-of-concept (PoC) payloads.\n\n**Features**\n- **Port Scanning:** Efficiently scans specified ports on a target IP using TCP or UDP protocols.\n- **Exploit Searching:** Integrates with SearchSploit to find relevant exploits based on discovered services.\n- **Payload Generation:** Utilizes OpenAI's GPT-4 to rewrite and enhance exploit code for tailored testing.\n- **Payload Execution:** Executes generated payloads directly from the tool.\n- **Payload Saving:** Option to save generated payloads for future use.\n- **User-Friendly Interface:** Enhanced with Rich library for a visually appealing and interactive command-line experience.\n- **Environment Configuration:** Easily manage API keys and configurations using a `.env` file.\n\n**Installation**\n1. **Clone the Repository**\n   ```\n   git clone https://github.com/InfoSecREDD/ExPW.git\n   ```\n2. **Navigate to the Directory**\n   ```\n   cd ExPW\n   ```\n3. **Create a Virtual Environment (Optional but Recommended)**\n   ```\n   python3 -m venv venv\n   source venv/bin/activate\n   ```\n4. **Install Dependencies**\n   ```\n   pip3 install -r requirements.txt\n   ```\n5. **Configure Environment Variables**\n   - Create a `.env` file in the root directory.\n   - Add your OpenAI API key:\n     ```\n     OPENAI_API_KEY=your_openai_api_key_here\n     ```\n\n**Usage**\nRun the script using the following command structure:\n```\npython3 expw.py target_ip [--ports PORTS] [--protocol PROTOCOL] [--skipports SKIPPORTS]\n```\n\n**Arguments:**\n- `target_ip` : Target IP address to scan.\n\n**Options:**\n- `--ports` or `-p` : Specify port ranges or single ports to scan. Default is `1-1024`.\n  - Examples: `80`, `443`, `1-65535`\n- `--protocol` : Choose the protocol to scan (`tcp` or `udp`). Default is `tcp`.\n- `--skipports` or `-s` : Specify ports or port ranges to skip during scanning.\n  - Examples: `81`, `88-89`\n\n**Examples:**\n1. **Basic Port Scan on TCP Ports 1-1024**\n   ```\n   python3 expw.py 192.168.1.100\n   ```\n2. **Scan Specific Ports and Use UDP Protocol**\n   ```\n   python3 expw.py 192.168.1.100 --ports 53 161 --protocol udp\n   ```\n3. **Scan a Range of Ports and Skip Certain Ports**\n   ```\n   python3 expw.py 192.168.1.100 --ports 1-1024 --skipports 22 80-85\n   ```\n\n**Dependencies**\n- Python 3.6+\n- Nmap\n- SearchSploit\n- OpenAI Python Library\n- Rich\n- python-dotenv\n\n**Contributing**\nContributions are welcome! Please fork the repository and submit a pull request with your enhancements or bug fixes. Ensure that your code adheres to the project's coding standards and includes appropriate documentation.\n\n**License**\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n**Author**\nDeveloped by InfoSecREDD. For any inquiries or support, please contact via Github Issues.\n\n**Security Notice**\n**⚠️ WARNING:** Use this tool responsibly and only on systems you have explicit permission to test. Unauthorized scanning and exploitation can be illegal and unethical.\n\n**Disclaimer**\nThis tool is provided \"as is\" without any warranties. The developers are not liable for any misuse or damage caused by this tool.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfosecredd%2Fexpw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfosecredd%2Fexpw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfosecredd%2Fexpw/lists"}