Skip to content

Commit 37e4d71

Browse files
committed
Remove check for UUID in the valid session check
This is causing sessions to fail because meterpreter isn't doing the right thing. I have another fix in the works which will properly solve this, but in the short term the best way of solving the problem is to remove this line.
1 parent 829f842 commit 37e4d71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/msf/base/sessions/meterpreter.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ def is_valid_session?(timeout=10)
307307

308308
begin
309309
self.machine_id = self.core.machine_id(timeout)
310-
self.payload_uuid ||= self.core.uuid(timeout)
310+
# This is causing breakages thanks to Meterpeter not doing what it should
311+
# be doing with the uuid.
312+
#self.payload_uuid ||= self.core.uuid(timeout)
311313

312314
return true
313315
rescue ::Rex::Post::Meterpreter::RequestError

0 commit comments

Comments
 (0)