{"id":17982415,"url":"https://github.com/nekocode/wx_sniffer","last_synced_at":"2025-10-11T22:08:26.782Z","repository":{"id":98386011,"uuid":"41578324","full_name":"nekocode/wx_sniffer","owner":"nekocode","description":"抓取微信公众号文章阅读数、点赞数","archived":false,"fork":false,"pushed_at":"2015-11-25T02:00:20.000Z","size":1217,"stargazers_count":74,"open_issues_count":4,"forks_count":41,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-06T09:46:34.414Z","etag":null,"topics":["tool"],"latest_commit_sha":null,"homepage":"","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/nekocode.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}},"created_at":"2015-08-29T02:50:35.000Z","updated_at":"2024-08-28T01:44:57.000Z","dependencies_parsed_at":"2023-03-13T16:01:44.424Z","dependency_job_id":null,"html_url":"https://github.com/nekocode/wx_sniffer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nekocode/wx_sniffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fwx_sniffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fwx_sniffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fwx_sniffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fwx_sniffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekocode","download_url":"https://codeload.github.com/nekocode/wx_sniffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fwx_sniffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009039,"owners_count":26084547,"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-10-11T02:00:06.511Z","response_time":55,"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":["tool"],"created_at":"2024-10-29T18:14:11.585Z","updated_at":"2025-10-11T22:08:26.763Z","avatar_url":"https://github.com/nekocode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#微信公众号 uin，key 捕获脚本\r\n\r\n## New Solution\r\n**使用 Android System Exploit 配合虚拟机抓取，且能拓展到其他一些用处上。** \r\n\r\n详情请看：[**wechat_webview_launch.md**](wechat_webview_launch.md)\r\n\r\n\r\n## Old Solution\r\n环境：`Windows`, `Python 2.7`, `Android SDK`, `Winpcap`, `dpkt`, `httplib2`\r\n\r\n**执行步骤：**\r\n- 创建并打开（多个）Android虚拟机\r\n- 修改模拟点击脚本 `simulate.py`   \r\n\r\n``` python\r\nprint '\\n======================================='\r\nprint 'start simulate(use monkeyrunner)'\r\nprint '=======================================\\n'\r\ndevice = MonkeyRunner.waitForConnection(5, 'emulator-' + str(sys.argv[1]))\r\ndevice.touch(234, 342, MonkeyDevice.DOWN_AND_UP)\r\ntime.sleep(5)\r\ndevice.press('KEYCODE_BACK', MonkeyDevice.DOWN_AND_UP)\r\ntime.sleep(5)\r\ndevice.touch(234, 586, MonkeyDevice.DOWN_AND_UP)\r\ntime.sleep(5)\r\ndevice.press('KEYCODE_BACK', MonkeyDevice.DOWN_AND_UP)\r\nprint '\\n======================================='\r\nprint 'simulate ended'\r\nprint '=======================================\\n'\r\n```\r\n\r\n- 修改 `wxsniffer.py` 脚本主逻辑   \r\n\r\n\r\n``` python\r\nsniffer = WxSniffer()\r\nsniffer.start_winpcap()\r\nwhile True:\r\n\t# 5554为虚拟机设备号\r\n\tsniffer.simulate_open_wxarticle(5554)\r\n\ttime.sleep(5)\r\n\tprint sniffer.get_wxarticle_state('MzAwNTA2NjE2OA==', '205059655', '9fb1b7d533d39b65dde7c1d9eb9ab9c7', '1')\r\n\ttime.sleep(30)\r\n```\r\n\r\n- 执行脚本 `wxsniffer.py`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekocode%2Fwx_sniffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekocode%2Fwx_sniffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekocode%2Fwx_sniffer/lists"}