{"id":31931070,"url":"https://github.com/acmo0/p4lantir","last_synced_at":"2026-02-25T16:32:35.695Z","repository":{"id":311584913,"uuid":"1044154002","full_name":"acmo0/p4lantir","owner":"acmo0","description":"Simple integrated proxy to perform Man-in-the-Middle over TCP","archived":false,"fork":false,"pushed_at":"2025-08-26T10:45:28.000Z","size":6280,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-28T18:02:51.499Z","etag":null,"topics":["mitm","mitm-attacks","mitmproxy","python-socket-server","python-tcp","python-threading","textual","textualize","tui"],"latest_commit_sha":null,"homepage":"","language":"Python","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/acmo0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.TXT","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,"zenodo":null}},"created_at":"2025-08-25T09:08:35.000Z","updated_at":"2025-11-20T08:49:40.000Z","dependencies_parsed_at":"2025-08-25T11:43:01.163Z","dependency_job_id":"977f2d7e-e368-4403-97b8-e89eb4766fd0","html_url":"https://github.com/acmo0/p4lantir","commit_stats":null,"previous_names":["acmo0/p4lantir"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/acmo0/p4lantir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2Fp4lantir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2Fp4lantir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2Fp4lantir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2Fp4lantir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acmo0","download_url":"https://codeload.github.com/acmo0/p4lantir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2Fp4lantir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29830155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"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":["mitm","mitm-attacks","mitmproxy","python-socket-server","python-tcp","python-threading","textual","textualize","tui"],"created_at":"2025-10-14T04:17:09.035Z","updated_at":"2026-02-25T16:32:35.678Z","avatar_url":"https://github.com/acmo0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# p4lantir\n\n![](https://raw.githubusercontent.com/acmo0/p4lantir/main/imgs/logo.svg)\n\n\n![PyPI - Version](https://img.shields.io/pypi/v/p4lantir?style=plastic)\n![PyPI - License](https://img.shields.io/pypi/l/p4lantir)\n![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Facmo0%2Fp4lantir%2Fmain%2Fpyproject.toml)\n\n\u003c/div\u003e\n\n***\n\n**p4lantir** is a simple tool to perform Man-in-the-Middle over TCP using ARP spoofing, allowing to intercept, drop, forward and see TCP flows.\n\nThis project is intended to be relatively simple, making simple future contributions for new features/bug fix.\n\n\u003e [!CAUTION]\n\u003e This ethical hacking project is intended for educational purposes and awareness training sessions only. I decline all responsability about the usage of this project.\n\n***\n\n## Screenshots\n\u003cdiv align=\"center\"\u003e\n\n![p4lantir-screen1](https://raw.githubusercontent.com/acmo0/p4lantir/main/imgs/screenshot-1.png)\n![p4lantir-screen2](https://raw.githubusercontent.com/acmo0/p4lantir/main/imgs/screenshot-2.png)\n![p4lantir-screen3](https://raw.githubusercontent.com/acmo0/p4lantir/main/imgs/screenshot-3.png)\n![p4lantir-screen4](https://raw.githubusercontent.com/acmo0/p4lantir/main/imgs/screenshot-4.png)\n\n\u003c/div\u003e\n\n## Installation\n- Install the system dependencies (arpspoof, iptables)\n- Create python virtual environnement\n- Install the package\n\nSetup instructions :\n- [Debian-based (Debian, Kali, Ubuntu,...)](#debian-based-systems)\n- [Archlinux](#archlinux)\n\n### Debian-based systems\n```bash\nsudo apt install dsniff iptables\n\npython3 -m venv venv\nsource venv/bin/activate\n\npip install p4lantir\n```\n\n### Archlinux\n```bash\npacman -S dsniff iptables\n\npython3 -m venv venv\nsource venv/bin/activate\n\npip install p4lantir\n```\n\n\u003e Note : the package can also be downloaded from the release and installed using the `.whl` file and `pip`.\n\n## Usage\n\u003e [!WARNING]\n\u003e You need to run the script as root due to arpspoof and iptables. You should open a shell as root, activate the venv and then use *p4lantir*.\n```\nusage: p4lantir [-h] --host-1 HOST_1 --host-2 HOST_2 [--gateway GATEWAY] -i INTERFACE -l LPORT [--pport PPORT] [--debug]\n\nMan-in-the-Middle over TCP terminal app.\n\noptions:\n  -h, --help            show this help message and exit\n  --host-1 HOST_1       First host to spoof, must be the host instanciating the connection\n  --host-2 HOST_2       Second host to spoof\n  --gateway GATEWAY     Gateway IP\n  -i, --interface INTERFACE\n                        Interface to perform arp spoofing\n  -l, --lport LPORT     Port to listen for MITM attack\n  --pport PPORT         Internal port used for proxy.\n  --debug               Enable debug mode.\n```\n\n### Examples\n#### Client/server in the same localhost\n\nLet say that a client at IP *C* connect to a remote server at IP *R*, both in the same LAN. You need to know the name of the interface that connects you this LAN (let call this *iface*. Then your command should look like :\n```bash\np4lantir --host-1 [replace with C] \\\n         --host-2 [replace with R] \\\n         -i [replace with iface] \\\n         -lport [server's listening port]\n```\n\n\u003e About the listening port, if you intend to intercept SMTP you may choose `25`, `80` for HTTP, and so on ...\n\n### Client/server on a different LAN\n\nIf the client is in the same LAN as you and the server is not in your LAN, then you have to add another parameter : the gateway IP. *p4lantir* will then spoof the gateway IP and open a connection to the server.\n```bash\np4lantir --host-1 [replace with C] \\\n         --host-2 [replace with R] \\\n         --gateway [replace with gw's IP]\n         -i [replace with iface] \\\n         -lport [server's listening port]\n```\n\n## Documentation\nThe source-code documentation is available [here](https://www.acmo0.org/p4lantir/)\n\n\n## Contributing\n**All contributions are welcome !**\n\nPlease see [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.\n\n## License\nThis project is under the GPL-v3 license, please see [LICENSE.TXT](./LICENSE.TXT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facmo0%2Fp4lantir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facmo0%2Fp4lantir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facmo0%2Fp4lantir/lists"}