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 c695828 commit 8051f79Copy full SHA for 8051f79
lib/msf/core/handler.rb
@@ -222,7 +222,13 @@ def create_session(conn, opts={})
222
s.set_from_exploit(assoc_exploit)
223
224
# Pass along any associated payload uuid if specified
225
- s.payload_uuid = opts[:payload_uuid] if opts[:payload_uuid]
+ if opts[:payload_uuid]
226
+ s.payload_uuid = opts[:payload_uuid]
227
+ if s.payload_uuid.respond_to?(:puid_hex) && (uuid_info = framework.uuid_db[sess_puid])
228
+ s.payload_uuid.name = uuid_info['name']
229
+ s.payload_uuid.timestamp = uuid_info['timestamp']
230
+ end
231
232
233
# If the session is valid, register it with the framework and
234
# notify any waiters we may have.
0 commit comments