@@ -736,17 +736,18 @@ def report_session(opts)
736
736
h_opts [ :workspace ] = wspace
737
737
host = find_or_create_host ( h_opts )
738
738
sess_data = {
739
- :host_id => host . id ,
740
- :stype => session . type ,
741
- :desc => session . info ,
742
- :platform => session . platform ,
743
- :via_payload => session . via_payload ,
744
- :via_exploit => session . via_exploit ,
745
- :routes => [ ] ,
746
- :datastore => session . exploit_datastore . to_h ,
747
- :opened_at => Time . now . utc ,
748
- :last_seen => Time . now . utc ,
749
- :local_id => session . sid
739
+ :host_id => host . id ,
740
+ :stype => session . type ,
741
+ :desc => session . info ,
742
+ :platform => session . platform ,
743
+ :via_payload => session . via_payload ,
744
+ :via_exploit => session . via_exploit ,
745
+ :routes => [ ] ,
746
+ :datastore => session . exploit_datastore . to_h ,
747
+ :port => session . session_port ,
748
+ :opened_at => Time . now . utc ,
749
+ :last_seen => Time . now . utc ,
750
+ :local_id => session . sid
750
751
}
751
752
elsif opts [ :host ]
752
753
raise ArgumentError . new ( "Invalid :host, expected Host object" ) unless opts [ :host ] . kind_of? ::Mdm ::Host
0 commit comments