Skip to content

ranrib/2fa-macos-auto-copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MacOS 2FA Auto Copy βœ‰οΈπŸ”’

Monitors MacOS Messages app for incoming messages with 2FA codes, copy them to clipboard and mark them as read.

Example

Use 2fa_monitor.py and com.2fa.monitor.plist when creating the new files:

touch /Applications/2fa_monitor.py
touch ~/Library/LaunchAgents/com.2fa.monitor.plist
launchctl load ~/Library/LaunchAgents/com.2fa.monitor.plist

Grant full disk access in order to allow the script to read messages DB:

  1. Open System Settings
  2. Go to Privacy & Security β†’ Full Disk Access
  3. Click the lock and authenticate
  4. Add your Terminal/Python app:
  5. Toggle it ON
  6. IMPORTANT: Completely quit and restart your Terminal
  7. Run this script again

About

Monitors MacOS Messages app for incoming messages with 2FA codes βœ‰οΈπŸ”’

Topics

Resources

License

Stars

Watchers

Forks

Languages