Fix for #831. Include 'po' or 'py' in the stager path to request a language specific stager
parent
659b15f86c
commit
162bf1727f
|
@ -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():
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue