Merge branch 'onedrive-pr' of https://github.com/mr64bit/Empire into mr64bit-onedrive-pr

3.0-Beta
chris 2018-03-15 15:48:25 -04:00
commit e45da8c838
1 changed files with 3 additions and 1 deletions

View File

@ -905,11 +905,13 @@ class Agents:
self.lock.release()
def update_agent_lastseen_db(self, sessionID, current_time=helpers.get_datetime()):
def update_agent_lastseen_db(self, sessionID, current_time=None):
"""
Update the agent's last seen timestamp in the database.
"""
if not current_time:
current_time = helpers.get_datetime()
conn = self.get_db_connection()
try:
self.lock.acquire()