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

Fragmentation


Another method hackers and penetration testers use to avoid detection is fragmentation. Fragmentation breaks up a message (packet) into tiny pieces. Fragments are put into a network since, these tiny pieces of the messages usually are able to bypass almost any network for security appliance and monitoring tools that are proactively observing network traffic and activities for security threats.

In a fragmentation attack, the attacker can modify the Time to Live (TTL) or the timeout values between each bit sent through the firewall or intrusion-prevention system (IPS). This would cause the security appliance to not easily detect a threat and confuse the device during a reassembly process.

The attack can send fragments of a payload to the victim machine and have it reassemble to a payload without being detected at all.

Nmap allows us to perform port scanning with packet fragmentation on a target device. We can use the nmap –f <target IP address> command:

Using Wireshark, we...