Remove bin_to_hex function and replace with Rex::Text.to_hex

bug/bundler_fix
Matthew Hall 2014-05-01 15:42:04 +01:00
parent ff14cf9bfb
commit e8f46f97e1
1 changed files with 1 additions and 6 deletions

View File

@ -125,11 +125,6 @@ class Server
protected protected
# Converts bin to hex
def bin_to_hex(s)
s.unpack('H*').first
end
# #
# Handler to register new connections from the client # Handler to register new connections from the client
# #
@ -645,7 +640,7 @@ protected
sub_command = pkt['Payload'].v['SetupData'].unpack("v").first sub_command = pkt['Payload'].v['SetupData'].unpack("v").first
dprint("Command is: #{sub_command.to_s}") dprint("Command is: #{sub_command.to_s}")
ar = bin_to_hex(buff).to_s ar = Rex::Text.to_hex(buff, '').to_s
mdc = ar[86..89] mdc = ar[86..89]
case sub_command case sub_command