winpr-hash(1) FreeRDP winpr-hash(1)

# [NAME](#NAME)

winpr-hash - NTLM hashing tool

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

**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 outputted as plain hash or in SAM format.

# [OPTIONS](#OPTIONS)

[-u username](#u)

The username to use.

[-p password](#p)

Password to use.

[-d domain](#d)

A optional parameter to specify the domain of the user.

[-f format](#f)

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](#v)

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](#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](#EXIT_STATUS)

**0**

Successful program execution.

**1**

Missing or invalid arguments.

# [AUTHOR](#AUTHOR)

FreeRDP &lt;team@freerdp.com&gt;

2017-01-11 3.32.2

---

Document: winpr-hash(1) from freerdp-3 3.32.2-r0 (Chainguard OS)
Source: https://github.com/FreeRDP/FreeRDP
