Skip to main content

Scanning & Enumeration

 Scanning & Enumeration – In cybersecurity course

(Follows Footprinting & Reconnaissance)  


1. Introduction to Scanning & Enumeration  

Scanning → Identifying live hosts, open ports, and services.  

Enumeration → Extracting detailed info (users, shares, services, banners).  

                                                        

Nmap tools guide: A Complete Network scanning guide about one of the Best Network scanner Tools                        Nmap with Practical experience Click here for Download Book

Key Objectives:  

- Discover network topology (devices, firewalls, routers).  

- Identify vulnerable services (misconfigurations, outdated software).  

- Gather user accounts, shares, and system data for exploitation.  


2. Scanning Techniques & Types 

A. Host Discovery (Finding Live Systems)  

- Ping Sweep – Checks which IPs respond to ICMP.  

  bash

  nmap -sn 192.168.1.0/24

  

ARP Scanning (Local network, bypasses firewalls).  

  bash

  arp-scan -l


  B. Port Scanning (Finding Open Ports)  

|       Scan Type       |      Description                         |        Command                     |

|---------------------|-----------------------------------------|---------------------------------|

|   TCP Connect Scan | Completes full 3-way handshake (noisy) | `nmap -sT 192.168.1.1`          |

|       SYN Stealth Scan   |        Half-open scan (stealthier)            | `nmap -sS 192.168.1.1`          |

|     UDP Scan       |       Checks UDP services (slow but critical) | `nmap -sU 192.168.1.1`          |

|             ACK Scan        |       Bypasses stateless firewalls           | `nmap -sA 192.168.1.1`          |


C. Service & OS Detection  

- Banner Grabbing – Identifies service versions.  

  bash

  nc -nv 192.168.1.1 80

  ```

- OS Fingerprinting – Detects OS via TCP/IP stack.  

  bash

  nmap -O 192.168.1.1


D. Vulnerability Scanning  

- Nmap NSE Scripts – Automated exploit checks.  

  bash

  nmap --script vuln 192.168.1.1

- Nessus/OpenVAS – Comprehensive vulnerability assessment.  


---

3. Enumeration Techniques 

A. NetBIOS Enumeration (Windows Networks) 

- Finds shares, users, groups.  

  bash

  nmblookup -A 192.168.1.1

  nbtscan 192.168.1.0/24


B. SNMP Enumeration 

- Extracts device info, configs via SNMP.  

  bash

  snmpwalk -c public -v1 192.168.1.1


C. LDAP Enumeration  

- Queries :- Active Directory users, groups.  

  bash

  ldapsearch -x -h 192.168.1.1 -b "dc=example,dc=com"


D. SMB Enumeration  

- Lists shares, users, permissions.  

  bash

  smbclient -L //192.168.1.1

  enum4linux -a 192.168.1.1


E. DNS Enumeration 

- Extracts DNS records, subdomains, mail servers.  

  `bash

  dnsrecon -d example.com


4. Advanced Scanning & Evasion 

A. Firewall Evasion Techniques  

- Fragmenting Packets (-f` in Nmap).  

- Decoy Scanning (Hide among fake IPs).  

  bash

  nmap -D RND:10 192.168.1.1

- Timing Adjustments (-T0` slow, -T5` aggressive).  


B. Proxy & VPN Scanning 

- Use Proxychains to anonymize scans.  

  bash

  proxychains nmap -sT 192.168.1.1


5. Hands-On Lab Exercises  

Exercise 1: Basic Network Scan  

bash

nmap -sS -p 1-1000 -A 192.168.1.1

- Interpret results: Open ports, services, OS.  

Exercise 2: SMB Enumeration  

bash

enum4linux -a 192.168.1.1

- Find: Shares, users, password policies.  


Exercise 3: Vulnerability Scanning  

bash

nmap --script vuln 192.168.1.1

-Check for: Heartbleed, Shellshock, misconfigurations.  


6. Countermeasures 

- Disable unnecessary services.  

- Use strong firewall rules (block ICMP, restrict port scans).  

- Patch systems & disable legacy protocols (SMBv1, SNMPv1).  

- Monitor logs for scanning activity.  

Nmap tools guide: A Complete Network scanning guide about one of the Best Network scanner Tools Nmap with Practical experience Click here for Download Book

7. Tools Summary  

|    Tool              |           Purpose                          |

|-------------------|--------------------------------------|

|   Nmap       | Network scanning, OS detection       |

|   Netcat    | Banner grabbing, manual port checks  |

| enum4linux   | SMB/NetBIOS enumeration           |

|       snmpwalk    | SNMP data extraction                 |

|  Nessus       | Automated vulnerability scanning     |


8. Next Steps   

- Proceed to Module 4: System Hacking (password cracking, privilege escalation).  

Module 4: System Hacking & Exploitation 

- Practice on Hack The Box (HTB) / TryHackMe (THM).  


Need deeper dives on any tool (e.g., Nmap scripting, Metasploit integration)?

Comments

Popular posts from this blog

Bug Bounty Hunter – The Professional Vulnerability Hunter

A Bug Bounty Hunter is a cybersecurity researcher who finds and reports security flaws in websites, apps, and systems in exchange for cash rewards (bounties) from companies like Google , Facebook , and Uber.  💰 How Bug Bounties Work    1. Target Selection – Choose a program (e.g., HackerOne, Bugcrowd).   2. Recon & Testing – Hunt for vulnerabilities (e.g., SQLi, XSS, RCE).   3. Submit a Report – Document the bug with PoC (Proof of Concept).   4. Get Paid – Rewards range from  $50 to $500,000+ per bug.   You can Download book from here 🔥 Top Bug Bounty Platforms  |    Platform     |     Popular Programs   |    Avg. Payout |   |-------------|---------------------|------------|   |    HackerOne   | Uber, Twitter, GitHub | $500–$20K |   |     Bugcrowd    | AWS, Tesla, Cisco | $300–$15K | ...

Termux tutorial

Termux: A Powerful Linux Terminal for Android Termux is a free and open-source terminal emulator and Linux environment application for Android devices. It allows users to run a Linux command-line interface directly on their smartphones or tablets without requiring root access. Designed for developers, ethical hackers, system administrators, and technology enthusiasts, Termux transforms an Android device into a portable Linux workstation. One of the biggest advantages of Termux is its simplicity and flexibility. After installation, users are provided with a Bash shell and a package manager that allows them to install hundreds of Linux packages. Common programming languages such as Python, C, C++, Java, Ruby, PHP, Node.js, and Go can be installed easily. This makes Termux an excellent platform for learning programming, writing scripts, and testing applications on the go. Termux uses the pkg and apt package managers to install software packages. Users can update the environment with ...

Syllabus

Ethical Hacking Syllabus   Course Title: Ethical Hacking & Penetration Testing  Duration :12-16 Weeks   Prerequisites: Basic knowledge of networking, operating systems (Windows/Linux), and programming (Python/Bash).   Module 1: Introduction to Ethical Hacking - Understanding Ethical Hacking vs. Malicious Hacking   - Roles of an Ethical Hacker   - Legal and Ethical Aspects (Laws, Certifications, Compliance)   - Penetration Testing Methodologies (OSSTMM, PTES, NIST)   - Setting Up a Hacking Lab ( Virtual Machines , Kali Linux , Metasploit)   Module 2: Footprinting & Reconnaissance - Passive vs. Active Reconnaissance   - Gathering Information Using:     - Google Dorking     - WHOIS, DNS Lookup, and Reverse IP Lookup     - Social Engineering & OSINT Tools (Maltego, theHarvester)   - Network Scanning Techniques (Nmap, Masscan) ...