LinuxCommandLibrary

impacket-getnpusers

finds Active Directory users with "Do not require Kerberos preauthentication"

TLDR

Find AS-REP roastable users

$ impacket-GetNPUsers [domain]/ -dc-ip [dc-ip] -usersfile [users.txt]
copy
Get hash for specific user
$ impacket-GetNPUsers [domain]/[user] -dc-ip [dc-ip] -no-pass
copy
Request with format for hashcat
$ impacket-GetNPUsers [domain]/ -dc-ip [dc-ip] -usersfile [users.txt] -format hashcat
copy
Output to file
$ impacket-GetNPUsers [domain]/ -dc-ip [dc-ip] -usersfile [users.txt] -outputfile [hashes.txt]
copy

SYNOPSIS

impacket-GetNPUsers [options] target

DESCRIPTION

impacket-GetNPUsers finds Active Directory users with "Do not require Kerberos preauthentication" set. Part of the Impacket toolkit. Requests AS-REP tickets that can be cracked offline (AS-REP Roasting). For authorized security testing only.

PARAMETERS

-dc-ip ip

Domain controller IP.
-usersfile file
File with usernames.
-no-pass
Request without password.
-format type
Hash format (hashcat/john).
-outputfile file
Save hashes to file.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community