{"id":15905688,"url":"https://github.com/qiwihui/tnwz","last_synced_at":"2025-08-14T14:31:35.446Z","repository":{"id":81282601,"uuid":"118330073","full_name":"qiwihui/tnwz","owner":"qiwihui","description":"头脑王者开房答题抓题库","archived":false,"fork":false,"pushed_at":"2018-01-24T08:07:11.000Z","size":1197,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-11-04T09:28:46.834Z","etag":null,"topics":["mitmproxy"],"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/qiwihui.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":"2018-01-21T11:50:17.000Z","updated_at":"2022-02-25T02:23:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f40e2ed5-2acc-43bc-8476-78f2dcce1f44","html_url":"https://github.com/qiwihui/tnwz","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"3251c37f66ede5653a8a63dbf2c1b86a5b9d2ed4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwihui%2Ftnwz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwihui%2Ftnwz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwihui%2Ftnwz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiwihui%2Ftnwz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qiwihui","download_url":"https://codeload.github.com/qiwihui/tnwz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229836289,"owners_count":18131767,"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","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":["mitmproxy"],"created_at":"2024-10-06T13:06:21.409Z","updated_at":"2024-12-15T15:26:13.805Z","avatar_url":"https://github.com/qiwihui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 头脑王者\n\n免责声明：仅供研究使用，请勿进行非法用途。\n\n头脑王者开房答题抓题库, 参考项目 [lyh2668/TNWZ](https://github.com/lyh2668/TNWZ)，实现\nPyhton版本的头脑王者抓题目，暂时不支持排位自动答题。\n\n## 环境要求\n\n- Python 3+\n- mongodb\n\n## 安装和使用\n\n以下过程为 \bmacOS \b和 iPhone \b下，其他环境为未测试。\n\n0. 安装环境\n\n```sh\n# mongodb\nbrew install mongodb\nmongod\n\n# clone项目\ngit clone https://github.com/qiwihui/tnwz.git\ncd tnwz\n\n# 安装依赖\npip3 install -r requirements.txt\n\n# 填写两个用户的uid和token\n\n```\n\n1. 先获取题库（可直接导入本项目题库）\n\n```sh\n# 模拟开房对战\npython3 tnwz.py\n\n# 导出题库\n# mongoexport --db tnwzDB --collection Quizzes --out Quizzes.json\n\n# 或者使用项目自带题库\nmongoimport --db tnwzDB --collection Quizzes --file Quizzes_20180121.json\n```\n\n2. 答题\n\n**需要手机和电脑上安装并信任证书**\n\n```sh\nmitmweb -s tnwz_hack.py --web-iface 0.0.0.0 --port 8001\n```\n\n手机上设置代理为\b电脑的ip和8001端口，同时进入头脑王者答题时要出现登录过程才可以，否则会报错。\n\n答题时随机选择答案即可，程序会修改为题库中正确的答案。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiwihui%2Ftnwz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqiwihui%2Ftnwz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiwihui%2Ftnwz/lists"}