Fix for #831. Include 'po' or 'py' in the stager path to request a language specific stager

readme-wiki
xorrior 2017-12-18 12:17:11 -05:00
parent 659b15f86c
commit 162bf1727f
1 changed files with 5 additions and 1 deletions

View File

@ -819,11 +819,15 @@ def send_message(packets=None):
@app.route('/download/<stager>')
def send_stager(stager):
if stager:
if 'po' in stager:
launcher = self.mainMenu.stagers.generate_launcher(listenerName, language='powershell', encode=False, userAgent=userAgent, proxy=proxy, proxyCreds=proxyCreds)
return launcher
elif 'py' in stager:
launcher = self.mainMenu.stagers.generate_launcher(listenerName, language='python', encode=False, userAgent=userAgent, proxy=proxy, proxyCreds=proxyCreds)
return launcher
else:
pass
@app.before_request
def check_ip():
"""