【踩坑】修复token_extractor卡在2FA双重验证

转载请注明出处:小锋学长生活大爆炸[xfxuezhagn.cn]

如果本文帮助到了你,欢迎[点赞、收藏、关注]哦~

背景介绍

这个项目使用来提取米家账号的token的,提取token后就可以控制米家设备了,很有用。

GitHub - PiotrMachowski/Xiaomi-cloud-tokens-extractor: This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices. - PiotrMachowski/Xiaomi-cloud-tokens-extractorhttps://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor但最近小米更新后,直接使用这个工具会提示2FA双重验证。

解决方法

有大佬已经研究出了解决方法了。

Two-factor authentication doesn't work anymore · Issue #43 · PiotrMachowski/Xiaomi-cloud-tokens-extractor · GitHubHi, issue exactly the same as here PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor#180 It seems that even after "succesful" authentication with "ok" message in browser issue still persists. It endlessly keeps a...https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/issues/43#issuecomment-11866151611、先运行 token_extractor.exe (或token_extractor.py也可以)


2、正常登录并运行到2FA链接


3、复制链接到浏览器里打开

4、在浏览器界面点击键盘F12,并转到网络选项卡

5、执行2FA,完整验证码


6、点击CTRL+F打开搜索字段并搜索

  • sSecurity
  • userid
  • servicetoken
  • cUserId


7、下载并编辑 token_extractor.py 文件,将搜到的值填进去


8、搜索logged = connector.login()并将右侧替换为True


9、保存所有内容并再次启动脚本,只需按回车键并将其留空

python token_extractor.py

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小锋学长生活大爆炸

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值