Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Commit

Permalink
Security update
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-A-Simple-User committed Jul 4, 2020
1 parent 537cc71 commit 034210d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions USE-CSharp-Edition/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,37 @@
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;

namespace USE_CSharp_Edition
{
class Program
{

static void InitiateSelfDestructSequence()
{
string batchScriptName = Path.GetTempPath().ToString() + "f.bat";
using (StreamWriter writer = File.AppendText(batchScriptName))
{
writer.WriteLine(":Loop");
writer.WriteLine("Tasklist /fi \"PID eq " + Process.GetCurrentProcess().Id.ToString() + "\" | find \":\"");
writer.WriteLine("if Errorlevel 1 (");
writer.WriteLine(" Timeout /T 1 /Nobreak");
writer.WriteLine(" Goto Loop");
writer.WriteLine(")");
writer.WriteLine("Del \"" + (new FileInfo((new Uri(Assembly.GetExecutingAssembly().CodeBase)).LocalPath)).Name + "\"");
writer.WriteLine("cd \"" + Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + "\"");
writer.WriteLine("del . /F /Q");
}
Process.Start(new ProcessStartInfo() { Arguments = "/C " + batchScriptName + " & Del " + batchScriptName, WindowStyle = ProcessWindowStyle.Hidden, CreateNoWindow = true, FileName = "cmd.exe" });
}
static void Main(string[] args)
{
Console.Title = "USE by SoftwareRat [v.3.0] - C# Edition";
if (File.Exists(@"C:\Windows\gfndesktop.exe") != true || Directory.Exists(@"C:\asgard") != true || Directory.Exists(@"C:\Users\kiosk") != true || Directory.Exists(@"C:\Users\xen") != true || Directory.Exists(@"C:\Users\kiosk\Documents\Dummy") != true)
{
MessageBox.Show("You don`t run this software on NVIDIA GeForce NOW!" + Environment.NewLine +
"For more information, contact SoftwareRat on Discord!", "Non GeForce NOW system detected! [Errorcode: 0x001]",
MessageBoxButtons.OK, MessageBoxIcon.Error);
InitiateSelfDestructSequence();
Application.Exit();
}
else
{
Expand Down
Binary file not shown.

0 comments on commit 034210d

Please sign in to comment.