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
  • Basic
  • NsLookup
  • Dig
  • Host
  • Additional
  • Nmap
  • DNSRecon
  1. Methodology
  2. Service Enumeration

TCP/UDP: DNS - 53

Basic

NsLookup

Follow the steps:

nslookup
SERVER <Target DNS IP Address>
<IP to resolve>

Dig

dig @<Target DNS IP Address> any <Domain Name to resolve>
dig axfr <Domain Name to resolve> @<Target DNS IP Address>

Host

host <Domain Name to resolve>
host -t mx <Domain Name to resolve>
host -t txt <Domain Name to resolve>

Additional

Nmap

nmap -n --script "(default and *dns*) or fcrdns or dns-srv-enum or dns-random-txid or dns-random-srcport" <Target IP Address>
nmap --script=dns-zone-transfer -p 53 <Domain Name>

DNSRecon

Perform standard scan on the domain name

dnsrecon -d <Domain Name> -t std

Perform DNS Enumeration

dnsrecon -d <Domain Name> -n <Target DNS IP Address>
dnsenum <Domain Name>
PreviousTCP: FTP - 21NextTCP: SSH - 22

Last updated 22 days ago