OSCP-CPTS NOTES
TwitterGithubLinkedinInstagramDiscord
  • oscp-cpts-notes
  • Pivoting & Tunneling
    • Local Port Forwarding
    • Remote Port Forwarding
    • Dynamic Port Forwarding
    • Ligolo-ng
  • Linux Privilege Escalation
    • Gathering Information of the System
    • Capabilities
    • Group Based
    • SUID Privilege Escalation
    • Cron Job
    • Exploiting NFS weak Permission
    • Sudo + LD_PRELOAD (Shared Libraries)
    • Shared Object Manipulation
    • Python Library Hijacking
  • Windows Privilege Escalation
    • Gathering Information of the System
    • User Privileges
      • SeImpersonatePrivilege and SeAssignPrimaryToken
      • SeDebugPrivilege
      • SeTakeOwnershipPrivilege
    • Group Privileges
      • Backup Operators
      • DnsAdmins
      • Server Operators
      • Always Install Elevated
      • Print Operators
      • Event Log Readers
      • Hyper-V Administrators
    • Credential Theft
  • Active Directory Attacks
    • Enumeration
    • Initial Foothold
    • Gathering Users & Password Policies
    • Password Spraying
    • Credentialed Enumeration From Linux
    • Credentialed Enumeration From Windows
    • Kerberoasting - From Linux
    • Kerberoasting - From Windows
  • Beyond OSCP - CPTS
    • RED TEAMING
      • Windows Local Persistence
        • Tampering With Unprivileged Accounts
        • Backdooring Files
        • Abusing Services
        • Abusing Scheduled Tasks
        • Logon Triggered Persistence
        • Backdooring the Login Screen / RDP
        • Persisting Through Existing Services
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Beyond OSCP - CPTS
  2. RED TEAMING

Windows Local Persistence

🛡️ Persistence After Initial Foothold

  • Once you've gained initial access to an internal network, your top priority should be to maintain that access.

  • Persistence means setting up alternative methods to regain entry without needing to exploit the system again.

  • It's one of the first and most crucial tasks after compromising a target.


📱 Backdoored Device & Why Persistence Matters

  • Unstable exploits can be one-time use: Some vulnerabilities may crash the service or app after exploitation, making repeated attempts impossible.

  • Hard-to-reproduce attack vectors: For instance, if access was gained via a phishing campaign, recreating the exact conditions or success rate could be difficult or ineffective the second time.

  • Time pressure from defenders: If your intrusion is noticed, patches may be applied quickly. You need a way in before the door closes.

  • Credentials are not reliable long-term: Even if you steal a password hash, it could be rotated or changed, cutting off your access.

  • Stealthier methods are better: Using creative persistence mechanisms can help evade detection and frustrate the defenders.

PreviousRED TEAMINGNextTampering With Unprivileged Accounts

Last updated 2 months ago

Was this helpful?