aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarver Harrison <[email protected]>2016-07-22 18:55:04 -0700
committerCarver Harrison <[email protected]>2016-07-22 18:55:04 -0700
commitfd9b6b65ff75c1e7b7be9d11865cb14ab3371bd9 (patch)
tree7dec2c9ad4d7d34f89c8d467fe2f8e5f87c8cba5
parentcb080862d5afd4dbce2bc970ba54e579757f96f7 (diff)
downloadshiftos-c-_theultimatehacker-fd9b6b65ff75c1e7b7be9d11865cb14ab3371bd9.tar.gz
shiftos-c-_theultimatehacker-fd9b6b65ff75c1e7b7be9d11865cb14ab3371bd9.tar.bz2
shiftos-c-_theultimatehacker-fd9b6b65ff75c1e7b7be9d11865cb14ab3371bd9.zip
Core Utils
-rw-r--r--ShiftOS.zipbin452753 -> 3787628 bytes
-rw-r--r--source/WindowsFormsApplication1/Apps/Terminal.cs35
2 files changed, 33 insertions, 2 deletions
diff --git a/ShiftOS.zip b/ShiftOS.zip
index 09b33ca..aa33205 100644
--- a/ShiftOS.zip
+++ b/ShiftOS.zip
Binary files differ
diff --git a/source/WindowsFormsApplication1/Apps/Terminal.cs b/source/WindowsFormsApplication1/Apps/Terminal.cs
index 9d072fd..6d4880c 100644
--- a/source/WindowsFormsApplication1/Apps/Terminal.cs
+++ b/source/WindowsFormsApplication1/Apps/Terminal.cs
@@ -1615,13 +1615,44 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o
}
if (done == false)
{
- // Lua Executer By Carver Harrison (@carverh)
+ // This runs LUA and EXE Applications
+ // Created By Carver Harrison (@carverh)
if (File.Exists("C:\\ShiftOS\\LuaApps\\" + args[0] + ".lua"))
{
- String lp = "C:\\ShiftOS\\LuaApps\\" + args[0] + ".lua";
+ string lp = "C:\\ShiftOS\\LuaApps\\" + args[0] + ".lua";
WriteLine(lp);
var l = new LuaInterpreter(lp);
}
+ else if (File.Exists("C:\\ShiftOS\\bin\\" + args[0] + ".exe"))
+ {
+ bool isFirstArg = true;
+ string exeArgs = "";
+ foreach (string arg in args)
+ {
+ if (!isFirstArg)
+ {
+ exeArgs = exeArgs + " " + arg;
+ }
+ else
+ {
+ isFirstArg = false;
+ }
+ }
+ string lp = "C:\\ShiftOS\\bin\\" + args[0] + ".exe";
+ Process p = new Process();
+ p.StartInfo.Arguments = exeArgs;
+ p.StartInfo.UseShellExecute = false;
+ p.StartInfo.RedirectStandardOutput = true;
+ p.StartInfo.FileName = lp;
+ p.StartInfo.CreateNoWindow = true;
+ p.StartInfo.ErrorDialog = false;
+ p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
+ p.StartInfo.WorkingDirectory = current_dir;
+ p.Start();
+
+ WriteLine(p.StandardOutput.ReadToEnd());
+ p.WaitForExit();
+ }
else
{
wrongcommand();