Nmap lexmark-config NSE Script


This page contains detailed information about how to use the lexmark-config NSE script. For list of all NSE scripts, visit the Nmap NSE Library.

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/lexmark-config.nse
Script categories: discovery, safe
Target service / protocol: udp
Target network port(s): 5353, 9100
List of CVEs: -

Script Description


The lexmark-config.nse script retrieves configuration information from a Lexmark S300-S400 printer.

The Lexmark S302 responds to the NTPRequest version probe with its configuration. The response decodes as mDNS, so the request was modified to resemble an mDNS request as close as possible. However, the port (9100/udp) is listed as something completely different (HBN3) in documentation from Lexmark. See

Lexmark-config NSE Script Arguments


The lexmark-config.nse script does not have any arguments.

Lexmark-config NSE Script Example Usage


Here's an example of how to use the lexmark-config.nse script:

nmap -sU -p 9100 --script=lexmark-config <target>

Lexmark-config NSE Script Example Output


Here's a sample output from the lexmark-config.nse script:

Interesting ports on 192.168.1.111:
PORT     STATE   SERVICE REASON
9100/udp unknown unknown unknown-response
| lexmark-config:
|   IPADDRESS: 10.46.200.170
|   IPNETMASK: 255.255.255.0
|   IPGATEWAY: 10.46.200.2
|   IPNAME: "ET0020006E4A37"
|   MACLAA: "000000000000"
|   MACUAA: "0004007652EC"
|   MDNSNAME: "S300-S400 Series (32)"
|   ADAPTERTYPE: 2
|   IPADDRSOURCE: 1
|   ADAPTERCAP: "148FC000"
|   OEMBYTE: 1 0
|   PASSWORDSET: FALSE
|   NEWPASSWORDTYPE: TRUE
|   1284STRID: 1 "S300-S400 Series"
|   CPDATTACHED: 1 1
|   SECUREMODE: FALSE
|   PRINTERVIDPID: 1 "043d0180"
|_  product=(S300-S400: Series)

Lexmark-config NSE Script Example XML Output


There is no sample XML output for this module. However, by providing the -oX <file> option, Nmap will produce a XML output and save it in the file.xml file.

Author


  • Patrik Karlsson

References


See Also


Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.