2014-08-17 22:31:53 +00:00
|
|
|
# -*- coding: binary -*-
|
2015-02-26 20:05:50 +00:00
|
|
|
|
2013-12-05 16:25:04 +00:00
|
|
|
# https://en.wikipedia.org/wiki/Printer_Job_Language
|
|
|
|
# See external links for PJL spec
|
|
|
|
|
|
|
|
module Rex::Proto::PJL
|
|
|
|
|
|
|
|
require "rex/proto/pjl/client"
|
|
|
|
|
2014-01-15 19:49:37 +00:00
|
|
|
DEFAULT_PORT = 9100
|
2014-01-16 17:58:37 +00:00
|
|
|
DEFAULT_TIMEOUT = 5
|
2014-01-15 19:49:37 +00:00
|
|
|
|
2014-01-21 18:13:14 +00:00
|
|
|
COUNT_MAX = 2_147_483_647
|
|
|
|
SIZE_MAX = 2_147_483_647
|
2013-12-09 21:33:44 +00:00
|
|
|
|
2013-12-05 16:25:04 +00:00
|
|
|
UEL = "\e%-12345X" # Universal Exit Language
|
|
|
|
PREFIX = "@PJL"
|
|
|
|
|
2013-12-16 17:35:02 +00:00
|
|
|
module Info
|
|
|
|
ID = "#{PREFIX} INFO ID"
|
|
|
|
STATUS = "#{PREFIX} INFO STATUS"
|
2014-01-16 19:21:33 +00:00
|
|
|
VARIABLES = "#{PREFIX} INFO VARIABLES"
|
2013-12-16 17:35:02 +00:00
|
|
|
FILESYS = "#{PREFIX} INFO FILESYS"
|
|
|
|
end
|
2013-12-05 16:25:04 +00:00
|
|
|
|
2013-12-16 17:35:02 +00:00
|
|
|
RDYMSG = "#{PREFIX} RDYMSG"
|
2013-12-05 16:25:04 +00:00
|
|
|
|
2013-12-16 17:35:02 +00:00
|
|
|
FSINIT = "#{PREFIX} FSINIT"
|
2015-02-25 23:00:27 +00:00
|
|
|
FSQUERY = "#{PREFIX} FSQUERY"
|
2013-12-16 17:35:02 +00:00
|
|
|
FSDIRLIST = "#{PREFIX} FSDIRLIST"
|
|
|
|
FSUPLOAD = "#{PREFIX} FSUPLOAD"
|
2015-02-25 20:36:48 +00:00
|
|
|
FSDOWNLOAD = "#{PREFIX} FSDOWNLOAD"
|
2015-02-25 21:39:51 +00:00
|
|
|
FSDELETE = "#{PREFIX} FSDELETE"
|
2013-12-05 16:56:28 +00:00
|
|
|
|
2013-12-05 16:25:04 +00:00
|
|
|
end
|