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
  • Connection
  • Anonymous Login
  • Guest Login
  • Enumerate
  1. Methodology
  2. Service Enumeration

TCP: RPC - 135 / 593

Connection

Anonymous Login

rpcclient -U "" -N <Target IP Address>
rpcclient -U "" <Target IP Address>

Guest Login

rpcclient -U "guest" <Target IP Address>

Enumerate

NOTE: The following can only be executed if you are in RPC console

Enumerate domain users

enumdomusers

NOTE: The above command returns RID

Get group info

enumdomgroups
querygroup <RID>

Dump detailed user info

queryuser <RID>

Get domain policy

getdompwinfo
PreviousTCP: RDP - 3389NextTCP: Evil-WinRM - 5985 / 5986

Last updated 22 days ago