aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-01-21 21:27:25 -0500
committerMichael <[email protected]>2017-01-21 21:27:25 -0500
commit2ce2214d5e43fb625c2f9cde22f791ee097643e1 (patch)
treec7b8908f604af0cb9bbf5a63cf41bebeb2fe8881 /ShiftOS.Server
parent19b7f5b98330335f51efd52b0f744e6174e987fe (diff)
downloadshiftos_thereturn-2ce2214d5e43fb625c2f9cde22f791ee097643e1.tar.gz
shiftos_thereturn-2ce2214d5e43fb625c2f9cde22f791ee097643e1.tar.bz2
shiftos_thereturn-2ce2214d5e43fb625c2f9cde22f791ee097643e1.zip
Commands can now be locked out of remote sessions
Try using sos.shutdown remotely... it won't work. :stuck_out_tongue_winking_eye:
Diffstat (limited to 'ShiftOS.Server')
-rw-r--r--ShiftOS.Server/Program.cs5
1 files changed, 5 insertions, 0 deletions
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<Dictionary<string, object>>(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":