From 2ce2214d5e43fb625c2f9cde22f791ee097643e1 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Jan 2017 21:27:25 -0500 Subject: Commands can now be locked out of remote sessions Try using sos.shutdown remotely... it won't work. :stuck_out_tongue_winking_eye: --- ShiftOS.Server/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ShiftOS.Server/Program.cs') diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs index 3e0455a..7204127 100644 --- a/ShiftOS.Server/Program.cs +++ b/ShiftOS.Server/Program.cs @@ -326,16 +326,21 @@ Contents: } break; case "trm_invcmd": + Console.WriteLine("Before arg check"); + args = JsonConvert.DeserializeObject>(msg.Contents); if(args["guid"] != null && args["command"] != null) { + Console.WriteLine("arg check finished"); string cmd = args["command"] as string; string cGuid = args["guid"] as string; + Console.WriteLine("Before dispatch"); server.DispatchTo(new Guid(cGuid), new NetObject("trminvoke", new ServerMessage { Name = "trm_invokecommand", GUID = "server", Contents = cmd })); + Console.WriteLine("After dispatch"); } break; case "usr_givecp": -- cgit v1.2.3