Book Image

Hands-On Penetration Testing with Kali NetHunter

By : Glen D. Singh, Sean-Philip Oriyano
Book Image

Hands-On Penetration Testing with Kali NetHunter

By: Glen D. Singh, Sean-Philip Oriyano

Overview of this book

Kali NetHunter is a version of the popular and powerful Kali Linux pentesting platform, designed to be installed on mobile devices. Hands-On Penetration Testing with Kali NetHunter will teach you the components of NetHunter and how to install the software. You’ll also learn about the different tools included and how to optimize and use a package, obtain desired results, perform tests, and make your environment more secure. Starting with an introduction to Kali NetHunter, you will delve into different phases of the pentesting process. This book will show you how to build your penetration testing environment and set up your lab. You will gain insight into gathering intellectual data, exploiting vulnerable areas, and gaining control over target systems. As you progress through the book, you will explore the NetHunter tools available for exploiting wired and wireless devices. You will work through new ways to deploy existing tools designed to reduce the chances of detection. In the concluding chapters, you will discover tips and best practices for integrating security hardening into your Android ecosystem. By the end of this book, you will have learned to successfully use a mobile penetration testing device based on Kali NetHunter and Android to accomplish the same tasks you would traditionally, but in a smaller and more mobile form factor.
Table of Contents (19 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

Determining whether a host is up or down


If you're going to attempt to enter a system, you first need to have a target to examine and explore, which requires finding out which hosts are online or live and which are not.

Exercise – working with ping

In this exercise, we are going to use the ping utility to check for live targets:

  1. Open the Command Prompt on Windows or the Terminal in Linux.
  2. Ping -c <number of pings> <target IP or hostname>.
  3. Press Enter.
  4. View the results.

Note

If the -c is omitted, the ping command will continue to ping the provided hostname or address until you press Ctrl + C.

If you receive success replies from the target, the host is considered to be live. If you get a request timeout message, this means one of two things: the target is offline or the target has disabled ICMP responses. Systems administrators usually disable ICMP replies for security reasons; if a script kiddie is attempting a ping scan, they would think the target is offline and move on. However, a skilled...