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

Stealth scans


A stealth scan (sometimes known as a half open scan) is much like a full open scan with a minor difference that makes it less suspicious on the victim's device. The primary difference is that a full TCP three-way handshake does not occur. Looking at the following diagram, the initiator (device A) would send a TCP SYN packet to device B for the purpose of determining whether a port is open. Device B will respond with a SYN/ACK packet to the initiator (device A) if the port is open. Next, device A will send an RST to terminate the connection. If the port is closed, device B will sent an RST packet:

Stealth scan showing open and closed service ports

The benefit of using this type of scan is that it reduces the chances of being detected.

To execute a stealth scan, select (TCP SYN) from the list in the nmap window in the NetHunter app and enter the target IP address:

Selection of TCP SYN