前置条件 本机需要安装 python3 (3.11) 本机支持 expect 命令及脚本 编写生成 google mfa 验证的 python 脚本 需要使用的库是 onetimepass 网址: https://github.com/tadeck/onetimepass 安装命令: pip install onetimepass 安装好 onetimepass 之后,编写生成mfa的python脚本 code.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- import onetimepass as otp # type: ignore # 注意:如果你的电脑有多个python3版本,请在第1行选择合适的版本,同时确保 onetimepass 是安装在该解释……

阅读全文