Book Image

Mastering the Nmap Scripting Engine

By : Paulino Calderon
Book Image

Mastering the Nmap Scripting Engine

By: Paulino Calderon

Overview of this book

Table of Contents (23 chapters)
Mastering the Nmap Scripting Engine
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Scan Phases
Script Categories
Nmap Options Mind Map
References
Index

Java Debug Wire Protocol data files


The remote debugging port of Java uses the JDWP protocol, and NSE has a few scripts to detect and exploit vulnerable servers. Let's briefly review the available Java classes you will find distributed with Nmap inside your data directory.

JDWPExecCmd.java

This is the Java class used to run remote commands. It uses the Runtime.getRuntime().exec function to execute the desired commands.

JDWPSystemInfo.class

This Java function attempts to retrieve the following system information:

  • Total space (bytes)

  • Free space (bytes)

  • OS

  • OS version

  • OS patch level

  • OS architecture

  • Java version

  • Username

  • User home