carta
winpr-hash(1)

winpr-hash1

Ntlm hashing tool

Usage

winpr-hash -u username -p password [-d domain] [-f {default | sam}] [-v {1 | 2}]

Overview

winpr-hash is a small utility that can be used to create a NTLM hash from a username and password pair. The created hash can be outputed as plain hash or in SAM format.

Options

-u username

The username to use.

-p password

Password to use.

-d domain

A optional parameter to specify the domain of the user.

-f format

Specify the output format. The default outputs only the plain NTLM hash. The second output format available is sam which outputs the created hash in a format that it can be used in SAM file:

user:domain::hash:::

-v version

Version allows it to specify the NTLM version to use. The default is to use version 1. In case version 2 is used a domain needs to be specified.

Examples

winpr-hash -u user -p password -d domain -f sam -v 2

Create a version 2 NTLM hash for user with domain and password and output it in sam format.

Exit status

0

Successful program execution.

1

Missing or invalid arguments.

History

  • Debian 12 (Bookworm): the text shown here
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)

Author

FreeRDP <[email protected]>

From winpr-utils 2.11.7+dfsg1-6~deb12u1 in Debian 12 (Bookworm). Parsed by carta from the page's man source.