Code Monkey home page Code Monkey logo

legym_fk's Introduction

乐健体育模拟跑步与活动签到

项目介绍

  • 本项目仅适用于乐健体育
  • 对代码改进有任何好的建议,欢迎提Issues,或者直接PR,感谢:handshake::heart:!!
  • 如果对您有帮助,请顺手点个Star
  • Author😃: sake

模拟跑步与活动签到原理

先用frida配合此项目仓库的sake.jshook证书验证,干掉乐健体育ssl pinning,然后进行packetcapture。通过分析packet,向相应站点getpost不同的json进行forward packet,就可以实现无乐健体育式模拟跑步与活动签到

站点1:Login

为用户提供登录服务

采用post方法,body如下:

body = {"entrance":"1","password":"password","userName":"18888888888"}

返还的response可以获取到很多关键数据:accessTokenorganizationId

站点2:getCurrent

采用get方法,这里返还的response我们只需要semesterId

站点3:getRunningLimit

body要提供getCurrent获取的semesterId,这里返还的response我们只需要limitationsGoalsSexInfoId

站点4:uploadRunningDetails

上传跑步数据

headers中需提供Authorization,采用了Bearer<token>,可以通过获取登录的responseaccesstoken拼接为Bearer accesstoken

采用post方法,body结构为

data ={
       "scoringType": 1,
       "semesterId": semesterId,
       "signPoint": [],
       "startTime": starttime,
       "totalMileage": distance,
       "totalPart": 0.0,
       "type": 跑步类型,
       "uneffectiveReason": "",
       "avePace": random_time / distance * 1000 + random.randint(0,1) / 10,
       "calorie": int(distance * random.uniform(70.0,75.0)),
       "effectiveMileage": distance,
       "effectivePart": 1,
       "endTime": endtime,
       "gpsMileage": distance,
       "limitationsGoalsSexInfoId":limitationsGoalsSexInfoId,
       "paceNumber": distance * (random.randint(50,150)),
       "paceRange": random.randint(5,10),
       "routineLine": [跑步路线]
        }

站点5:getActivityList

获取课外活动列表

采用post方法,这里返还的response我们只需要ActivityId

站点6:signUpActivity

活动报名

可以报名未开始的活动,服务端不验证报名是否开始。

采用post方法,要提供getActivityList获取的ActivityId

站点7:signInActivity

活动签到

进行活动的签到,活动签到不需要位置信息,位置信息仅在客户端验证

采用post方法,要提供getActivityList获取的ActivityId


使用方法

如果部署了python环境:

直接将main.py文件 raw 到本地,然后在终端/命令提示符下输入python main.py 账号 密码 里程

a1

如果未部署python环境:

  1. 将本仓库Fork到自己的仓库里; 1

  2. 点击SettingsSecretsNew repository secret2

  3. 添加三个repository secret

  • Name中填入username,在Value中填入你的账号,点击Add secret
  • 回到刚刚的界面,点击New repository secret,在Name中填入password,在Value中填入你的密码,再点击Add secret
  • 再回到刚刚的界面,点击New repository secret,在Name中填入distance,在Value中填入你想要跑的里程,再点击Add secret3 4 5 6
  1. 完成后,进入Actions界面。工作流默认会自动开启。你也可以手动执行工作流,以防止自动数据上传失效。 7

免责声明

  • 本项目仅供学习参考之用,请勿用于违法用途,本项目及其作者不承担相应责任。

  • 作者不需要使用乐健体育APP,纯属为爱码代码。

  • 项目可能失效,随缘更新,欢迎大佬们PR。

  • 如造成作者及其代码提供者损害,作者有权关闭此项目仓库。

legym_fk's People

Contributors

fullstack-sake avatar 490shigure avatar aleksanaa avatar nightfrost42 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.