fix: wrong yandex password filename

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ 2022-04-13 16:44:52 +08:00
parent d65c0ca068
commit 6928944b53
3 changed files with 4 additions and 2 deletions

View File

@ -71,6 +71,7 @@ func (d *Data) addSource(Sources []item.Item) {
const (
queryChromiumCredit = `SELECT guid, name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards`
queryChromiumLogin = `SELECT origin_url, username_value, password_value, date_created FROM logins`
queryYandexLogin = `SELECT action_url, username_value, password_value, date_created FROM logins`
queryChromiumHistory = `SELECT url, title, visit_count, last_visit_time FROM urls`
queryChromiumDownload = `SELECT target_path, tab_url, total_bytes, start_time, end_time, mime_type FROM downloads`
queryChromiumCookie = `SELECT name, encrypted_value, host_key, path, creation_utc, expires_utc, is_secure, is_httponly, has_expires, is_persistent FROM cookies`

View File

@ -86,7 +86,7 @@ func (c *YandexPassword) Parse(masterKey []byte) error {
}
defer os.Remove(item.TempYandexPassword)
defer loginDB.Close()
rows, err := loginDB.Query(queryChromiumLogin)
rows, err := loginDB.Query(queryYandexLogin)
if err != nil {
return err
}
@ -106,6 +106,7 @@ func (c *YandexPassword) Parse(masterKey []byte) error {
encryptPass: pwd,
LoginUrl: url,
}
log.Debug(login)
if len(pwd) > 0 {
var err error
if masterKey == nil {

View File

@ -11,7 +11,7 @@ const (
fileChromiumBookmark = "Bookmarks"
fileChromiumLocalStorage = "chromiumLocalStorage"
fileYandexPassword = "Ya PassMan Data"
fileYandexPassword = "Ya Passman Data"
fileYandexCredit = "Ya Credit Cards"
fileFirefoxKey4 = "key4.db"