试了一下通过mitm破解bitwarden会员。。。。

16次阅读

共计 654 个字符,预计需要花费 2 分钟才能阅读完成。

本帖最后由 jarmoku 于 2024-3-5 22:23 编辑

结论好麻烦。

新建一个 python 文件,如 main.py,内容如下:
import mitmproxy.http
from mitmproxy import ctx
import json

class bitwardencrack:

    def response(self, flow: mitmproxy.http.HTTPFlow):
        if flow.request.host == “api.bitwarden.com” and flow.request.path.startswith(“/sync”):
            content = flow.response.get_text()
            json_content = json.loads(content)
            # 修改 JSON 中的字段或添加新字段
            json_content[“profile”][“premium”] = True
            # 将修改后的 JSON 内容重新编码并设置为响应内容
            flow.response.set_text(json.dumps(json_content))

addons = [
    bitwardencrack()
] 复制代码
然后 python 通过 pip 安装 mitmproxy,
然后运行 mitmweb -s main.py
他就会开启一个本地 8080 端口的代理。
浏览器装 smartproxy,主要是设置 bitwarden.com 及其子域名通过上面的代理进行访问。

正文完
 0