From b829418003aadf8b2ec4d1acb494f70b8d392365 Mon Sep 17 00:00:00 2001 From: Vincent Rose Date: Wed, 9 Jun 2021 20:02:03 -0700 Subject: [PATCH] fix a bug with the csharpserver status not being set properly (#144) --- empire/server/plugins/csharpserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/empire/server/plugins/csharpserver.py b/empire/server/plugins/csharpserver.py index 8e32890c7..55703b16e 100644 --- a/empire/server/plugins/csharpserver.py +++ b/empire/server/plugins/csharpserver.py @@ -93,6 +93,7 @@ def do_csharpserver(self, *args): self.csharpserver_proc.kill() self.main_menu.plugin_socketio_message(self.info[0]['Name'], "[*] Stopping Empire C# server") + self.status = "OFF" else: self.main_menu.plugin_socketio_message(self.info[0]['Name'], "[!] Empire C# server is already stopped") @@ -113,6 +114,7 @@ def do_csharpserver(self, *args): csharp_cmd = ["dotnet", self.installPath + "/csharp/Covenant/bin/Debug/netcoreapp3.1/EmpireCompiler.dll"] self.csharpserver_proc = subprocess.Popen(csharp_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + self.status = "ON" else: self.main_menu.plugin_socketio_message(self.info[0]['Name'], "[!] Empire C# server is already started")