Merge branch 'onedrive-pr' of https://github.com/mr64bit/Empire into mr64bit-onedrive-pr
commit
e45da8c838
|
@ -905,11 +905,13 @@ class Agents:
|
||||||
self.lock.release()
|
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.
|
Update the agent's last seen timestamp in the database.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if not current_time:
|
||||||
|
current_time = helpers.get_datetime()
|
||||||
conn = self.get_db_connection()
|
conn = self.get_db_connection()
|
||||||
try:
|
try:
|
||||||
self.lock.acquire()
|
self.lock.acquire()
|
||||||
|
|
Loading…
Reference in New Issue