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

Working with SMB


Server Message Block (SMB) is mainly sent to provide network and file sharing between computers, servers, and other network devices, such as printers. However, SMB is the predecessor of the Common Internet Filesystem (CIFS).

Exercise – using enum4linux

enum4linux is a tool that is included with NetHunter that is very useful for extracting information from an SMB enabled system. Systems that use SMB are going to be primarily Windows, but they can also be Samba-enabled systems, such as Linux and UNIX.

The tool offers several important features:

  • RID cycling
  • User listing
  • List group memberships
  • List network shares
  • Detecting whether a host is in a workgroup or a domain
  • Identifying the remote computer's OS

If you have performed a port scan against a target and have found any of the following ports open, you may want to try using this tool:

  • TCP Port 445
  • UDP ports 137, 138 & TCP ports 137, 139 (NetBIOS over TCP/IP)

To execute the tool to retrieve a list of users, issue the following command...