Giter Club home page Giter Club 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数据库 (数据开启了不要关闭,或者是以服务的形式启动)

模拟开房对战(不包含题库,需要先通过这个获取题库,预测题库总数在16500左右,目前我已经采集16000题)

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

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

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

  1. 填写modify-response.js中的token
  2. 手机信任证书并连上代理
  3. npm run fight 执行脚本

注意: 执行脚本以后,手机需要连上代理,然后点击进入排位页面,这时候命令行会出现start fight,说明是成功执行了,然后快速点击任意答案即可,脚本会帮你提交正确答案到服务器(题库够全的情况下)

特别说明一下常见问题

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

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

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

tnwz's People

Contributors

lyh2668 avatar sniper970119 avatar

Watchers

Qiu GuoQian avatar

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.