Braindump
Read BlogpostsLet's Connect
  • Introduction: My OSCP Journey
  • Writeup Index
  • OSCP Machine Writeups
    • 🔥PG - Practice
      • Shenzi
      • DVR4
      • Resourced
      • Kevin
      • Nara
      • Jacko
      • Authby
      • Access
      • Internal
      • Hutch
      • Algernon
      • HelpDesk
      • Squid
      • Hepet
      • Craft2
      • ClamAV
      • Pelican
      • Payday
      • Snookums
      • Bratarina
      • Nibbles
      • Hetemit
      • Hawat
      • Astronaut
      • Exfiltrated
      • Fanatastic
      • Wombo
      • Levram
      • LaVita
    • 💣HackTheBox
      • Devel
      • Legacy
      • Intelligence
        • Learning
      • Blackfield
        • PrivEsc - SeBackupPrivilege
      • Sauna
      • Bastard
      • Arctic
      • Forest
      • Active
      • SecNotes
      • Access
  • Preparation Notes
    • Tips and Tricks
      • File Transfer
      • Download a file - Windows CLI
      • Bypassing Firewall/Defender/UAC
      • Accessing File
      • Reverse Shell
      • OneLiner - Reverse/bind Shell
      • OneLiner - MSFVenom
    • Enumeration Techniques
      • System and Network Enumeration
      • Web Enumeration
      • Service Enum
      • CMS
    • Exploitation
      • Exploiting Web Apps
      • Exploiting Wordpress
      • Public Exploits
    • Privilege Escalation
      • Linux Privilege Escalation
        • Disk Group PrivEsc
      • Windows Privilege Escalation
    • Active Directory
      • Enumeration
      • AD Attacks
      • mimikatz
      • Lateral movement
    • Pivoting and Networking
      • SSH Port Forwarding
      • Ligolo-ng
    • Password Cracking
Powered by GitBook
On this page
  • Nmap
  • Auto-Recon
  • enum4linux
  • Massscan

Was this helpful?

  1. Preparation Notes
  2. Enumeration Techniques

System and Network Enumeration

Nmap

sudo nmap -A -T4 -sV -sC -p- -Pn  $ip --open

# for udp scan use following along with sudo
-sU

However, I found the following approach bit faster

# Step 1: Quick port scan
nmap -p- -T5 $ip > ports

# Step 2: Grep and extract out the ports; the output would be like 22,25,80
cat ports | awk '{split($0,a,"/"); print a[1] ","}'| tr -d "\n"| awk 'BEGIN {FS=OFS=","} NF--'
>

# step 3 - Dive deeper into the ports found above
sudo nmap -A -T4 -sC -sN -oN nmapFull -p 22,25,80 $ip -Pn

Auto-Recon

Run this along with nmap.

autorecon $ip

enum4linux

Run this along with nmap.

enum4linux -u 'guest' -p '' $ip

Massscan

masscan -e tun0 -p1-65535,U:1-65535 10.10.10.116
PreviousEnumeration TechniquesNextWeb Enumeration

Last updated 3 days ago

Was this helpful?