feat: add local storage for firefox

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-04-19 21:28:43 +08:00
parent f5c3e6da5e
commit 121e49bdff
8 changed files with 213 additions and 9 deletions
+5
View File
@@ -8,6 +8,7 @@ import (
"hack-browser-data/internal/browingdata/creditcard"
"hack-browser-data/internal/browingdata/download"
"hack-browser-data/internal/browingdata/history"
"hack-browser-data/internal/browingdata/localstorage"
"hack-browser-data/internal/browingdata/password"
"hack-browser-data/internal/item"
"hack-browser-data/internal/log"
@@ -75,6 +76,8 @@ func (d *Data) addSource(Sources []item.Item) {
d.sources[source] = &download.ChromiumDownload{}
case item.ChromiumCreditCard:
d.sources[source] = &creditcard.ChromiumCreditCard{}
case item.ChromiumLocalStorage:
d.sources[source] = &localstorage.ChromiumLocalStorage{}
case item.YandexPassword:
d.sources[source] = &password.YandexPassword{}
case item.YandexCreditCard:
@@ -89,6 +92,8 @@ func (d *Data) addSource(Sources []item.Item) {
d.sources[source] = &history.FirefoxHistory{}
case item.FirefoxDownload:
d.sources[source] = &download.FirefoxDownload{}
case item.FirefoxLocalStorage:
d.sources[source] = &localstorage.FirefoxLocalStorage{}
}
}
}