dxlnmapclient.client module

class dxlnmapclient.client.NmapClient(dxl_client)

Bases: dxlbootstrap.client.Client

The Nmap DXL Client provides a high level wrapper for invoking the Nmap tool via (DXL) fabric.

Constructor parameters:

Parameters:dxl_client – The DXL client to use for communication with the

fabric

SERVICE_TYPE = '/opendxl-nmap/service'

The DXL Nmap service type for the Nmap tool

scan_report(target_list, option_value, timeout=300)

Invokes the service “/opendxl-nmap/service” that expose the “/opendxl-nmap/service/scan/report” topic

Parameters:
  • target_list – Elements to be analysed
  • option_value – Nmap tool option
  • timeout – DXL sync request timeout
Returns:

service response