Fix up the core_machine_id call to handle weirdness better

bug/bundler_fix
HD Moore 2015-06-24 11:44:54 -07:00
parent ea4d13586c
commit aa9ea13934
1 changed files with 1 additions and 2 deletions

View File

@ -321,8 +321,7 @@ class ClientCore < Extension
# Normalise the format of the incoming machine id so that it's consistent
# regardless of case and leading/trailing spaces. This means that the
# individual meterpreters don't have to care
mid.downcase!.strip! if mid
return Rex::Text.md5(mid)
Rex::Text.md5(mid.to_s.downcase.strip)
end
def transport_remove(opts={})