Book description
Master the Nmap Scripting Engine and the art of developing NSE scripts
In Detail
Nmap is a well-known security tool used by penetration testers and system administrators for many different networking tasks. The Nmap Scripting Engine (NSE) was introduced during Google's Summer of Code 2006 and has added the ability to perform additional tasks on target hosts, such as advanced fingerprinting and service discovery and information gathering.
This book will teach you everything you need to know to master the art of developing NSE scripts. The book starts by covering the fundamental concepts of Lua programming and reviews the syntax and structure of NSE scripts. After that, it covers the most important features of NSE. It jumps right into coding practical scripts and explains how to use the Nmap API and the available NSE libraries to produce robust scripts. Finally, the book covers output formatting, string handling, network I/O, parallelism, and vulnerability exploitation.
What You Will Learn
- Get to grips with the fundamentals of Lua, the programming language used by the Nmap Scripting Engine
- Extend the capabilities of Nmap by writing your own NSE scripts
- Explore the Nmap Scripting Engine API
- Discover all the available NSE libraries
- Write robust brute force password auditing scripts
- Customize the databases distributed with Nmap
- Produce flexible script reports in NSE
- Optimize Nmap scans with script and library arguments
- Enhance the version detection capabilities of Nmap
Table of contents
-
Mastering the Nmap Scripting Engine
- Table of Contents
- Mastering the Nmap Scripting Engine
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Introduction to the Nmap Scripting Engine
- 2. Lua Fundamentals
- 3. NSE Data Files
- 4. Exploring the Nmap Scripting Engine API and Libraries
-
5. Enhancing Version Detection
- Understanding version detection mode in NSE
- Writing your own version detection scripts
- Examples of version detection scripts
- Summary
- 6. Developing Brute-force Password-auditing Scripts
- 7. Formatting the Script Output
- 8. Working with Network Sockets and Binary Data
- 9. Parallelism
- 10. Vulnerability Detection and Exploitation
- A. Scan Phases
- B. NSE Script Template
- C. Script Categories
- D. Nmap Options Mind Map
- E. References
- Index
Product information
- Title: Mastering the Nmap Scripting Engine
- Author(s):
- Release date: February 2015
- Publisher(s): Packt Publishing
- ISBN: 9781782168317
You might also like
book
Hands-On Penetration Testing on Windows
Master the art of identifying vulnerabilities within the Windows OS and develop the desired solutions for …
book
Quick Start Guide to Penetration Testing: With NMAP, OpenVAS and Metasploit
Get started with NMAP, OpenVAS, and Metasploit in this short book and understand how NMAP, OpenVAS, …
video
Mastering Nmap
You will learn how to use this tool to implement a wide variety of practical tasks …
book
Metasploit Penetration Testing Cookbook - Third Edition
Over 100 recipes for penetration testing using Metasploit and virtual machines About This Book Special focus …