diff --git a/lib/rex/proto/pjl.rb b/lib/rex/proto/pjl.rb index b1b548973e..5b771e8417 100644 --- a/lib/rex/proto/pjl.rb +++ b/lib/rex/proto/pjl.rb @@ -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" diff --git a/lib/rex/proto/pjl/client.rb b/lib/rex/proto/pjl/client.rb index 7ce5ec7003..0a85245af2 100644 --- a/lib/rex/proto/pjl/client.rb +++ b/lib/rex/proto/pjl/client.rb @@ -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