Skip to main content

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 (NetExec)
    • 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, MSSQL)
pipx install impacket

# NetExec (for SMBExec, WMI, RDP...)
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

# Use local SAM authentication instead of domain auth
authfinder 10.0.0.1-10 -u admin -p Pass123 (-H :{32-bit-hash}) -c whoami --local-auth

# 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.

Metadata

Release files for authfinder 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for authfinder 1.4.0
File Size Uploaded
authfinder-1.4.0.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for authfinder 1.4.0
File Interpreter ABI Platform
authfinder-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / authfinder-1.4.0.tar.gz

Download URL authfinder-1.4.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
30bc319082f48f84370b3e6f1a9cdea9fba7d9ea70349fad7cc6709047d90844
BLAKE2b-256 checksum
How to use checksums
3ce4589d202cc58ba1eb316ccb39baa0ab543d7d10f21efdfa9cc7ce2e083a85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / authfinder-1.4.0-py3-none-any.whl

Download URL authfinder-1.4.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3124c5263c3d9283294d99deaa3372b2d020a2b657015c52c96aeb3e02456733
BLAKE2b-256 checksum
How to use checksums
c574d0ebfff980477aa5da4d76cb22f9cb925237ba90da63f7bc07398fdc5a05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page