From 2d69675650229508923783b0dc27747ab1bda2a4 Mon Sep 17 00:00:00 2001 From: Matthew Kienow Date: Sat, 5 May 2018 00:50:07 -0400 Subject: [PATCH] Fix exception in verbose mode sessions listing (cherry picked from commit 5322a682f6229d013b2c9f201e4874aa609e7b47) --- lib/msf/base/serializer/readable_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/base/serializer/readable_text.rb b/lib/msf/base/serializer/readable_text.rb index d117775749..c8b32d31f7 100644 --- a/lib/msf/base/serializer/readable_text.rb +++ b/lib/msf/base/serializer/readable_text.rb @@ -717,7 +717,7 @@ class ReadableText sess_checkin = "#{(Time.now.to_i - session.last_checkin.to_i)}s ago @ #{session.last_checkin.to_s}" end - if session.payload_uuid.registered + if !session.payload_uuid.nil? && session.payload_uuid.registered sess_registration = "Yes" if session.payload_uuid.name sess_registration << " - Name=\"#{session.payload_uuid.name}\""