CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/pjl.rb
Views: 11655
1
# -*- coding: binary -*-
2
3
# https://en.wikipedia.org/wiki/Printer_Job_Language
4
# See external links for PJL spec
5
6
module Rex::Proto::PJL
7
8
require "rex/proto/pjl/client"
9
10
DEFAULT_PORT = 9100
11
DEFAULT_TIMEOUT = 5
12
13
COUNT_MAX = 2_147_483_647
14
SIZE_MAX = 2_147_483_647
15
16
UEL = "\e%-12345X" # Universal Exit Language
17
PREFIX = "@PJL"
18
19
module Info
20
ID = "#{PREFIX} INFO ID"
21
STATUS = "#{PREFIX} INFO STATUS"
22
VARIABLES = "#{PREFIX} INFO VARIABLES"
23
FILESYS = "#{PREFIX} INFO FILESYS"
24
end
25
26
RDYMSG = "#{PREFIX} RDYMSG"
27
28
FSINIT = "#{PREFIX} FSINIT"
29
FSQUERY = "#{PREFIX} FSQUERY"
30
FSDIRLIST = "#{PREFIX} FSDIRLIST"
31
FSUPLOAD = "#{PREFIX} FSUPLOAD"
32
FSDOWNLOAD = "#{PREFIX} FSDOWNLOAD"
33
FSDELETE = "#{PREFIX} FSDELETE"
34
35
end
36
37