pth
Last updated
Last updated
sekurlsa::pth
performs , and . Upon successful authentication, a program is run (n.b. defaulted to cme.exe
). It has the following command line arguments:
/user
: the username to impersonate. It must be noted that Administrator is not the only name for this well-known account.
/domain
: the fully qualified domain name. If Active Directory domain services are not in use or in case of local user/admin, a computer or a server name, workgroup
can be used.
/rc4
or /ntlm
: the RC4 key / NT hash (derived of the user's password).
/aes128
: the AES128 key derived from the user's password and the realm of the domain.
/aes256
: the AES256 key derived from the user's password and the realm of the domain.
/run
: the command line to run (defaulted to cmd.exe
).
/luid
: locally unique identifier. According to Microsoft, the is a 64-bit value guaranteed to be unique only on the system on which it was generated. The uniqueness of an LUID is guaranteed only until the system is restarted.
/impersonate
: It performs . It must be noted that a new process is not spawned but the token is injected on the process running Mimikatz.
Doing on a Windows system requires specific privilege. It either requires elevated privileges (by previously running or by executing Mimikatz as the NT-AUTHORITY\SYSTEM
account). This doesn't apply to which uses an official API.
As can be seen in the following output the hacklab\optimus
user is a low privileged user in the HACKLAB.LOCAL
active directory domain:
According to Benjamin the following must be taken into consideration:
This command does not work with minidumps (nonsense)
this new version of 'Pass-The-Hash' replaces RC4 keys of Kerberos by the NT hash (and/or replaces AES keys). It allows the Kerberos provider to ask TGT tickets.
NT hash is mandatory on XP/2003/Vista/2008 and before 7/2008r2/8/2012 kb2871997 (AES not available or replaceable)
AES keys can be replaced only on 8.1/2012r2 or 7/2008r2/8/2012 with kb2871997, in this case an NT hash is not required.
An attempt to with his credentials will result in the following:
However, by using the /impersonate
option, can be performed without spawning a new window: