From f72c94b51466128b57312f39a936452ea4edcca4 Mon Sep 17 00:00:00 2001 From: James Lee Date: Tue, 26 Apr 2011 21:29:47 +0000 Subject: [PATCH] default last_seen to sane values so we don't orphan all sessions right away. =/ git-svn-id: file:///home/svn/framework3/trunk@12446 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/db.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index c3f192d7cb..94f27a6103 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -450,6 +450,7 @@ class DBManager :routes => [], :datastore => session.exploit_datastore.to_h, :opened_at => Time.now.utc, + :last_seen => Time.now.utc, :local_id => session.sid } elsif opts[:host] @@ -466,6 +467,7 @@ class DBManager :datastore => opts[:datastore], :opened_at => opts[:opened_at], :closed_at => opts[:closed_at], + :last_seen => opts[:last_seen] || opts[:closed_at], :close_reason => opts[:close_reason], } else