{"id":31120265,"url":"https://github.com/chocapikk/docker-misconfig-cli","last_synced_at":"2025-09-17T14:58:38.574Z","repository":{"id":291280061,"uuid":"977128228","full_name":"Chocapikk/docker-misconfig-cli","owner":"Chocapikk","description":"An interactive Docker client that lets you list containers and run commands via either a Unix socket or a remote HTTP(S) endpoint.","archived":false,"fork":false,"pushed_at":"2025-05-03T15:19:12.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T16:29:45.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Chocapikk.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,"zenodo":null}},"created_at":"2025-05-03T13:43:45.000Z","updated_at":"2025-05-03T15:53:25.000Z","dependencies_parsed_at":"2025-05-03T16:29:51.874Z","dependency_job_id":"7debb451-880b-4049-bd21-556e92d2123e","html_url":"https://github.com/Chocapikk/docker-misconfig-cli","commit_stats":null,"previous_names":["chocapikk/docker-misconfig-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chocapikk/docker-misconfig-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocapikk%2Fdocker-misconfig-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocapikk%2Fdocker-misconfig-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocapikk%2Fdocker-misconfig-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocapikk%2Fdocker-misconfig-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chocapikk","download_url":"https://codeload.github.com/Chocapikk/docker-misconfig-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocapikk%2Fdocker-misconfig-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275614866,"owners_count":25496807,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-17T14:58:36.329Z","updated_at":"2025-09-17T14:58:38.568Z","avatar_url":"https://github.com/Chocapikk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Misconfig CLI\n\nAn interactive Docker client that lets you list containers and run commands via either a Unix socket or a remote HTTP(S) endpoint.  \n\n\u003e **Note**: This tool was inspired by a CTF challenge where a Docker socket was exposed inside a container. It is intended **solely for educational purposes**, never run this against systems you don't own or have explicit permission to test.\n\n---\n\n## Features\n\n- Connect via:\n  - **Unix socket** (e.g. `/var/run/docker.sock`)\n  - **HTTP(S)** API (e.g. `http://host:2375` or `https://host:2376`)\n- Interactive shell with:\n  - **Prompt session** (history \u0026 autocomplete)\n  - **Rich**-formatted container table and colored output  \n- Easy install \u0026 uninstall via `pipx`\n\n---\n\n## Shodan Dork\n\nIf you're curious how attackers find exposed Docker APIs on the Internet, a common Shodan query is:\n\n```\n\nport:2375 product:\"Docker\"\n\n```\n\nBe aware: despite best practices, unprotected Docker sockets **still** show up in public scans.\n\n---\n\n## Installation\n\n_First, clone or download this repository to your local machine, or install directly from GitHub._\n\n1. **Install with pipx** (recommended isolation):\n\n   ```bash\n   pipx install git+https://github.com/Chocapikk/docker-misconfig-cli\n   ```\n\n2. **Or install with pip**:\n\n   ```bash\n   git clone https://github.com/Chocapikk/docker-misconfig-cli\n   cd docker-misconfig-cli\n   pip install .\n   ```\n\n---\n\n## Usage\n\n### Via Unix socket\n\n```bash\ndocker-misconfig --socket /var/run/docker.sock\n```\n\n### Via HTTP(S) endpoint\n\n```bash\ndocker-misconfig --url http://192.168.1.100:2375\n# or with TLS\ndocker-misconfig --url https://docker.example.com:2376\n```\n\nOnce started:\n\n1. You'll see a table of running containers.\n2. Enter the **index** of the container you want to target.\n3. At the `CONTAINER_ID\u003e ` prompt, type any Docker command (e.g. `ls /`, `cat /etc/hosts`, `exit`, etc.).\n4. Type `exit` or `quit` to leave the shell.\n\n---\n\n## Security Disclaimer\n\n* **DO NOT** run this tool against systems you do not control or have explicit authorization to test.\n* Exposing the Docker socket (whether by bind-mount or open HTTP port) grants full control over the host, this is **extremely** dangerous in production.\n* Use only in **controlled** lab or CTF environments to learn about Docker security.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocapikk%2Fdocker-misconfig-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchocapikk%2Fdocker-misconfig-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocapikk%2Fdocker-misconfig-cli/lists"}