Code Monkey home page Code Monkey logo

tnwz's Introduction

TNWZ

头脑王者开房答题抓题库 & 排位自动答题脚本

免责声明:仅供研究使用,请勿进行非法用途。

掘金文章: 我是如何次次《头脑王者》获得满分的

环境要求

  1. node v7.6以上
  2. mongodb
  3. anyproxy

安装anyproxy

1. 安装node.js
2. npm i -g anyproxy
3. anyproxy-ca // 生成证书
4. anyproxy -i // 以代理https的方式启动
// 然后手机端配置代理的IP及PORT,默认端口为8001,
// Anyproxy的WebService的默认端口为8002,这里可以查看到接口
// 手机端配置代理以后需要下载证书并信任,
// 苹果端的可以在手机的Safiri里面输入xxx.xxx.xxx.xxx:8002/fetchCrtFile的方式下载到证书
// 高版本的iOS可能需要在两处地方信任。

先做以下操作

  1. git clone(或者直接DownLoad即可)
  2. npm install 或 yarn install (这个是安装依赖包的,装了node以后就会有npm命令了)
  3. 开启mongodb数据库 (数据开启了不要关闭,或者是以服务的形式启动)

模拟开房对战

(不包含题库,需要先通过这个获取题库,预测题库总数在17200左右,目前我已经采集17148题,准确率在99%+)

  1. 填写index.js文件中2个对战用户的 uid & token
  2. npm run start 执行脚本

注意: 偶尔会出现未结算重新登录的提示,这时可能需要把两个账号重新登录或者点一下排位再退出)

模拟排位(等题库规模达到1.5W以后,就会正确率极高)

  1. 填写modify-response.js中的token(目前token不填也没关系)
  2. 手机信任证书并连上代理
  3. npm run fight 执行脚本
  • 注意: 执行脚本以后,手机需要连上代理,然后点击进入排位页面,这时候命令行会提示开始战斗,说明是成功执行了,然后选择推荐答案即可(!!表示),也可以自动打开代码中的自动提交的注释,0延时提交,不过可能有封号风险 *

特别说明一下常见问题

  1. 目前IOS10测试的时候发现,经常会提示断开连接,但是只需要在排位页面先断开wifi然后连上再点击排位即可(已修复)

  2. IOS11将无法使用该脚本,原因是Anyproxy对websocket包的解析有些问题,这个有没有大佬尝试一下的(已修复)

  3. 题库需要自行爬取,是为了增加一下难度希望大家慎用该脚本

tnwz's People

Contributors

kalasoo avatar lyh2668 avatar sniper970119 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tnwz's Issues

sign的规则

头脑王者好像改过验证方式,
想问大大当初是怎么找到验证规则的

npm run fight wrong

题库爬取完毕,按照步骤fight的时候,直接就退出了,是我理解错了吗?
npm_run_fight_wrong

报错了

wss:// is not supported when intercepting https. This request will be closed by AnyProxy. You may either exclude this domain in your rule file, or stop all https intercepting. (notifyquestion-tj.hortor.net)

是防止拦截么

不报错但是并没有自动选上答案

你好!我的理解是打开答题界面后会自动选择正确答案。
操作步骤完全按照作者来的,Anyproxy显示的log是
[AnyProxy Log][2018-01-16 23:39:56]: received request to: POST 183.36.108.143:80/
[AnyProxy Log][2018-01-16 23:39:59]: received request to: POST question.hortor.net/question/bat/findQuiz
[AnyProxy Log][2018-01-16 23:40:07]: received https CONNECT request question.hortor.net
[AnyProxy Log][2018-01-16 23:40:07]: will forward to local https server
[AnyProxy Log][2018-01-16 23:40:07]: [internal https]proxy server for question.hortor.net established
[AnyProxy Log][2018-01-16 23:40:07]: received request to: POST question.hortor.net/question/bat/choose
[AnyProxy Log][2018-01-16 23:40:11]: received request to: POST question.hortor.net/question/bat/findQuiz
[AnyProxy Log][2018-01-16 23:40:18]: received https CONNECT request question.hortor.net
[AnyProxy Log][2018-01-16 23:40:18]: will forward to local https server
[AnyProxy Log][2018-01-16 23:40:18]: [internal https]proxy server for question.hortor.net established
[AnyProxy Log][2018-01-16 23:40:18]: received request to: POST question.hortor.net/question/bat/choose
[AnyProxy Log][2018-01-16 23:40:24]: received https CONNECT request question.hortor.net
[AnyProxy Log][2018-01-16 23:40:24]: will forward to local https server
[AnyProxy Log][2018-01-16 23:40:24]: [internal https]proxy server for question.hortor.net established
[AnyProxy Log][2018-01-16 23:40:24]: received request to: POST question.hortor.net/question/bat/findQuiz
[AnyProxy Log][2018-01-16 23:40:37]: received https CONNECT request question.hortor.net
[AnyProxy Log][2018-01-16 23:40:37]: will forward to local https server
[AnyProxy Log][2018-01-16 23:40:37]: [internal https]proxy server for question.hortor.net established
[AnyProxy Log][2018-01-16 23:40:37]: received request to: POST question.hortor.net/question/bat/choose
[AnyProxy Log][2018-01-16 23:40:41]: received request to: POST question.hortor.net/question/bat/findQuiz
[AnyProxy Log][2018-01-16 23:40:47]: received https CONNECT request question.hortor.net
[AnyProxy Log][2018-01-16 23:40:47]: will forward to local https server
[AnyProxy Log][2018-01-16 23:40:47]: [internal https]proxy server for question.hortor.net established
[AnyProxy Log][2018-01-16 23:40:47]: received request to: POST question.hortor.net/question/bat/choose
[AnyProxy Log][2018-01-16 23:40:53]: received https CONNECT request question.hortor.net
[AnyProxy Log][2018-01-16 23:40:53]: will forward to local https server
[AnyProxy Log][2018-01-16 23:40:53]: [internal https]proxy server for question.hortor.net established

爬取了差不多9000道题目
不知道是出了什么问题,麻烦大神给看一下

安装anyproxy出错,求解决办法

Your environment has been set up for using Node.js 8.9.4 (x64) and npm.

C:\Users\Administrator>npm i -g anyproxy
npm WARN deprecated [email protected]: Please migrate to

https://github.com/lga
rron/clipboard-polyfill
npm ERR! path C:\Users\Administrator\AppData\Roaming\npm\node_modules

\anyproxy\n
ode_modules\npm\node_modules\ansistyles
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users

\Administrato
r\AppData\Roaming\npm\node_modules\anyproxy\node_modules\npm

\node_modules\ansist
yles' -> 'C:\Users\Administrator\AppData\Roaming\npm\node_modules

\anyproxy\node_
modules\npm\node_modules.ansistyles.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs

\2018-01-26T0
4_06_19_876Z-debug.log

C:\Users\Administrator>

请问小程序源码问题

我看网上现在获取源码一般都是通过root设备直接获取本地的wxapkg包 , 再通过脚本解密 .

看到您评论区提到 安卓 桌面快捷方式 代码未加密 , 可否详说一下 . 谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.