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

Library dicom

Source: https://svn.nmap.org/nmap/nselib/dicom.lua

Functions

associate (host, port, calling_aet, called_aet)

associate(host, port) Attempts to associate to a DICOM Service Provider by sending an A-ASSOCIATE request.

pdu_header_encode (pdu_type, length)

pdu_header_encode(pdu_type, length) encodes the DICOM PDU header

receive (dcm)

receive(dcm) Reads DICOM packets over an established socket

send (dcm, data)

send(dcm, data) Sends DICOM packet over established socket

start_connection (host, port)

start_connection(host, port) starts socket to DICOM service



Functions

associate (host, port, calling_aet, called_aet)

associate(host, port) Attempts to associate to a DICOM Service Provider by sending an A-ASSOCIATE request.

Parameters

  • host: Host object
  • port: Port object
  • calling_aet:
  • called_aet:

Return value:

(status, dcm) If status is true, the DICOM object is returned. If status is false, dcm is the error message.
pdu_header_encode (pdu_type, length)

pdu_header_encode(pdu_type, length) encodes the DICOM PDU header

Parameters

  • pdu_type: PDU type as ann unsigned integer
  • length: Length of the DICOM message

Return value:

(status, dcm) If status is true, the DICOM object with the header set is returned. If status is false, dcm is the error message.
receive (dcm)

receive(dcm) Reads DICOM packets over an established socket

Parameters

  • dcm: DICOM object

Return value:

(status, data) Returns data if status true, otherwise data is the error message.
send (dcm, data)

send(dcm, data) Sends DICOM packet over established socket

Parameters

  • dcm: DICOM object
  • data: Data to send

Return value:

status True if data was sent correctly, otherwise false and error message is returned.
start_connection (host, port)

start_connection(host, port) starts socket to DICOM service

Parameters

  • host: Host object
  • port: Port table

Return value:

(status, socket) If status is true, socket of DICOM object is set. If status is false, socket is the error message.

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 ]