if there is info in the uuid_db, put it in payload_uuid automatically

MS-2855/keylogger-mettle-extension
Brent Cook 2017-11-14 20:13:35 -06:00
parent c695828361
commit 8051f790d0
1 changed files with 7 additions and 1 deletions

View File

@ -222,7 +222,13 @@ protected
s.set_from_exploit(assoc_exploit)
# Pass along any associated payload uuid if specified
s.payload_uuid = opts[:payload_uuid] if opts[:payload_uuid]
if opts[:payload_uuid]
s.payload_uuid = opts[:payload_uuid]
if s.payload_uuid.respond_to?(:puid_hex) && (uuid_info = framework.uuid_db[sess_puid])
s.payload_uuid.name = uuid_info['name']
s.payload_uuid.timestamp = uuid_info['timestamp']
end
end
# If the session is valid, register it with the framework and
# notify any waiters we may have.