SlideShare a Scribd company logo
Hands-On Ethical
Hacking and
Network Defense
Chapter 6
Enumeration
Updated 3-3-18
Objectives
• Describe the enumeration step of security
testing
• Enumerate Microsoft OS targets
• Enumerate *NIX OS targets
Introduction to Enumeration
• Enumeration extracts information about:
• Resources or shares on the network
• Network topology and architecture
• Usernames or groups assigned on the network
• Information about users and recent logon times
• Before enumeration, you use Port scanning and
footprinting
• To Determine OS being used
• Intrusive process
NBTscan
• NBT (NetBIOS over TCP/IP)
• is the Windows networking protocol
• used for shared folders and printers
• NBTscan
• Tool for enumerating Microsoft OSs
Enumerating Microsoft Operating
Systems
• Study OS history
• Knowing your target makes your job easier
• Many attacks that work for older
Windows OSs still work with newer
versions
Windows 95
• The first Windows version that did not start
with DOS
• Still used the DOS kernel to some extent
• Introduced the Registry database to replace
Win.ini, Autoexec.bat, and other text files
• Introduced Plug and Play and ActiveX
• Used FAT16 file system
Windows 98 and ME
• More Stable than Win 95
• Used FAT32 file system
• Win ME introduced System Restore
• Win 95, 98, and ME are collectively called
"Win 9x"
• They run Windows 98
• Use plaintext passwords
• Research from Billy K Rios, published
2-11-14
Windows NT 3.51 Server/Workstation
• No dependence on DOS kernel
• Domains and Domain Controllers
• NTFS File System to replace FAT16 and
FAT32
• Much more secure and stable than Win9x
• Many companies still use Win NT Server
Domain Controllers
• Win NT 4.0 was an upgrade
Windows 2000 Server/Professional
• Upgrade of Win NT
• Active Directory
• Powerful database storing information about
all objects in a network
• Users, printers, servers, etc.
• Based on Novell's Novell Directory Services
• Enumerating this system would include
enumerating Active Directory
Windows XP Professional
• Much more secure, especially after Service
Pack 2
– Windows File Protection
– Data Execution Prevention
– Windows Firewall
• Link Ch 6n
Windows Server 2003
• Much more secure, especially after
Service Pack 1
• Network services are closed by default
• Internet Explorer security set higher
14
Windows Vista
• User Account Control
• Users log in with low privileges for most tasks
• BitLocker Drive Encryption
• Address Space Layout Randomization
(ASLR)
• Download Process Explorer (link Ch 3e)
• View, Show Lower Pane
• View, Lower Pane View, DLLS
• View, Select Columns, DLL tab, Base
Address
• Select explorer.exe and find ntdll.dll
• Reboot to see base address change
ASLR Demo
CNIT 123: 6: Enumeration
17
Windows Server 2008
• User Account Control
• BitLocker Drive Encryption
• ASLR
• Network Access Protection
• Granular levels of network access based on a clients
level of compliance with policy
• Server Core
• Small, stripped-down server, like Linux
• Hyper-V
• Virtual Machines
18
Windows 7
• XP Mode
• A virtual machine running Win XP
• User Account Control was refined and
made easier to use
Windows 8
• Built-in antivirus
• SmartScreen protects against phishing and
social engineering by using a URL and
application reputation system
• Windows 8 secure boot using EFI on ARM
prevents rootkits
Windows Server 2012
• Authentication Silos to reduce the risk of
pass-the-hash attacks
• DNSSEC which will someday make DNS
resolutions more secure
Windows 10
• Brings back the Start button
• Forced automatic updates
• Device Guard allows only trusted apps to
run
• Credential Guard uses virtualization to
protect access tokens from theft
• Reducing the risk of pass-the-hash
attacks
Windows Server 2016
• Windows Containers
• Like little virtual machines
• Can isolate services from one another
CNIT 123: 6: Enumeration
NetBIOS Basics
• Network Basic Input Output System
(NetBIOS)
• Programming interface
• Allows computer communication over a LAN
• Used to share files and printers
NetBIOS names
• Computer names on Windows systems
• Limit of 16 characters
• Last character identifies type of service
running
• Must be unique on a network
NetBIOS Suffixes
• For complete list, see link Ch 6h
NetBIOS Null Sessions
• Null session
• Unauthenticated connection to a Windows computer
• Does not use logon and passwords values
• Around for over a decade
• Still present on Windows XP
• Disabled on Server 2003
• Absent entirely in Vista and later versions
• A large vulnerability
• See links Ch 6a-f
Null Session Information
• Using these NULL connections allows
you to gather the following information
from the host:
• List of users and groups
• List of machines
• List of shares
• Users and host SIDs (Security Identifiers)
• From brown.edu (link Ch 6b)
NetBIOS Enumeration Tools
• Nbtstat command
• Powerful enumeration tool included with the
Microsoft OS
• Displays NetBIOS table
NetBIOS Enumeration Tools
• Net view command
• Shows whether there are any shared
resources on a network host
NetBIOS Enumeration Tools
(continued)
• Net use command
• Used to connect to a computer with shared
folders or files
Additional Enumeration Tools
• Windows tools included with Kali
• Smb4K, enum4linux
• DumpSec
• Hyena
• Nessus and OpenVAS
Using Windows Enumeration Tools
• In Kali: enum4linux
• Used to enumerate Windows computers in a
network
• Image from https://i0.wp.com/hackercool.com/wp-content/uploads/2016/07/enum4linux1.png
DumpSec
• Enumeration tool for Windows systems
• Produced by Foundstone, Inc.
• Allows user to connect to a server and
“dump”:
• Permissions for shares
• Permissions for printers
• Permissions for the Registry
• Users in column or table format
• Policies
• Rights
• Services
Hyena
• Excellent GUI product for managing and
securing Windows OSs
• Shows shares and user logon names for
Windows servers and domain controllers
• Displays graphical representation of:
• Microsoft Terminal Services
• Microsoft Windows Network
• Web Client Network
• Find User/Group
Figure 6-8 The Hyena interface
Nessus
• " the industry’s
most widely
deployed
• vulnerability
assessment
solution"
OpenVAS
• OpenVAS
• Operates in client/server mode
• Open-source descendent of Nessus
• Popular tool for identifying vulnerabilities
Enumerating the *nix Operating
System
• Several variations
• Solaris and OpenSolaris
• HP-UX
• Mac OS X and OpenDarwin
• AIX
• BSD UNIX
• FreeBSD
• OpenBSD
• NetBSD
• Linux, including several distributions
Enumerating the *nix Operating
System
• Simple Network Management Protocol
(SNMP)
• Enables remote administration of
servers, routers, switches, firewalls, and
other devices
• Can be used on Windows and Linux
snmpwalk in Kali
• Image from reydes.com
UNIX Enumeration
• Finger utility
• Most popular enumeration tool for security
testers
• Finds out who is logged in to a *nix system
• Determines who was running a process
• Nessus
• Another important *nix enumeration tool
Figure 6-25 Using the Finger command
Nessus Scanning Linux
• Image from tenable.com
Fast Scanning Tools
• netdiscover - ARP scanner
Sparta
CNIT 123: 6: Enumeration

More Related Content

PPT
Port Scanning
PPTX
Intrusion prevention system(ips)
PPT
DDOS Attack
PPT
IDS and IPS
PPTX
Introduction to Malware Analysis
PDF
Ch 9: Embedded Operating Systems: The Hidden Threat
PPTX
Intrusion Prevention System
PPTX
Port Scanning
Intrusion prevention system(ips)
DDOS Attack
IDS and IPS
Introduction to Malware Analysis
Ch 9: Embedded Operating Systems: The Hidden Threat
Intrusion Prevention System

What's hot (20)

PDF
Nmap basics
PPTX
PDF
DevConf 2014 Kernel Networking Walkthrough
PDF
Network Address Translation (NAT)
PPTX
An introduction to denial of service attack
PPTX
DNS spoofing/poisoning Attack
PPT
Wireshark Basics
PPTX
WTF is Penetration Testing v.2
PPTX
Introduction to IDS & IPS - Part 1
PPTX
Denial of Service Attacks (DoS/DDoS)
PPTX
Dos attack
PPTX
Session Hijacking ppt
PPT
intrusion detection system (IDS)
PPTX
Basic Malware Analysis
PPT
Internet Traffic Monitoring and Analysis
PPTX
Denial of Service Attack
PPTX
PPTX
Network scanning
PDF
Privilege escalation from 1 to 0 Workshop
Nmap basics
DevConf 2014 Kernel Networking Walkthrough
Network Address Translation (NAT)
An introduction to denial of service attack
DNS spoofing/poisoning Attack
Wireshark Basics
WTF is Penetration Testing v.2
Introduction to IDS & IPS - Part 1
Denial of Service Attacks (DoS/DDoS)
Dos attack
Session Hijacking ppt
intrusion detection system (IDS)
Basic Malware Analysis
Internet Traffic Monitoring and Analysis
Denial of Service Attack
Network scanning
Privilege escalation from 1 to 0 Workshop
Ad

Similar to CNIT 123: 6: Enumeration (20)

PDF
CNIT 123: Ch 6: Enumeration
PDF
Ch 6: Enumeration
PDF
CNIT 123: 8: Desktop and Server OS Vulnerabilites
PPTX
UNIT 5-UNDERSTANDING THE OPERATION OF A NETWORK.pptx
PDF
Ch 8: Desktop and Server OS Vulnerabilites
PDF
CNIT 121: 10 Enterprise Services
PDF
CNIT 152: 10 Enterprise Services
PDF
CNIT 152: 12b Windows Registry
PPT
Chapter 6 - INTRODUCTION TO NETWORK OPERATING SYSTEM - 0S and NOS.ppt
PDF
CNIT 123 8: Desktop and Server OS Vulnerabilities
PDF
UKC - Feb 2013 - Analyzing the security of Windows 7 and Linux for cloud comp...
PDF
CNIT 123 Ch 8: OS Vulnerabilities
PDF
CNIT 152: 12 Investigating Windows Systems (Part 2 of 3)
PDF
itft_system admin
PPTX
networkoperatingsystem-151216143210.pptx
PDF
CNIT 121: 12 Investigating Windows Systems (Part 2 of 3)
PPTX
CompTIASecPLUS-Part1 Unlimited Edition- Edited.pptx
PDF
CNIT 152 10 Enterprise Service
PPT
W982 05092004
CNIT 123: Ch 6: Enumeration
Ch 6: Enumeration
CNIT 123: 8: Desktop and Server OS Vulnerabilites
UNIT 5-UNDERSTANDING THE OPERATION OF A NETWORK.pptx
Ch 8: Desktop and Server OS Vulnerabilites
CNIT 121: 10 Enterprise Services
CNIT 152: 10 Enterprise Services
CNIT 152: 12b Windows Registry
Chapter 6 - INTRODUCTION TO NETWORK OPERATING SYSTEM - 0S and NOS.ppt
CNIT 123 8: Desktop and Server OS Vulnerabilities
UKC - Feb 2013 - Analyzing the security of Windows 7 and Linux for cloud comp...
CNIT 123 Ch 8: OS Vulnerabilities
CNIT 152: 12 Investigating Windows Systems (Part 2 of 3)
itft_system admin
networkoperatingsystem-151216143210.pptx
CNIT 121: 12 Investigating Windows Systems (Part 2 of 3)
CompTIASecPLUS-Part1 Unlimited Edition- Edited.pptx
CNIT 152 10 Enterprise Service
W982 05092004
Ad

More from Sam Bowne (20)

PDF
Introduction to the Class & CISSP Certification
PDF
Cyberwar
PDF
3: DNS vulnerabilities
PDF
8. Software Development Security
PDF
4 Mapping the Application
PDF
3. Attacking iOS Applications (Part 2)
PDF
12 Elliptic Curves
PDF
11. Diffie-Hellman
PDF
2a Analyzing iOS Apps Part 1
PDF
9 Writing Secure Android Applications
PDF
12 Investigating Windows Systems (Part 2 of 3)
PDF
10 RSA
PDF
12 Investigating Windows Systems (Part 1 of 3
PDF
9. Hard Problems
PDF
8 Android Implementation Issues (Part 1)
PDF
11 Analysis Methodology
PDF
8. Authenticated Encryption
PDF
7. Attacking Android Applications (Part 2)
PDF
7. Attacking Android Applications (Part 1)
PDF
5. Stream Ciphers
Introduction to the Class & CISSP Certification
Cyberwar
3: DNS vulnerabilities
8. Software Development Security
4 Mapping the Application
3. Attacking iOS Applications (Part 2)
12 Elliptic Curves
11. Diffie-Hellman
2a Analyzing iOS Apps Part 1
9 Writing Secure Android Applications
12 Investigating Windows Systems (Part 2 of 3)
10 RSA
12 Investigating Windows Systems (Part 1 of 3
9. Hard Problems
8 Android Implementation Issues (Part 1)
11 Analysis Methodology
8. Authenticated Encryption
7. Attacking Android Applications (Part 2)
7. Attacking Android Applications (Part 1)
5. Stream Ciphers

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PDF
Basic Mud Logging Guide for educational purpose
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
PDF
Insiders guide to clinical Medicine.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Microbial diseases, their pathogenesis and prophylaxis
Complications of Minimal Access Surgery at WLH
Basic Mud Logging Guide for educational purpose
102 student loan defaulters named and shamed – Is someone you know on the list?
Supply Chain Operations Speaking Notes -ICLT Program
Classroom Observation Tools for Teachers
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study
Insiders guide to clinical Medicine.pdf
VCE English Exam - Section C Student Revision Booklet
2.FourierTransform-ShortQuestionswithAnswers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Institutional Correction lecture only . . .
human mycosis Human fungal infections are called human mycosis..pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
GDM (1) (1).pptx small presentation for students
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
TR - Agricultural Crops Production NC III.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPH.pptx obstetrics and gynecology in nursing
Microbial diseases, their pathogenesis and prophylaxis

CNIT 123: 6: Enumeration

  • 1. Hands-On Ethical Hacking and Network Defense Chapter 6 Enumeration Updated 3-3-18
  • 2. Objectives • Describe the enumeration step of security testing • Enumerate Microsoft OS targets • Enumerate *NIX OS targets
  • 3. Introduction to Enumeration • Enumeration extracts information about: • Resources or shares on the network • Network topology and architecture • Usernames or groups assigned on the network • Information about users and recent logon times • Before enumeration, you use Port scanning and footprinting • To Determine OS being used • Intrusive process
  • 4. NBTscan • NBT (NetBIOS over TCP/IP) • is the Windows networking protocol • used for shared folders and printers • NBTscan • Tool for enumerating Microsoft OSs
  • 5. Enumerating Microsoft Operating Systems • Study OS history • Knowing your target makes your job easier • Many attacks that work for older Windows OSs still work with newer versions
  • 6. Windows 95 • The first Windows version that did not start with DOS • Still used the DOS kernel to some extent • Introduced the Registry database to replace Win.ini, Autoexec.bat, and other text files • Introduced Plug and Play and ActiveX • Used FAT16 file system
  • 7. Windows 98 and ME • More Stable than Win 95 • Used FAT32 file system • Win ME introduced System Restore • Win 95, 98, and ME are collectively called "Win 9x"
  • 8. • They run Windows 98 • Use plaintext passwords • Research from Billy K Rios, published 2-11-14
  • 9. Windows NT 3.51 Server/Workstation • No dependence on DOS kernel • Domains and Domain Controllers • NTFS File System to replace FAT16 and FAT32 • Much more secure and stable than Win9x • Many companies still use Win NT Server Domain Controllers • Win NT 4.0 was an upgrade
  • 10. Windows 2000 Server/Professional • Upgrade of Win NT • Active Directory • Powerful database storing information about all objects in a network • Users, printers, servers, etc. • Based on Novell's Novell Directory Services • Enumerating this system would include enumerating Active Directory
  • 11. Windows XP Professional • Much more secure, especially after Service Pack 2 – Windows File Protection – Data Execution Prevention – Windows Firewall
  • 13. Windows Server 2003 • Much more secure, especially after Service Pack 1 • Network services are closed by default • Internet Explorer security set higher
  • 14. 14 Windows Vista • User Account Control • Users log in with low privileges for most tasks • BitLocker Drive Encryption • Address Space Layout Randomization (ASLR)
  • 15. • Download Process Explorer (link Ch 3e) • View, Show Lower Pane • View, Lower Pane View, DLLS • View, Select Columns, DLL tab, Base Address • Select explorer.exe and find ntdll.dll • Reboot to see base address change ASLR Demo
  • 17. 17 Windows Server 2008 • User Account Control • BitLocker Drive Encryption • ASLR • Network Access Protection • Granular levels of network access based on a clients level of compliance with policy • Server Core • Small, stripped-down server, like Linux • Hyper-V • Virtual Machines
  • 18. 18 Windows 7 • XP Mode • A virtual machine running Win XP • User Account Control was refined and made easier to use
  • 19. Windows 8 • Built-in antivirus • SmartScreen protects against phishing and social engineering by using a URL and application reputation system • Windows 8 secure boot using EFI on ARM prevents rootkits
  • 20. Windows Server 2012 • Authentication Silos to reduce the risk of pass-the-hash attacks • DNSSEC which will someday make DNS resolutions more secure
  • 21. Windows 10 • Brings back the Start button • Forced automatic updates • Device Guard allows only trusted apps to run • Credential Guard uses virtualization to protect access tokens from theft • Reducing the risk of pass-the-hash attacks
  • 22. Windows Server 2016 • Windows Containers • Like little virtual machines • Can isolate services from one another
  • 24. NetBIOS Basics • Network Basic Input Output System (NetBIOS) • Programming interface • Allows computer communication over a LAN • Used to share files and printers
  • 25. NetBIOS names • Computer names on Windows systems • Limit of 16 characters • Last character identifies type of service running • Must be unique on a network
  • 26. NetBIOS Suffixes • For complete list, see link Ch 6h
  • 27. NetBIOS Null Sessions • Null session • Unauthenticated connection to a Windows computer • Does not use logon and passwords values • Around for over a decade • Still present on Windows XP • Disabled on Server 2003 • Absent entirely in Vista and later versions • A large vulnerability • See links Ch 6a-f
  • 28. Null Session Information • Using these NULL connections allows you to gather the following information from the host: • List of users and groups • List of machines • List of shares • Users and host SIDs (Security Identifiers) • From brown.edu (link Ch 6b)
  • 29. NetBIOS Enumeration Tools • Nbtstat command • Powerful enumeration tool included with the Microsoft OS • Displays NetBIOS table
  • 30. NetBIOS Enumeration Tools • Net view command • Shows whether there are any shared resources on a network host
  • 31. NetBIOS Enumeration Tools (continued) • Net use command • Used to connect to a computer with shared folders or files
  • 32. Additional Enumeration Tools • Windows tools included with Kali • Smb4K, enum4linux • DumpSec • Hyena • Nessus and OpenVAS
  • 33. Using Windows Enumeration Tools • In Kali: enum4linux • Used to enumerate Windows computers in a network • Image from https://i0.wp.com/hackercool.com/wp-content/uploads/2016/07/enum4linux1.png
  • 34. DumpSec • Enumeration tool for Windows systems • Produced by Foundstone, Inc. • Allows user to connect to a server and “dump”: • Permissions for shares • Permissions for printers • Permissions for the Registry • Users in column or table format • Policies • Rights • Services
  • 35. Hyena • Excellent GUI product for managing and securing Windows OSs • Shows shares and user logon names for Windows servers and domain controllers • Displays graphical representation of: • Microsoft Terminal Services • Microsoft Windows Network • Web Client Network • Find User/Group
  • 36. Figure 6-8 The Hyena interface
  • 37. Nessus • " the industry’s most widely deployed • vulnerability assessment solution"
  • 38. OpenVAS • OpenVAS • Operates in client/server mode • Open-source descendent of Nessus • Popular tool for identifying vulnerabilities
  • 39. Enumerating the *nix Operating System • Several variations • Solaris and OpenSolaris • HP-UX • Mac OS X and OpenDarwin • AIX • BSD UNIX • FreeBSD • OpenBSD • NetBSD • Linux, including several distributions
  • 40. Enumerating the *nix Operating System • Simple Network Management Protocol (SNMP) • Enables remote administration of servers, routers, switches, firewalls, and other devices • Can be used on Windows and Linux
  • 41. snmpwalk in Kali • Image from reydes.com
  • 42. UNIX Enumeration • Finger utility • Most popular enumeration tool for security testers • Finds out who is logged in to a *nix system • Determines who was running a process • Nessus • Another important *nix enumeration tool
  • 43. Figure 6-25 Using the Finger command
  • 44. Nessus Scanning Linux • Image from tenable.com
  • 45. Fast Scanning Tools • netdiscover - ARP scanner