Adding Privileged Users
Last updated
Last updated
By default, the UAC strips the remote user of it's administrative privs, this can be disabled.
As a member of "Backup Operators", we can now save system and sam hives from the regsitery and use Impacket to get the system hash.
By default, the 'backup Operators' have two privileges:
SeBackupPrivilege: User can read write any file in the system, ignoring any DACL in place
SeRestorePrivilege: User can read read any file in the system, ignoring any DACL in place
A user can be assigned these privileges using secedit
command.
Add the user to the security descriptor of Win-RM.
Changing the effective RID of a user to RID of an administrator so that when the user logs in, it will have the same access tokens as an administrator.
Effective RID is stored in F
key at:
SAM is restricted to SYSTEM only.
Effective RID is located at 0x30
location in little endian format
After changing the effective RID to 500 (0x01F4), the next time users logs in, it will get Administrators privileges.