Home page logo
/
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News

Sponsors

SolarWinds makes easy-to-use enterprise IT management software to help IT pros solve problems every day and help to enable efficient and effective management of networks and IT environments.

Join our online community of over 100,000 IT professionals talking shop. Get involved. Gain insights. Share tips and tricks. Visit thwack today!


Library nsedebug

Debugging functions for Nmap scripts.

This module contains various handy functions for debugging. These should never be used for actual results, only during testing.

Copyright© Same as Nmap--See http://nmap.org/book/man-legal.html

Source: http://nmap.org/svn/nselib/nsedebug.lua

Functions

print_hex (str)

Print out a string in hex, for debugging.

print_stack ()

Print out a stacktrace. The stacktrace will naturally include this function call.

tostr (data, indent)

Converts an arbitrary data type into a string. Will recursively convert tables. This can be very useful for debugging.



Functions

print_hex (str)

Print out a string in hex, for debugging.

Parameters

  • str: The data to print in hex.
print_stack ()

Print out a stacktrace. The stacktrace will naturally include this function call.

tostr (data, indent)

Converts an arbitrary data type into a string. Will recursively convert tables. This can be very useful for debugging.

Parameters

  • data: The data to convert.
  • indent: (optional) The number of times to indent the line. Default is 0.

Return value:

A string representation of a data, will be one or more full lines.

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]