Nmap pjl-ready-message NSE Script


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

Select:
Overview
Error Messages

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/pjl-ready-message.nse
Script categories: intrusive
Target service / protocol: jetdirect
Target network port(s): 9100
List of CVEs: -

Script Description


The pjl-ready-message.nse script retrieves or sets the ready message on printers that support the Printer Job Language. This includes most PostScript printers that listen on port 9100. Without an argument, displays the current ready message. With the pjl_ready_message script argument, displays the old ready message and changes it to the message given.

Pjl-ready-message NSE Script Arguments


This is a full list of arguments supported by the pjl-ready-message.nse script:

pjl_ready_message

Ready message to display.

- - -
To use this script argument, add it to Nmap command line like in this example:

nmap --script=pjl-ready-message --script-args pjl_ready_message=value <target>

Pjl-ready-message NSE Script Example Usage


Here's an example of how to use the pjl-ready-message.nse script:

nmap --script=pjl-ready-message.nse \
--script-args='pjl_ready_message="your message here"'

Pjl-ready-message NSE Script Example Output


Here's a sample output from the pjl-ready-message.nse script:

9100/tcp open  jetdirect
|_ pjl-ready-message: "READY" changed to "p0wn3d pr1nt3r"

Pjl-ready-message 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


  • Aaron Leininger

References


See Also


Visit Nmap NSE Library for more scripts.

The pjl-ready-message.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.

Error reading printer response:


Here is a relevant code snippet related to the "Error reading printer response: " error message:

67:	  end
68:	
69:	  status = parse_response(data)
70:	  if not status then
71:	    if nmap.verbosity() > 0 then
72:	      return "Error reading printer response: "..data
73:	    else
74:	      return nil
75:	    end
76:	  end
77:	

Version


This page has been created based on Nmap version 7.92.

Go back to menu.