archive
/
pithos
Archived
1
Fork 0

added function calling code framework and single entry

This commit is contained in:
Jake Howard 2015-01-10 23:17:43 +00:00
parent bd0a281a0b
commit a589a3ac80
1 changed files with 19 additions and 10 deletions

View File

@ -10,25 +10,34 @@ namespace Pithos
{
class pithosPrograms
{
private static volatile bool DIE = false;
public static volatile bool DIE = false;
private static string tempPath = Path.GetTempPath();
private static bool isSubtle(string[] input) { return (input[0].Substring(0, 1) == "-" && input[0].ToLower().Contains('s')); }
private static bool isSubtle(string[] input) { try { return (input[1].Substring(0, 1) == "-" && input[1].ToLower().Contains('s')); } catch { return false; } }
public static void decodeInput(string text)
public static bool decodeInput(string text)
{
string[] input = text.Replace("/exec ", "").Split(' ');
string[] input = text.ToLower().Replace("/exec ", "").Split(' ');
bool subtle = isSubtle(input);
string execution = input[1];
string execution = input[0];
switch (execution)
{
case "doyouknow?":
theBird(subtle);
break;
default:
return false;
}
Program.MW.display("Execution Complete.", Color.Blue);
return true;
}
private static void theBird(bool subtle) {
if (subtle) {
private static void theBird(bool subtleMode) {
if (subtleMode) {
Thread thr = new Thread(new ThreadStart(theBirdSubtle));
thr.Start();
Program.MW.display("Bird Thread Started.", Color.Orange);
Program.MW.display("Bird Thread Started.", Color.Blue);
} else {
Program.MW.display("Generating Windows...", Color.ForestGreen);
Program.MW.display("Generating Windows...", Color.Blue);
for (int i = 0; i < 300; i++) { Process.Start("\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" www.aboutthebird.com"); }
}
}