Merge branch 'template-path' of https://github.com/DakotaNelson/Empire into DakotaNelson-template-path
commit
58ccf93246
|
@ -431,7 +431,9 @@ class Listener:
|
|||
|
||||
|
||||
elif language.lower() == 'python':
|
||||
template_path = os.path.join(self.mainMenu.installPath, '/data/agent/stagers')
|
||||
template_path = [
|
||||
os.path.join(self.mainMenu.installPath, '/data/agent/stagers'),
|
||||
os.path.join(self.mainMenu.installPath, './data/agent/stagers')]
|
||||
eng = templating.TemplateEngine(template_path)
|
||||
template = eng.get_template('dropbox.py')
|
||||
|
||||
|
|
|
@ -593,7 +593,9 @@ class Listener:
|
|||
return randomizedStager
|
||||
|
||||
elif language.lower() == 'python':
|
||||
template_path = os.path.join(self.mainMenu.installPath, 'data/agent/stagers')
|
||||
template_path = [
|
||||
os.path.join(self.mainMenu.installPath, '/data/agent/stagers'),
|
||||
os.path.join(self.mainMenu.installPath, './data/agent/stagers')]
|
||||
eng = templating.TemplateEngine(template_path)
|
||||
template = eng.get_template('http.py')
|
||||
|
||||
|
|
Loading…
Reference in New Issue