Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
增加 猜画小歌辅助 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuweiyou authored Jul 24, 2018
1 parent 8e67e1a commit bc2f543
Show file tree
Hide file tree
Showing 197 changed files with 47 additions and 1 deletion.
27 changes: 26 additions & 1 deletion 猜画小歌/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# 猜画小歌

已解密源码,暂时没空搞辅助。有兴趣的可以自行参考 `src/` 目录的源码,配合抓包工具做辅助。
## 目录

## game

游戏源码,自行研究

## helper

辅助源码,目前仅支持把每一题变成线

### 准备

- Node.js 9.x 以上
- 安装依赖 `npm i`

### 配置

执行 `npm run ca` 生成 RootCA,将生成的证书安装到手机上,并在手机上设置代理 IP(电脑的局域网 IP) 和 端口(8001)

证书配置遇到困难可以看[这里](http://anyproxy.io/cn/#%E8%AF%81%E4%B9%A6%E9%85%8D%E7%BD%AE)

一切都配置好之后,**完全退出小程序进程**,执行 `npm start`,再重新进入小程序

### 截图

![image](https://user-images.githubusercontent.com/8413791/43114825-76ffffb4-8f33-11e8-87ef-2ae4e9b3e601.png)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions 猜画小歌/helper/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
* beforeSendRequest(requestDetail) {},
* beforeSendResponse(requestDetail, responseDetail) {
if (requestDetail.url.indexOf('/endlessGame/start') !== -1) {
const response = Object.assign({}, responseDetail.response)
const body = JSON.parse(response.body.toString())
body.challengeWords = new Array(333).fill('line')
response.body = JSON.stringify(body)
return { response }
}
},
}
9 changes: 9 additions & 0 deletions 猜画小歌/helper/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"scripts": {
"ca": "anyproxy-ca",
"start": "anyproxy --intercept --ws-intercept --ignore-unauthorized-ssl --rule=index.js"
},
"dependencies": {
"anyproxy": "4.0.6"
}
}

0 comments on commit bc2f543

Please sign in to comment.