Skip to content

Commit 95a95d4

Browse files
committed
Fix importing msfxml files containing a session
[See rapid7#1179][SeeRM rapid7#7669]
1 parent 2c3ccb5 commit 95a95d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/db.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,11 +675,11 @@ def report_session(opts)
675675
if sess_data[:desc]
676676
sess_data[:desc] = sess_data[:desc][0,255]
677677
end
678-
678+
679679
# In the case of multi handler we cannot yet determine the true
680680
# exploit responsible. But we can at least show the parent versus
681681
# just the generic handler:
682-
if session.via_exploit == "exploit/multi/handler"
682+
if session and session.via_exploit == "exploit/multi/handler"
683683
sess_data[:via_exploit] = sess_data[:datastore]['ParentModule']
684684
end
685685

0 commit comments

Comments
 (0)