handle Ruby 2.4 Fixnum/Bignum -> Integer deprecations

This commit is contained in:
Brent Cook
2017-01-17 14:09:27 -06:00
parent 68816f6c5e
commit f69b4a330e
154 changed files with 595 additions and 585 deletions
@@ -229,7 +229,7 @@ class MetasploitModule < Msf::Exploit::Remote
ret
end
# Pack Fixnum for JDWP protocol
# Pack Integer for JDWP protocol
def format(fmt, value)
if fmt == "L" || fmt == 8
return [value].pack('Q>')
@@ -240,7 +240,7 @@ class MetasploitModule < Msf::Exploit::Remote
fail_with(Failure::Unknown, "Unknown format")
end
# Unpack Fixnum from JDWP protocol
# Unpack Integer from JDWP protocol
def unformat(fmt, value)
if fmt == "L" || fmt == 8
return value[0..7].unpack('Q>')[0]