added more decoding statements
This commit is contained in:
parent
cc02421f24
commit
416049eacc
1 changed files with 13 additions and 7 deletions
22
decode.cs
22
decode.cs
|
@ -4,28 +4,34 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Drawing;
|
||||
using System.Diagnostics;
|
||||
namespace Pithos
|
||||
{
|
||||
class decode
|
||||
{
|
||||
public decode() { }
|
||||
public string injectVariables(string text)
|
||||
{
|
||||
public string injectVariables(string text) {
|
||||
text = text.Replace("$user", Environment.UserName);
|
||||
return text;
|
||||
}
|
||||
|
||||
|
||||
public void command(string text)
|
||||
{
|
||||
public void command(string text) {
|
||||
string[] args = text.Substring(1).Split(' ');//splits string and removed character
|
||||
|
||||
if (args[0] == "lock")
|
||||
{
|
||||
if (args[0] == "lock") { //locks the program
|
||||
Program.MW.display("Locking Software...", Color.Red);
|
||||
Program.MW.Hide();
|
||||
Program.UL.Show();
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (args[0] == "hash") { //hash things
|
||||
for (int i = 1; i < args.Length; i++) {
|
||||
Program.MW.display("String: " + args[i] + " Hash: " + tools.hash(args[0]), Color.Green);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
else if (args[0] == "shutdown") { Process.Start("shutdown /s /t 0"); } //shutdown computer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue