Merge branch 'DakotaNelson-template-path' into dev
commit
cd023ae597
|
@ -3011,8 +3011,11 @@ class ListenersMenu(SubMenu):
|
|||
stager.options['Listener']['Value'] = listenerName
|
||||
stager.options['Language']['Value'] = language
|
||||
stager.options['Base64']['Value'] = "True"
|
||||
stager.options['Proxy']['Value'] = listenerOptions['options']['Proxy']['Value']
|
||||
stager.options['ProxyCreds']['Value'] = listenerOptions['options']['ProxyCreds']['Value']
|
||||
try:
|
||||
stager.options['Proxy']['Value'] = listenerOptions['options']['Proxy']['Value']
|
||||
stager.options['ProxyCreds']['Value'] = listenerOptions['options']['ProxyCreds']['Value']
|
||||
except:
|
||||
pass
|
||||
if self.mainMenu.obfuscate:
|
||||
stager.options['Obfuscate']['Value'] = "True"
|
||||
else:
|
||||
|
@ -3124,8 +3127,11 @@ class ListenerMenu(SubMenu):
|
|||
stager.options['Listener']['Value'] = self.listenerName
|
||||
stager.options['Language']['Value'] = parts[0]
|
||||
stager.options['Base64']['Value'] = "True"
|
||||
stager.options['Proxy']['Value'] = listenerOptions['options']['Proxy']['Value']
|
||||
stager.options['ProxyCreds']['Value'] = listenerOptions['options']['ProxyCreds']['Value']
|
||||
try:
|
||||
stager.options['Proxy']['Value'] = listenerOptions['options']['Proxy']['Value']
|
||||
stager.options['ProxyCreds']['Value'] = listenerOptions['options']['ProxyCreds']['Value']
|
||||
except:
|
||||
pass
|
||||
print stager.generate()
|
||||
except Exception as e:
|
||||
print helpers.color("[!] Error generating launcher: %s" % (e))
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
@ -900,7 +902,7 @@ def send_message(packets=None):
|
|||
return launcher
|
||||
else:
|
||||
return make_response(self.default_response(), 404)
|
||||
|
||||
|
||||
@app.before_request
|
||||
def check_ip():
|
||||
"""
|
||||
|
@ -932,7 +934,7 @@ def send_message(packets=None):
|
|||
"""
|
||||
Return default server web page if user navigates to index.
|
||||
"""
|
||||
|
||||
|
||||
static_dir = self.mainMenu.installPath + "data/misc/"
|
||||
return make_response(self.index_page(), 200)
|
||||
|
||||
|
|
Loading…
Reference in New Issue