Nmap Development mailing list archives

Re: [PATCH] nmap-service-probes: Misc database corrections, printer additions


From: David Fifield <david () bamsoftware com>
Date: Mon, 13 Jul 2009 13:38:31 -0600

On Mon, Jul 13, 2009 at 12:16:43PM -0700, Aaron Leininger wrote:
Another thing I just thought of: What happens if you write these
commands to port 9100 to a printer that doesn't understand PJL? Will
they be printed out on paper?

I tested out some of the PJL commands on a lexmark optera s 2455
laserjet. The commands behave slightly differently:

*The RDYMSG command does not print on paper but neither does it alter
the ready message on a lexmarck. 
*The ID command sent raw through ncat does elicit a response but it
sets off the printer's busy light. This does not seem to adversley
affect the ability to print as I was able to send text afterwards
through the same open ncat socket and it printed out. Also, the return
data returned "Lexmark Optera S" w/o the exact model # where an HP
returns the model # as well. 
*The STATUS command behaves similar to the ID command except that it
always returns a state of BUSY on a lexmark unless it is asleep in
which case it returns "Power Save Mode". Even when the display read
"READY". It always returned BUSY to my probe. 

That's good that it didn't print on any of those printers. I think it's
a good idea for the script to do a preliminary @PJL INFO STATUS, and if
it doesn't get a response back, not to send anything more to the port.

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: