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

Port scanning


After live systems have been identified, it's time to check for any open ports on the target.

So, what is a port? First, let's assume that every host on our network has a unique address assigned to it, known as an IP address. This address is a unique number assigned to a host to differentiate it from other hosts on the network.

Of course, we also need to concern ourselves with when information is sent from system to system and how a computer knows how to accept that information. The answer is ports. I will use the 192.168.1.4 IP address as our target system:

192.168.1.4:80

So, how many ports are available on a system? There are 65,535 port numbers. Some network services uses TCP ports to ensure their data is delivered to the recipient, while other network services use UDP for fast communication but do not guarantee a fast delivery like TCP. The port ranges which we use are as follows:

  • Well-known ports range from 1 - 1024. These ports are most commonly used, an example would be port...