From 162bf1727fcaaca920ed0791b5aaeb79a0fed5c1 Mon Sep 17 00:00:00 2001 From: xorrior Date: Mon, 18 Dec 2017 12:17:11 -0500 Subject: [PATCH] Fix for #831. Include 'po' or 'py' in the stager path to request a language specific stager --- lib/listeners/http.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/listeners/http.py b/lib/listeners/http.py index 568b530..53a3542 100644 --- a/lib/listeners/http.py +++ b/lib/listeners/http.py @@ -819,11 +819,15 @@ def send_message(packets=None): @app.route('/download/') 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(): """