From 57a5fae21d6e60cde47b8442acafefff217254b6 Mon Sep 17 00:00:00 2001 From: Adam DeMamp Date: Sun, 20 Nov 2016 17:57:30 +0000 Subject: [PATCH] fixed pyinstaller so it now works with empire 2.0_beta for linux targets --- lib/stagers/{osx => multi}/pyinstaller.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename lib/stagers/{osx => multi}/pyinstaller.py (98%) diff --git a/lib/stagers/osx/pyinstaller.py b/lib/stagers/multi/pyinstaller.py similarity index 98% rename from lib/stagers/osx/pyinstaller.py rename to lib/stagers/multi/pyinstaller.py index 3fe4128..f3ed942 100644 --- a/lib/stagers/osx/pyinstaller.py +++ b/lib/stagers/multi/pyinstaller.py @@ -117,7 +117,7 @@ class Stager: cur.close() import os - stagerFFP_Str = os.path.join(installPath_Str, "data/agent/stager.py") + stagerFFP_Str = os.path.join(installPath_Str, "data/agent/stagers/http.py") filesToExtractImportsFrom_List.append(stagerFFP_Str) agentFFP_Str = os.path.join(installPath_Str, "data/agent/agent.py") @@ -135,6 +135,8 @@ class Stager: helpers.color(line) imports_List.append(line) + imports_List.append('import trace') + imports_List.append('import json') imports_List = list(set(imports_List)) # removing duplicate strings imports_Str = "\n".join(imports_List) launcher = imports_Str + "\n" + launcher