From c37874a546d9eb3b1d89665e768f006c59405cb3 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Wed, 14 Mar 2018 01:43:09 -0400 Subject: [PATCH] Fix line 302 & 305 in onedrive.py listener class agent_delay variable cannot be used in place of the REPLACE_POLLING_INTERVAL string. working_hours was not being used. --- lib/listeners/onedrive.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/listeners/onedrive.py b/lib/listeners/onedrive.py index a652297..f9e8581 100644 --- a/lib/listeners/onedrive.py +++ b/lib/listeners/onedrive.py @@ -289,7 +289,7 @@ class Listener: staging_folder = listenerOptions['StagingFolder']['Value'] working_hours = listenerOptions['WorkingHours']['Value'] profile = listenerOptions['DefaultProfile']['Value'] - agent_delay = listenerOptions['DefaultDelay']['Value'] + poll_interval = listenerOptions['PollInterval']['Value'] if language.lower() == 'powershell': f = open("%s/data/agent/stagers/onedrive.ps1" % self.mainMenu.installPath) @@ -299,10 +299,10 @@ class Listener: stager = stager.replace("REPLACE_STAGING_FOLDER", "%s/%s" % (base_folder, staging_folder)) stager = stager.replace('REPLACE_STAGING_KEY', staging_key) stager = stager.replace("REPLACE_TOKEN", token) - stager = stager.replace("REPLACE_POLLING_INTERVAL", agent_delay) + stager = stager.replace("REPLACE_POLLING_INTERVAL", poll_interval) if working_hours != "": - stager = stager.replace("REPLACE_WORKING_HOURS") + stager = stager.replace("REPLACE_WORKING_HOURS", working_hours) randomized_stager = ''