Git Product home page Git Product logo

majsoul-hook-mitm's Introduction

majsoul-hook-mitm

mhm 使用 Proxinject 在雀魂客户端中注入 Socks5 代理

拦截 WebSocket 连接并使用 Protobuf 进行解析

通过修改和转发数据以实现以下功能:

  • 兼容小助手
  • 本地全皮肤
  • 本地昵称
  • 本地寻觅
  • 随机星标皮肤
  • 自动打牌
  • 自动开下局

用前须知

魔改千万条,安全第一条。

使用不规范,账号两行泪。

本插件仅供学习参考交流,

请使用者于下载 24 小时内自行删除,不得用于商业用途,否则后果自负。

支持平台

  • 雀魂客户端

  • 雀魂网页端

注: 自动功能仅支持雀魂网页端。

使用方法

安装配置 mhm 需求 Python >= 3.10

同步仓库

git clone https://github.com/lqgl/majsoul-hook-mitm.git && cd majsoul-hook-mitm

配置国内镜像源(可选)

python -m pip config set global.index-url https://mirror.nju.edu.cn/pypi/web/simple

安装依赖

python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m playwright install chromium

免费模型

启动 mhm

python -m mhm

安装 mitmproxy 证书

首次启动 mhm 成功后,关闭它。 然后到用户目录 ~/.mitmproxy 安装证书

配置文件

首次启动 mhm 会自动生成配置文件 mhmp.json

可以编辑此文件以根据需求自定义设置,以下表格解释了 base 可用的配置选项:

释义 可用值
启用全皮肤 skins true | false
启用小助手 aider true | false
启用伪寻觅 chest true | false
随机星标皮肤 random_star_char true | false

注: 小助手需要手动启动,建议先启动小助手,后启动 mhm。

以下表格解释了 playwright 中 auto_next_args 可用的配置选项:

释义 可用值
游戏段位场 next_game_Rank copper | silver | gold | jade | king
游戏人数 next_game_number 4p | 3p
游戏房间 next_game_rounds south | east

有关代理模式

mhmp.json 中默认代理模式为 "mode": ["regular"]

使用雀魂客户端

需要将代理模式修改为: "mode": ["socks5"], 并且修改proxinject为 "enable": true

使用雀魂网页端

网页加载慢可尝试使用上游代理,可以更改为 "mode": ["upstream:http://127.0.0.1:7890/"], 示例为 clash 的 7890 端口。

注:以上雀魂客户端代理模式与网页端的不通用,请按照自己的需求自行选择。

特别感谢

Discord 交流群

majsoul-hook-mitm's People

Contributors

anosora233 avatar dependabot[bot] avatar liqwang avatar lqgl avatar ls-gs avatar niconiconi-owo 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

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.