Update agent in database when sleep setting is changed to display latest checkin correctly.
This commit is contained in:
@@ -11,7 +11,7 @@ export shell, sleep
|
||||
[ ] cd : Change directory
|
||||
[ ] ls/dir : List all files in directory (including hidden ones)
|
||||
[ ] cat/type : Display contents of a file
|
||||
[ ] sleep : Set sleep obfuscation duration to a different value and persist that value in the agent
|
||||
[~] sleep : Set sleep obfuscation duration to a different value and persist that value in the agent
|
||||
|
||||
Post-exploitation
|
||||
-----------------
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
import nanoid, sequtils, strutils, strformat, terminal, times
|
||||
import ../../types
|
||||
import ../../db/database
|
||||
|
||||
proc taskExecuteSleep*(cq: Conquest, delay: int) =
|
||||
|
||||
# Update 'sleep' value in database
|
||||
if not cq.dbUpdateSleep(cq.interactAgent.name, delay):
|
||||
return
|
||||
|
||||
# Create a new task
|
||||
let
|
||||
date: string = now().format("dd-MM-yyyy HH:mm:ss")
|
||||
|
||||
Reference in New Issue
Block a user