ntlmv2hash

package module
v0.0.0-...-37d58ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 4 Imported by: 1

README

ntlmv2hash -- Compute Windows NTLMv2 password hashes

Use the Go import path

eagain.net/go/ntlmv2hash

Documentation at https://pkg.go.dev/eagain.net/go/ntlmv2hash and https://pkg.go.dev/eagain.net/go/ntlmv2hash/cmd/ntlmv2-hash

Documentation

Overview

Package ntlmv2hash computes weak, unsalted, hashes of passwords in the the Microsoft Windows NT LAN Manager (NTLM) protocol v2 format.

It's primary purpose is to convert passwords for use with Samba and its `pdbedit --set-nt-hash` tool. Using NTLMv2 hashes for anything else is not advised.

See `cmd` for the command-line tool.

Resources

- https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b38c36ed-2804-4868-a9ff-8dd3182128e4

- http://davenport.sourceforge.net/ntlm.html

- https://github.com/Azure/go-ntlmssp (doesn't expose this functionality)

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NTPasswordHash

func NTPasswordHash(password string) string

NTPasswordHash computes the NTLM v2 password hash.

The output is password-equivalent and easy to reverse. It must be guarded just as well as the original password.

Example
package main

import (
	"eagain.net/go/ntlmv2hash"
	"fmt"
)

func main() {
	hash := ntlmv2hash.NTPasswordHash("SecREt01")
	fmt.Println(hash)
}
Output:

CD06CA7C7E10C99B1D33B7485A2ED808

Types

This section is empty.

Directories

Path Synopsis
cmd
ntlmv2-hash
Command ntlmv2-hash computes Microsoft Window NT LAN Manager (NTLM) protocol v2 hashes of passwords.
Command ntlmv2-hash computes Microsoft Window NT LAN Manager (NTLM) protocol v2 hashes of passwords.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL