Skip to content

Commit aa9ea13

Browse files
author
HD Moore
committed
Fix up the core_machine_id call to handle weirdness better
1 parent ea4d135 commit aa9ea13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rex/post/meterpreter/client_core.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@ def machine_id(timeout=nil)
321321
# Normalise the format of the incoming machine id so that it's consistent
322322
# regardless of case and leading/trailing spaces. This means that the
323323
# individual meterpreters don't have to care
324-
mid.downcase!.strip! if mid
325-
return Rex::Text.md5(mid)
324+
Rex::Text.md5(mid.to_s.downcase.strip)
326325
end
327326

328327
def transport_remove(opts={})

0 commit comments

Comments
 (0)