Powered by Blogger.
Home » » Module 06: Network Penetration Testing Methodology-Internal / 1

Module 06: Network Penetration Testing Methodology-Internal / 1

Written By AKADEMY on Wednesday, July 3, 2019 | 11:14 AM

Exercise 1: Performing Passive OS Fingerprinting to Obtain Remote Operating System Information

Scenario

Active OS fingerprinting involves sending a packet to the designated system in a network and examining the response to identify the operating system. Passive OS fingerprinting, in contrast to active OS fingerprinting, is the process of identifying the operating system by inspecting the initial Time To Live (TTL) in the IP header and the TCP window size (the size of the receive window) of the first packet sent from a host in TCP session, i.e. the SYN or SYN+ACK packet.
As a penetration tester, you need to have knowledge of how to perform passive OS fingerprinting in a network.
In this lab, you will learn how to perform passive OS fingerprinting using p0f tool.
Lab Duration15 Minutes
  1. Click @lab.VirtualMachine(KaliLinux(ExternalNetwork)).SelectLink. If the Kali Linux lock screen appears, click on the screen and press Enter. If it does not appear, skip to the next task.
    Screenshot
  2. Type root in the Username field and click Next.
    Screenshot
  3. Type toor in the Password field and click Sign In.
    Screenshot
  4. In this lab, we will try to retrieve operating system related information from a machine hosting an FTP server, using a tool named p0f.
  5. Now, launch a command line terminal, type p0f -i any -p -o /tmp/sniff.log and press Enter.
    p0f begins to listen on all the interfaces of Kali Linux, and whenever it captures a packet, it decodes the header information and guesses the operating system.
    1. The -i switch corresponds to the interface
    2. By setting the -p switch, we are setting the tool to run in promiscuous mode.
    3. We are setting the p0f tool to store the output (-o) in /tmp location inside a file named sniff.log.
    Screenshot
  6. Now, launch another command line terminal, type ftp 172.20.20.12 and press Enter. This will ask you to enter login credentials.
    By doing so, the client i.e., Kali Linux (Internal Network) machine will send the request and the machine hosting the FTP server will respond to the query.
    172.20.20.12 is the IP address of the machine hosting the FTP server.
    Screenshot
  7. Switch to the command line terminal where p0f is running and scroll up the window.
    You will observe that p0f has analyzed all the requests and responses and decoded them to display information such as OSraw signatureand raw mtu.
    In this lab, p0f identified the operating system as Windows 7 or 8 (or its equivalent).
    Scroll down the window to view the header information of each packet decoded by the tool.
    Screenshot
Thus, you have learned how to perform passive OS fingerprinting using p0f tool.
Share this article :

0 comments:

Post a Comment

 
Trung Tâm Đào Tạo An Toàn Thông Tin Học Hacker Mũ Xám Online | Học An Ninh Mạng Trực Tuyến | CEH VIỆT NAM
Copyright © 2013. HACKER MŨ XÁM - All Rights Reserved
Web Master @ Võ Sĩ Máy Tính
Contact @ Đông Dương ICT