{"id":17457770,"url":"https://github.com/vxfemboy/ghostport","last_synced_at":"2026-05-18T01:13:03.509Z","repository":{"id":258244636,"uuid":"801375414","full_name":"vxfemboy/ghostport","owner":"vxfemboy","description":" A high-performance port spoofing tool built in Rust. Confuse port scanners with dynamic service emulation across all ports. Features customizable signatures, efficient async handling, and easy traffic redirection.","archived":false,"fork":false,"pushed_at":"2024-10-27T00:08:38.000Z","size":40427,"stargazers_count":430,"open_issues_count":0,"forks_count":26,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-29T23:10:37.002Z","etag":null,"topics":["firewall","portspoof","rust","server"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vxfemboy.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-05-16T05:39:17.000Z","updated_at":"2025-07-17T19:14:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"4afd887b-77aa-44ee-9438-26613a36f34f","html_url":"https://github.com/vxfemboy/ghostport","commit_stats":null,"previous_names":["vxfemboy/ghostport","jmp-0xff/ghostport"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vxfemboy/ghostport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxfemboy%2Fghostport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxfemboy%2Fghostport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxfemboy%2Fghostport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxfemboy%2Fghostport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vxfemboy","download_url":"https://codeload.github.com/vxfemboy/ghostport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxfemboy%2Fghostport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["firewall","portspoof","rust","server"],"created_at":"2024-10-18T03:01:37.644Z","updated_at":"2026-05-18T01:13:03.488Z","avatar_url":"https://github.com/vxfemboy.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"[![Rust](https://github.com/vxfemboy/ghostport/actions/workflows/rust.yml/badge.svg)](https://github.com/vxfemboy/ghostport/actions/workflows/rust.yml)\n# Ghostport\n\nGhostport is a sophisticated port spoofing tool designed to confuse and mislead port scanners. It's a Rust implementation inspired by the concept of portspoof, offering enhanced performance and flexibility.\n\n![Ghostport Demo](/contrib/ghostport_demo.gif)\n\n## Features\n\n- **Dynamic Port Emulation**: Responds to port scans with a variety of convincing service signatures.\n- **Customizable Signatures**: Easily add or modify service signatures through a simple text file.\n- **High Performance**: Built with Rust and Tokio for efficient, asynchronous handling of connections.\n- **Flexible Logging**: Offers debug, verbose, and quiet logging modes for different use cases.\n- **Easy to Use**: Simple command-line interface with sensible defaults.\n\n## Installation\n\n```bash\ngit clone https://github.com/vxfemboy/ghostport.git\ncd ghostport\ncargo build --release\n```\n\n## Usage\n\nBasic usage:\n\n```bash\n./target/release/ghostport -s signatures.txt\n```\n\nor you can run with cargo \n```bash\ngit clone https://github.com/vxfemboy/ghostport.git\ncd ghostport \ncargo run -- -s signatures.txt\n```\n\nThis will start Ghostport on the default address (127.0.0.1:8888) using the signatures from `signatures.txt`.\n\n### Command-line Options\n\n- `-s, --signatures \u003cFILE\u003e`: Path to the signatures file (default: \"signatures\")\n- `-l, --listen \u003cADDRESS\u003e`: Address to listen on (default: \"127.0.0.1:8888\")\n- `-d, --debug`: Enable debug logging\n- `-v, --verbose`: Enable verbose logging\n- `-q, --quiet`: Enable quiet logging\n- `-V, --version`: Print version information\n\n### Examples\n\nRun with custom address and verbose logging:\n\n```bash\n./target/release/ghostport -s signatures.txt -l 0.0.0.0:8888 -v\n```\n\nRun with debug logging:\n\n```bash\n./target/release/ghostport -s signatures.txt -l 0.0.0.0:8888 -d\n```\n\n## Signature File Format\n\nThe signature file should contain one signature per line. Signatures can be raw text or regex patterns. For example:\n\n```\nHTTP/1.1 200 OK\\r\\nServer: Apache/2.4.41 (Unix)\\r\\n\nSSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.1\n220 (vsFTPd 3.0.3)\n```\nfor more examples, see the [signatures](signatures.txt) file.\n\n## Routing Traffic to Ghostport\n\nTo redirect all incoming TCP traffic to Ghostport, you can use iptables. This will allow Ghostport to respond to connections on any port, effectively spoofing all services:\n\n```bash\n\nINTERFACE=\"eth0\" # change to your network interface\n\niptables -t nat -A PREROUTING -i $INTERFACE -p tcp -m tcp -m multiport --dports 1:65535 -j REDIRECT --to-ports 8888\n\n```\n\nThis command will redirect all TCP traffic on ports 1-65535 to port 8888, where Ghostport is listening. Make sure to replace \"eth0\" with your actual network interface.\n\n\u003e [!NOTE]\n\u003e This requires root privileges and will affect all incoming TCP connections on the specified interface. Use with caution, especially on production systems.\n\nTo remove this rule:\n\n```bash\n\niptables -t nat -D PREROUTING -i $INTERFACE -p tcp -m tcp -m multiport --dports 1:65535 -j REDIRECT --to-ports 8888\n\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the GNU License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Inspired by the original [portspoof project](https://github.com/drk1wi/portspoof)\n- Built with Rust and Tokio\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvxfemboy%2Fghostport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvxfemboy%2Fghostport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvxfemboy%2Fghostport/lists"}