Skip to content

Commit 59446f3

Browse files
committed
change ui to use new settings
1 parent 8051f79 commit 59446f3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/msf/base/serializer/readable_text.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,10 +652,10 @@ def self.dump_sessions_verbose(framework, opts={})
652652
sess_checkin = "#{(Time.now.to_i - session.last_checkin.to_i)}s ago @ #{session.last_checkin.to_s}"
653653
end
654654

655-
if session.payload_uuid.respond_to?(:puid_hex) && (uuid_info = framework.uuid_db[sess_puid])
655+
if session.payload_uuid.registered
656656
sess_registration = "Yes"
657-
if uuid_info['name']
658-
sess_registration << " - Name=\"#{uuid_info['name']}\""
657+
if session.payload_uuid.name
658+
sess_registration << " - Name=\"#{session.payload_uuid.name}\""
659659
end
660660
end
661661

lib/msf/core/handler.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,11 @@ def create_session(conn, opts={})
225225
if opts[:payload_uuid]
226226
s.payload_uuid = opts[:payload_uuid]
227227
if s.payload_uuid.respond_to?(:puid_hex) && (uuid_info = framework.uuid_db[sess_puid])
228+
s.payload_uuid.registered = true
228229
s.payload_uuid.name = uuid_info['name']
229230
s.payload_uuid.timestamp = uuid_info['timestamp']
231+
else
232+
s.payload_uuid.registered = false
230233
end
231234
end
232235

0 commit comments

Comments
 (0)