@@ -721,17 +721,18 @@ def report_session(opts)
721
721
h_opts [ :workspace ] = wspace
722
722
host = find_or_create_host ( h_opts )
723
723
sess_data = {
724
- :host_id => host . id ,
725
- :stype => session . type ,
726
- :desc => session . info ,
727
- :platform => session . platform ,
728
- :via_payload => session . via_payload ,
729
- :via_exploit => session . via_exploit ,
730
- :routes => [ ] ,
731
- :datastore => session . exploit_datastore . to_h ,
732
- :opened_at => Time . now . utc ,
733
- :last_seen => Time . now . utc ,
734
- :local_id => session . sid
724
+ :host_id => host . id ,
725
+ :stype => session . type ,
726
+ :desc => session . info ,
727
+ :platform => session . platform ,
728
+ :via_payload => session . via_payload ,
729
+ :via_exploit => session . via_exploit ,
730
+ :routes => [ ] ,
731
+ :datastore => session . exploit_datastore . to_h ,
732
+ :port => session . session_port ,
733
+ :opened_at => Time . now . utc ,
734
+ :last_seen => Time . now . utc ,
735
+ :local_id => session . sid
735
736
}
736
737
elsif opts [ :host ]
737
738
raise ArgumentError . new ( "Invalid :host, expected Host object" ) unless opts [ :host ] . kind_of? ::Mdm ::Host
0 commit comments