{"id":19522360,"url":"https://github.com/hxsecurity/kafka-demo","last_synced_at":"2025-08-01T13:15:11.897Z","repository":{"id":104986744,"uuid":"490519943","full_name":"HXSecurity/kafka-demo","owner":"HXSecurity","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-17T10:06:35.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-26T00:47:23.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/HXSecurity.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":"2022-05-10T02:52:12.000Z","updated_at":"2022-05-10T09:13:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa4add09-0428-4a12-9aaf-c5aecb35ba33","html_url":"https://github.com/HXSecurity/kafka-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HXSecurity/kafka-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HXSecurity%2Fkafka-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HXSecurity%2Fkafka-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HXSecurity%2Fkafka-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HXSecurity%2Fkafka-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HXSecurity","download_url":"https://codeload.github.com/HXSecurity/kafka-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HXSecurity%2Fkafka-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268229948,"owners_count":24217019,"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-08-01T02:00:08.611Z","response_time":67,"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":"2024-11-11T00:38:37.494Z","updated_at":"2025-08-01T13:15:11.875Z","avatar_url":"https://github.com/HXSecurity.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafka demo\n\n## 探针下载\n\n到洞态网站 Add Agent 页面下载以下两个 agent 放到根目录下：\n\n1. 选择 go, 下载 `dongtai-go-agent-config.yaml`\n2. 选择 java, 下载 `dongtai-agent.jar`\n\n\n## 启动\n\n```\ndocker-compose up -d\n```\n\n## 漏洞触发\n\n命令执行\n\nJava 生产者 -\u003e Java 消费者\n\n* `Runtime.exec()`: http://localhost:8810/kafka/publish?message=whoami\n* `ProcessBuilder.start()`: http://localhost:8810/kafka/publish?message=whoami\u0026topic=addUserV3\n\nGo 生产者 -\u003e Java 消费者\n\n* `Runtime.exec()`: http://localhost:8811/kafka/publish?message=whoami\n* `ProcessBuilder.start()`: http://localhost:8811/kafka/publish?message=whoami\u0026topic=addUserV3\n\nWeb 页面\n\nhttp://127.0.0.1:8811/kafka\n\n\u003e 如果非本机访问靶场： 项目根目录执行 `sed -i \"s#127.0.0.1#服务实际地址#g\" golang/index.html`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxsecurity%2Fkafka-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhxsecurity%2Fkafka-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxsecurity%2Fkafka-demo/lists"}