commit
7660e2d3b7
|
@ -8,8 +8,8 @@ module Rex::Proto::PJL
|
|||
DEFAULT_PORT = 9100
|
||||
DEFAULT_TIMEOUT = 5
|
||||
|
||||
COUNT_MAX = 2147483647
|
||||
SIZE_MAX = 2147483647
|
||||
COUNT_MAX = 2_147_483_647
|
||||
SIZE_MAX = 2_147_483_647
|
||||
|
||||
UEL = "\e%-12345X" # Universal Exit Language
|
||||
PREFIX = "@PJL"
|
||||
|
|
|
@ -151,7 +151,7 @@ class Client
|
|||
|
||||
@sock.put(%Q{#{FSUPLOAD} NAME = "#{pathname}" OFFSET=0 SIZE=#{size}\n})
|
||||
|
||||
if @sock.get(DEFAULT_TIMEOUT) =~ /SIZE=\d+\r?\n(.*?)\f/m
|
||||
if @sock.get(DEFAULT_TIMEOUT) =~ /SIZE=\d+\r?\n(.*)\f/m
|
||||
file = $1
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue