Bug fix for installations transitioning to autorun code with old database.

1.6
Harmj0y 2015-12-01 12:15:01 -05:00
parent 9d9389d0a1
commit d03cecbc37
1 changed files with 1 additions and 1 deletions

View File

@ -1401,7 +1401,7 @@ class Agents:
# if a script autorun is set, set that as the agent's first tasking
autorun = self.get_autoruns()
if autorun[0] != '' and autorun[1] != '':
if autorun and autorun[0] != '' and autorun[1] != '':
self.add_agent_task(sessionID, autorun[0], autorun[1])
return(200, encryptedAgent)