{"id":23773125,"url":"https://github.com/ctkqiang/keyloggerzghk","last_synced_at":"2026-01-26T18:02:15.935Z","repository":{"id":255853815,"uuid":"850292466","full_name":"ctkqiang/KeyloggerZGHK","owner":"ctkqiang","description":"这个仓库包含一个基础键盘记录器的 Python 脚本。键盘记录器是一种监控和记录用户在计算机上按键的监视软件。该脚本专门捕获键盘输入并通过 webhook URL 将记录的数据发送到远程服务器。","archived":false,"fork":false,"pushed_at":"2025-05-17T16:44:16.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T18:48:06.733Z","etag":null,"topics":["china","ctkqiang","cybersecurity","hacking","keylogger","security"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctkqiang.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-31T11:33:14.000Z","updated_at":"2025-05-17T16:44:20.000Z","dependencies_parsed_at":"2024-09-09T22:01:20.978Z","dependency_job_id":"1383e9ef-fa8c-4b35-b208-84236c5aff38","html_url":"https://github.com/ctkqiang/KeyloggerZGHK","commit_stats":null,"previous_names":["ctkqiang/keyloggerzghk"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ctkqiang/KeyloggerZGHK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2FKeyloggerZGHK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2FKeyloggerZGHK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2FKeyloggerZGHK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2FKeyloggerZGHK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctkqiang","download_url":"https://codeload.github.com/ctkqiang/KeyloggerZGHK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2FKeyloggerZGHK/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28784093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"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":["china","ctkqiang","cybersecurity","hacking","keylogger","security"],"created_at":"2025-01-01T05:35:29.062Z","updated_at":"2026-01-26T18:02:15.905Z","avatar_url":"https://github.com/ctkqiang.png","language":"Python","funding_links":["https://ko-fi.com/F1F5VCZJU","https://www.paypal.com/paypalme/ctkqiang"],"categories":[],"sub_categories":[],"readme":"# 键盘记录器说明文档\n\n## 概述\n\n这个仓库包含一个基础键盘记录器的 Python 脚本。键盘记录器是一种监控和记录用户在计算机上按键的监视软件。该脚本专门捕获键盘输入并通过 webhook URL 将记录的数据发送到远程服务器。\n\n---\n\n## 法律风险与免责声明（务必阅读）\n\n```\n\n【深求科技教育用途软件使用免责声明与法律风险声明】\n\n一、法律依据：\n\n本软件适用下列中华人民共和国法律法规及司法解释，用户必须全面遵守：\n\n1. 《中华人民共和国网络安全法》（2017 年 6 月 1 日实施）\n2. 《中华人民共和国刑法》（2015 年修订，2020 年修订版）\n3. 《个人信息保护法》（2021 年 11 月 1 日起施行）\n4. 《计算机信息网络国际联网安全保护管理办法》（工信部令第 36 号，2000 年）\n5. 《网络安全等级保护条例》（2019 年 9 月 1 日起施行）\n6. 最高人民法院《审理危害计算机信息系统安全刑事案件具体应用法律若干问题的解释》（法释〔2011〕7 号）\n\n二、用户责任与行为规范：\n\n1. 用户仅限将本软件用于合法的教育研究、技术学习及环境测试，严禁用于任何非法入侵、破坏、数据窃取、恶意攻击等违法犯罪行为。\n2. 违反《刑法》第二百八十五条——非法侵入计算机信息系统的，处三年以下有期徒刑或者拘役，并处或者单处罚金；情节严重的，处三年以上七年以下有期徒刑。\n3. 违反《刑法》第二百八十六条——制作、传播计算机病毒等破坏性程序，处三年以下有期徒刑、拘役或者罚金；情节严重的，处三年以上七年以下有期徒刑。\n4. 违反《刑法》第二百八十七条——非法获取、出售或者提供个人信息，情节严重者可判处五年以下有期徒刑或拘役，并处罚金；情节特别严重的，处五年以上有期徒刑。\n5. 违反《个人信息保护法》第六十七条，未采取必要措施导致个人信息泄露，视情节严重，最高可处以 500 万元人民币罚款。\n6. 违反《网络安全法》第四十一条规定，擅自提供网络产品、服务存在安全隐患，责任单位依法承担法律责任。\n\n三、免责声明：\n\n1. 本软件仅供合法教育、技术研究及测试使用，开发者不承担任何因用户使用本软件导致的直接或间接损失，包括但不限于数据丢失、系统损坏、经济损失及法律责任。\n2. 用户使用本软件即视为已充分理解本声明及法律风险，自愿承担所有责任。\n3. 使用本软件请确保已获得目标系统的合法授权，严禁对无授权系统进行任何形式的攻击或测试。\n\n四、风险提示：\n\n1. 网络安全系全社会共同责任，任何非法攻击行为不仅违背法律，更破坏互联网生态环境。\n2. 任何违法行为一经发现，将依法追究刑事责任，警方和司法机关可通过技术手段追踪定位违法者。\n3. 任何软件滥用后果自负，开发者保留追究相关侵权责任的权利。\n\n五、争议解决：\n\n因使用本软件发生的任何争议，均适用中华人民共和国法律，由软件开发者所在地人民法院管辖。\n\n六、特别声明：\n\n请用户务必慎重下载及使用网络软件，避免因轻率行为导致不可挽回的法律后果。\n\n网络安全不是儿戏，技术学习需守规矩，愿你我共同维护绿色互联网环境。\n\n```\n\n\n## 功能特点\n\n- **按键捕获**：监听并记录用户按下的每个按键。\n- **异步数据传输**：异步发送记录的按键数据到指定服务器。\n- **系统信息**：在日志中包含机器名称、IP 地址和时间戳。\n\n## 依赖项\n\n该脚本依赖于几个 Python 库。如果缺少任何这些库，将引发`ImportError`：\n\n- `base64`：用于 base64 格式的数据编码和解码。\n- `json`：用于 Python 对象和 JSON 格式之间的转换。\n- `asyncio`：用于异步编程和非阻塞操作。\n- `socket`：用于网络相关操作，如获取 IP 地址。\n- `requests`：用于向远程服务器发送 HTTP 请求。\n- `logging`：用于记录信息和错误。\n- `datetime`：用于事件时间戳。\n- `pynput`：用于捕获键盘输入。\n\n请确保在您的 Python 环境中安装这些依赖项。\n\n## 设置\n\n1. **安装依赖项**\n\n   使用 pip 安装所需库：\n\n   ```bash\n   pip install base64 json asyncio socket requests logging pynput\n   ```\n\n2. **配置 Webhook URL**\n\n   脚本使用 base64 编码的 webhook URL 发送按键记录。将 base64 编码的 URL 替换为您自己的 webhook 端点。根据需要解码和重新编码 URL 以保持混淆。\n\n3. **更新 Webhook URL**\n\n   在脚本中，找到`__init__`方法中的`self.url`赋值，并用您解码的 webhook URL 更新它：\n\n   ```python\n   self.url = base64.b64decode(\"您的BASE64编码URL\").decode(\"utf-8\")\n   ```\n\n## 使用方法\n\n1. **运行脚本**\n\n   执行脚本开始记录按键：\n\n   ```bash\n   python keylogger.py\n   ```\n\n2. **日志记录**\n\n   脚本将开始捕获按键并记录它们。当按键数量超过 20 个时，它会将记录的按键批量发送到远程服务器。\n\n3. **查看日志**\n\n   日志会发送到指定的 webhook URL。检查在此 URL 配置的服务器以查看捕获的按键和其他信息。\n\n# 如何构建 exe？\n\n```bash\npyinstaller --onefile --name {插入名称} --noconsole run.py\n```\n\n成功执行后：\n![IMG_20240907_204035](https://github.com/user-attachments/assets/7418c025-f408-4e46-bd1f-9b901f66bd96)\n\n## 安全注意事项\n\n- 确保 webhook URL 保密和安全。\n- 在部署键盘记录器之前获得用户同意。\n- 了解并遵守有关使用键盘记录软件的法律法规。\n\n## 许可证\n\n本项目采用 **木兰宽松许可证 (Mulan PSL)** 进行许可。  \n有关详细信息，请参阅 [LICENSE](LICENSE) 文件。  \n（魔法契约要保管好哟~）\n\n[![License: Mulan PSL v2](https://img.shields.io/badge/License-Mulan%20PSL%202-blue.svg)](http://license.coscl.org.cn/MulanPSL2)\n\n## 🌟 开源项目赞助计划\n\n### 用捐赠助力发展\n\n感谢您使用本项目！您的支持是开源持续发展的核心动力。  \n每一份捐赠都将直接用于：  \n✅ 服务器与基础设施维护（魔法城堡的维修费哟~）  \n✅ 新功能开发与版本迭代（魔法技能树要升级哒~）  \n✅ 文档优化与社区建设（魔法图书馆要扩建呀~）\n\n点滴支持皆能汇聚成海，让我们共同打造更强大的开源工具！  \n（小仙子们在向你比心哟~）\n\n---\n\n### 🌐 全球捐赠通道\n\n#### 国内用户\n\n\u003cdiv align=\"center\" style=\"margin: 40px 0\"\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\" width=\"300\"\u003e\n\u003cimg src=\"https://github.com/ctkqiang/ctkqiang/blob/main/assets/IMG_9863.jpg?raw=true\" width=\"200\" /\u003e\n\u003cbr /\u003e\n\u003cstrong\u003e🔵 支付宝\u003c/strong\u003e（小企鹅在收金币哟~）\n\u003c/td\u003e\n\u003ctd align=\"center\" width=\"300\"\u003e\n\u003cimg src=\"https://github.com/ctkqiang/ctkqiang/blob/main/assets/IMG_9859.JPG?raw=true\" width=\"200\" /\u003e\n\u003cbr /\u003e\n\u003cstrong\u003e🟢 微信支付\u003c/strong\u003e（小绿龙在收金币哟~）\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\n#### 国际用户\n\n\u003cdiv align=\"center\" style=\"margin: 40px 0\"\u003e\n  \u003ca href=\"https://qr.alipay.com/fkx19369scgxdrkv8mxso92\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Alipay-全球支付-00A1E9?style=flat-square\u0026logo=alipay\u0026logoColor=white\u0026labelColor=008CD7\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://ko-fi.com/F1F5VCZJU\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Ko--fi-买杯咖啡-FF5E5B?style=flat-square\u0026logo=ko-fi\u0026logoColor=white\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://www.paypal.com/paypalme/ctkqiang\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PayPal-安全支付-00457C?style=flat-square\u0026logo=paypal\u0026logoColor=white\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://donate.stripe.com/00gg2nefu6TK1LqeUY\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Stripe-企业级支付-626CD9?style=flat-square\u0026logo=stripe\u0026logoColor=white\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n### 📌 开发者社交图谱\n\n#### 技术交流\n\n\u003cdiv align=\"center\" style=\"margin: 20px 0\"\u003e\n  \u003ca href=\"https://github.com/ctkqiang\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/GitHub-开源仓库-181717?style=for-the-badge\u0026logo=github\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://stackoverflow.com/users/10758321/%e9%92%9f%e6%99%ba%e5%bc%ba\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Stack_Overflow-技术问答-F58025?style=for-the-badge\u0026logo=stackoverflow\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://www.linkedin.com/in/ctkqiang/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/LinkedIn-职业网络-0A66C2?style=for-the-badge\u0026logo=linkedin\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n#### 社交互动\n\n\u003cdiv align=\"center\" style=\"margin: 20px 0\"\u003e\n  \u003ca href=\"https://www.instagram.com/ctkqiang\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Instagram-生活瞬间-E4405F?style=for-the-badge\u0026logo=instagram\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://twitch.tv/ctkqiang\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Twitch-技术直播-9146FF?style=for-the-badge\u0026logo=twitch\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://github.com/ctkqiang/ctkqiang/blob/main/assets/IMG_9245.JPG?raw=true\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/微信公众号-钟智强-07C160?style=for-the-badge\u0026logo=wechat\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n致极客与未来的你\n\n\u003e \"世界由代码驱动，安全靠你我守护。\"\n\n无论你是网络安全研究员、CTF 挑战者、自由极客，还是热爱数学与工程的探索者，这个项目都向你敞开怀抱。\n欢迎你 fork、魔改、重构、注入灵感，它是工具，也是信仰。\n\n但请铭记心底：\n\n\u003e **技术本无善恶，使用才有底线。**\n\u003e 愿你在这个开源项目中，找到属于自己的价值与乐趣。\n\n\u003e 享受黑客精神，享受学习之旅！—— 你最贴心的代码姐姐 💖\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctkqiang%2Fkeyloggerzghk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctkqiang%2Fkeyloggerzghk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctkqiang%2Fkeyloggerzghk/lists"}