Skip to main content

Execute commands across Windows and Linux systems using multiple RCE methods (WinRM, SMB, WMI, RDP, SSH, MSSQL)

Project description

AuthFinder

A tool for executing commands across Windows (and Linux) systems using various remote execution methods. Automatically tries multiple techniques until one succeeds, based on return codes and output. Makes executing commands given credentials a hell of a lot easier.

Big thanks to NetExec & Impacket, as this tool just essentially acts as a wrapper around those (making it more of a script, I suppose).

Features

  • Multiple RCE Methods: Automatically tries various Windows remote execution techniques:
    • WinRM (NetExec)
    • PSExec (Impacket)
    • SMBExec (NetExec)
    • WMI (NetExec)
    • AtExec (Impacket)
    • RDP (NetExec)
    • SSH (NetExec)
    • MSSQL (Impacket)
  • Multi-threaded: Execute commands across multiple hosts simultaneously
  • Pass-the-Hash: Use -H to pass an NTLM hash
  • Linux Support: Use --linux to attempt to run commands across linux machines instead, via SSH

Installation

pipx install authfinder

External Dependencies

This tool requires the following external tools to be installed:

# Impacket (for PSExec, AtExec, MSSQL)
pipx install impacket

# NetExec (for SMBExec, WMI, RDP, SSH)
pipx install git+https://github.com/Pennyw0rth/NetExec

Usage

Basic Usage

# Execute command on single host
authfinder 192.168.1.10 -u administrator -p Password123 -c whoami

# Execute across IP range of 192.168.1.1 to 192.168.1.50
authfinder 192.168.1.1-50 -u admin -p Pass123 -c 'net user'

# Use nthash instead of password
authfinder 10.0.0.1-10 -u admin -H :{32-bit-hash} -c whoami

# Pass list of creds
authfinder 10.0.0.1-10 -f creds.txt -c whoami

IP Range Format

Supports various formats:

  • Single IP: 192.168.1.10
  • Multi-IP: 192.168.1.15,17,29,153
  • Range: 192.168.1.1-254
  • Multiple ranges: 10.0.1-5.10-20 (expands to all combinations)
  • File with IP ranges: targets.txt

Credential File Format

Create a text file with alternating username/password lines:

administrator
Password123!
admin
Pass123
backup_admin
:12345678123456781234567812345678

Lines starting with # are treated as comments. For NT hashes, use them directly as the password.

Command-Line Options

Options:
  -v                      Verbose output (shows all tool attempts)
  -o                      Show successful command output (WARNING: may trigger AV)
  -f <file>               Use credential file instead of single username/password
  --threads <n>           Number of concurrent threads (default: 10)
  --tools <list>          Comma-separated list of tools to try in order
  --timeout <seconds>     Command timeout in seconds (default: 15)
  --run-all               Run all tools instead of stopping at first success
  --skip-portscan         Skip port scanning and attempt all tools
  --linux                 Enables Linux-only mode, which uses SSH and ignores other tools

Todo

Add kerberos support lol

  • Requires supporting hostnames and configuring /etc/krb5.conf

License

MIT License - see LICENSE file for details

Disclaimer

This tool is intended for authorized security assessments only. Ensure you have proper authorization before using this tool on any systems you do not own or have explicit permission to test.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

authfinder-1.3.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authfinder-1.3.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file authfinder-1.3.1.tar.gz.

File metadata

  • Download URL: authfinder-1.3.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for authfinder-1.3.1.tar.gz
Algorithm Hash digest
SHA256 b2b31b3827d4172e104c755312ceb99366f0f9d3f7e8d63d8c81253a7eeb98f0
MD5 f5e557d93982d8067492e32d3d2abb1d
BLAKE2b-256 57881ed3ce7fd18126f2c4ebbe64fbc8232e70f07a8fb7ab0e653a6026586bc7

See more details on using hashes here.

File details

Details for the file authfinder-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: authfinder-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for authfinder-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fd2049dbf7152a27ef9d7fceea83b08f561dbcf65c01a6a11c3a46366463c4a
MD5 c37288e147437d54443aa99c8324df47
BLAKE2b-256 9ffcafecb0abd2e25f1f3fd0576c3c8fa722dbc66384d81d49382e90f31be472

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page