Book Image

BackTrack 5 Cookbook

By : Willie L. Pritchett, David De Smet
Book Image

BackTrack 5 Cookbook

By: Willie L. Pritchett, David De Smet

Overview of this book

<p>BackTrack is a Linux-based penetration testing arsenal that aids security professionals in the ability to perform assessments in a purely native environment dedicated to hacking. BackTrack is a distribution based on the Debian GNU/Linux distribution aimed at digital forensics and penetration testing use. It is named after backtracking, a search algorithm.<br /><br />"BackTrack 5 Cookbook" provides you with practical recipes featuring many popular tools that cover the basics of a penetration test: information gathering, vulnerability identification, exploitation, priviledge escalation, and covering your tracks.<br /><br />The book begins by covering the installation of BackTrack 5 and setting up a virtual environment to perform your tests.<br /><br />We then dip into recipes involving the basic principles of a penetration test such as information gathering, vulnerability identification, and exploitation. You will further learn about privilege escalation, radio network analysis, Voice over IP, Password cracking, and BackTrack forensics.<br /><br />"BackTrack 5 Cookbook" will serve as an excellent source of information for the security professional and novice alike.</p>
Table of Contents (17 chapters)
BackTrack 5 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Determining the network range


With the gathered information obtained by following the previous recipe of this chapter, we can now focus on determining the IP address's range from the target network. In this recipe, we will explore the tools needed to achieve it.

How to do it...

Let's begin the process of determining the network range by opening a terminal window:

  1. Open a new terminal window and issue the following command:

    dmitry -wnspb targethost.com -o /root/Desktop/dmitry-result
    
  2. When finished, we should now have a text document on the desktop with the filename dmitry-result.txt filled with information gathered from the target:

  3. To issue an ICMP netmask request, we type the following command:

    netmask -s targethost.com
    
  4. Using scapy, we can issue a multiparallel traceroute. To start it, type the following command:

    scapy
    
  5. With scapy started, we can now enter the following function:

    ans,unans=sr(IP(dst="www.targethost.com/30", ttl=(1,6))/TCP())
    
  6. To display the result in a table, we issue the following...