包含标签 mfa 的文章

如何使用python获取Google MFA手机一次性验证码

编写生成 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 是安装在该解释器的环境下 # 否则可能会报……

阅读全文

Mac及Linux 如何使用自动化脚本登录JumpServer堡垒机及后面的服务器

前置条件 本机需要安装 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 是安装在该解释……

阅读全文