Skip to content

n0k0m3/DuoBreak

 
 

Repository files navigation

DuoBreak 2.0

A modular, CLI-friendly Duo authentication bypass tool with support for both interactive and non-interactive usage.

Installation

git clone https://github.com/JesseNaser/DuoBreak.git
cd DuoBreak
pip install -r requirements.txt
chmod +x duobreak.py

Quick Setup

Create a password file and add your first Duo key from a QR code:

echo "your_secure_password" > .password
chmod 600 .password

./duobreak.py add \
  --qr-code duo_qr_code.png \
  --key-name work \
  --db-path work.duo \
  --password-file .password

Quick Usage

# Approve push notification
./duobreak.py push work --password-file .password

# Generate HOTP code (increments counter)
./duobreak.py hotp work --password-file .password

# View current code without incrementing
./duobreak.py hotp work --view --password-file .password

# List all configured keys
./duobreak.py list --password-file .password

Interactive Mode

# Launch interactive menu
./duobreak.py --db-path work.duo

The interactive menu provides:

  • Add/delete keys via QR code or activation code
  • Generate HOTP codes
  • Approve push notifications
  • Change database password
  • View HOTP history

Getting Help

# General help
./duobreak.py --help

# Command-specific help
./duobreak.py <command> --help

Examples:

./duobreak.py add --help
./duobreak.py hotp --help
./duobreak.py push --help

Documentation

Security Best Practices

  • Use password files with strict permissions (chmod 600)
  • Never use --password flag (visible in process list)
  • Store .duo databases in a secure location
  • Use password managers for password file content

Requirements

  • Python 3.7+
  • See requirements.txt for dependencies

License

AGPL-3.0-or-later

For security updates, visit: github.com/JesseNaser/DuoBreak


Disclaimer: This tool is for educational and authorized testing purposes only. Ensure you have permission to use this tool on any Duo-protected systems.

About

Python emulation of Duo push notifications and HOTP codes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%