源码:
try { string database = @"C:\Users\" + System.Environment.UserName + @"\AppData\Local\Google\Chrome\User Data\Default\Login Data"; string temp = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Login Data"); File.Copy(database, temp, true); byte[] entropy = System.Text.Encoding.Default.GetBytes(""); string description; DataTable dt = SqlLite_Helper.ExecuteDataTable(@" select action_url as 源URL,action_url as 执行URL,username_value as 用户名,password_value as 密码 from logins ", null); DataTable result = dt.Copy(); result.Columns.Remove("密码"); result.Columns.Add("密码", Type.GetType("System.String")); for (int i = 0; i < dt.Rows.Count; i++) { result.Rows[i]["密码"] = System.Text.Encoding.Default.GetString(DPAPI.Decrypt((dt.Rows[i]["密码"] as byte[]), entropy, out description)); } dataGridView1.DataSource = result; } catch (Exception ex) { MessageBox.Show(ex.Message); }
源码下载地址:谷歌浏览器密码查看器.zip
原文地址:https://www.cnblogs.com/tlmbem/p/10690154.html
时间: 2024-11-05 21:39:21