We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa9ea13 commit 24a6e4cCopy full SHA for 24a6e4c
lib/rex/post/meterpreter/client_core.rb
@@ -320,7 +320,9 @@ def machine_id(timeout=nil)
320
321
# Normalise the format of the incoming machine id so that it's consistent
322
# regardless of case and leading/trailing spaces. This means that the
323
- # individual meterpreters don't have to care
+ # individual meterpreters don't have to care.
324
+
325
+ # Note that the machine ID may be blank or nil and that is OK
326
Rex::Text.md5(mid.to_s.downcase.strip)
327
end
328
0 commit comments