8000 GitHub - TeavenX/py2fa: 实时监听短信、邮件里的验证码、两步认证链接,发送到Mac通知中心,并复制到剪切板
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ py2fa Public

实时监听短信、邮件里的验证码、两步认证链接,发送到Mac通知中心,并复制到剪切板

Notifications You must be signed in to change notification settings

TeavenX/py2fa

Repository files navigation

PY2FA - 全功能两步验证工具

在macOS上实时获取iOS设备短信中的验证码并自动拷贝至剪切板

两步验证短信

实时获取邮箱中的验证码、两步验证链接并自动拷贝至剪切板

两步验证链接

用法

  1. 下载最新版本解压后拖入应用程序文件夹
  2. 在用户目录(/Users/你的用户名/config.yaml)创建config.yaml文件,拷贝以下配置
email:
  - username: your username@qq.com
    password: your password
  - username: 你的邮箱@gmail.com
    password: 你的密码
    pop_server: 邮箱的pop3服务地址,选填,默认取邮箱后缀

white_domain: # 选填 TODO:没有激活白名单功能
  - store.steampowered.com

bark_url: # 选填 目前没有激活bark通知功能
  - https://api.day.app/你的bark app的订阅地址/
  1. 将email中的配置改成你对应的配置,一般的邮箱都需要在网页邮箱上手动开启pop3,有部分邮箱还会要求设置独立密码,例如QQ邮箱和Gmail。 如果使用Gmail的账户密码登录,需要开启安全性较低的应用的访问权限(不建议),推荐开启两步验证后,设置Gmail独立密码后填入配置中,参考使用应用专用密码登录

  2. 配置完成后打开软件可以在菜单栏看到图标

菜单栏

借助菜单栏按钮可以控制每个功能的开关,启动时默认所有功能打开,如果有隐私和安全性考虑可以手动关闭对应功能

开关

注意事项

短信验证码不需要额外配置,只需要确保iOS和macOS上登录的是同一个iCloud账号,且Handoff都处于打开的状态

本软件完全开源,个人配置离线保存在本地,可以放心使用。也支持用源码自己构建打包,打包命令

pip install -r requirements.txt
python setup.py py2app

GPL License


English Version

PY2FA - fully function tool for 2 factor authcation

Automaticly monitor and copy 2fa code from message and email

两步验证短信

两步验证链接

Usage

  1. Download the latest version, unzip and drag PY2FA.app to Application folder.
  2. Create a config.yaml in User root folder(/User/YOUR USERNAME/config.yaml), copy and modify config blow
email:
  - username: your username@qq.com
    password: your password
  - username: 你的邮箱@gmail.com
    password: 你的密码
    pop_server: pop3 server url, optional, email suffix default

white_domain: # optional TODO: white list is currently inactive
  - store.steampowered.com

bark_url: # optional TODO: bark notify is currently inactive
  - https://api.day.app/your bark app webhook url/
  1. You must turn on POP3 protocol in email-provider web setting. if it's Gmail, you may need to turn on less secure apps which is not recommended. The better way is turn on 2fa for your Gmail account and set up Sign in with App Passwords, and fill in config.yaml with the specified Gmail password.

  2. After step3 you can open the PY2FA.app, and there will a icon in the menu bar

菜单栏

You can easily turn on/off the notification/clipboard function if you worry about security or your privacy.

开关

Notes

2fa message is already setup while the app start, however make sure the Handoff setting is On on your ios devices and Mac

Your profile or config are safed in your Mac offline.

The app is totally open source(GPL License), you can package a complete app on your own.

pip install -r requirements.txt
python setup.py py2app

GPL License

About

实时监听短信、邮件里的验证码、两步认证链接,发送到Mac通知中心,并复制到剪切板

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0