Summery
Get-NPUsers.py is a script in the Impacket suite that is used to find users with the “No Password” (NP) set in Active Directory. This is the same as the AS-REP roasting. It queries the target domain controller to look for accounts that are configured without a password, which could be useful for identifying potentially vulnerable accounts.
It doesn’t require credentials from you, but it does require you to specify a user or a user list.
Look for all accounts from a file
impacket-GetNPUsers INLANEFREIGHT.LOCAL/ -dc-ip 1.3.3.7 -no-pass -usersfile users.txt
User XYZ doesn't have UF_DONT_REQUIRE_PREAUTH set Means there is no as-rep roasting.
Kerberos SessionError: KDC_ERR_C_PRINCIPAL_UNKNOWN(Client not found in Kerberos database) Means that a given user is not in a domain
Check if a given user is vulnerable
impacket-GetNPUsers <DOMAIN>/<USER> -dc-ip 1.3.3.7 -no-pass