|
|
@ -1,34 +1,7 @@ |
|
|
|
package item |
|
|
|
package item |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"hack-browser-data/internal/browser/data" |
|
|
|
data2 "hack-browser-data/internal/data" |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type Item int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
|
|
|
ChromiumKey Item = iota |
|
|
|
|
|
|
|
ChromiumPassword |
|
|
|
|
|
|
|
ChromiumCookie |
|
|
|
|
|
|
|
ChromiumBookmark |
|
|
|
|
|
|
|
ChromiumHistory |
|
|
|
|
|
|
|
ChromiumDownload |
|
|
|
|
|
|
|
ChromiumCreditCard |
|
|
|
|
|
|
|
ChromiumLocalStorage |
|
|
|
|
|
|
|
ChromiumExtension |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
YandexPassword |
|
|
|
|
|
|
|
YandexCreditCard |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FirefoxKey4 |
|
|
|
|
|
|
|
FirefoxPassword |
|
|
|
|
|
|
|
FirefoxCookie |
|
|
|
|
|
|
|
FirefoxBookmark |
|
|
|
|
|
|
|
FirefoxHistory |
|
|
|
|
|
|
|
FirefoxDownload |
|
|
|
|
|
|
|
FirefoxCreditCard |
|
|
|
|
|
|
|
FirefoxLocalStorage |
|
|
|
|
|
|
|
FirefoxExtension |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
var DefaultFirefox = []Item{ |
|
|
|
var DefaultFirefox = []Item{ |
|
|
@ -67,6 +40,33 @@ var DefaultChromium = []Item{ |
|
|
|
ChromiumExtension, |
|
|
|
ChromiumExtension, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type Item int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
|
|
|
ChromiumKey Item = iota |
|
|
|
|
|
|
|
ChromiumPassword |
|
|
|
|
|
|
|
ChromiumCookie |
|
|
|
|
|
|
|
ChromiumBookmark |
|
|
|
|
|
|
|
ChromiumHistory |
|
|
|
|
|
|
|
ChromiumDownload |
|
|
|
|
|
|
|
ChromiumCreditCard |
|
|
|
|
|
|
|
ChromiumLocalStorage |
|
|
|
|
|
|
|
ChromiumExtension |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
YandexPassword |
|
|
|
|
|
|
|
YandexCreditCard |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FirefoxKey4 |
|
|
|
|
|
|
|
FirefoxPassword |
|
|
|
|
|
|
|
FirefoxCookie |
|
|
|
|
|
|
|
FirefoxBookmark |
|
|
|
|
|
|
|
FirefoxHistory |
|
|
|
|
|
|
|
FirefoxDownload |
|
|
|
|
|
|
|
FirefoxCreditCard |
|
|
|
|
|
|
|
FirefoxLocalStorage |
|
|
|
|
|
|
|
FirefoxExtension |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func (i Item) FileName() string { |
|
|
|
func (i Item) FileName() string { |
|
|
|
switch i { |
|
|
|
switch i { |
|
|
|
case ChromiumKey: |
|
|
|
case ChromiumKey: |
|
|
@ -161,40 +161,40 @@ func (i Item) String() string { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (i Item) NewBrowsingData() data.BrowsingData { |
|
|
|
func (i Item) NewBrowsingData() data2.BrowsingData { |
|
|
|
switch i { |
|
|
|
switch i { |
|
|
|
case ChromiumKey: |
|
|
|
case ChromiumKey: |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
case ChromiumPassword: |
|
|
|
case ChromiumPassword: |
|
|
|
return &data.ChromiumPassword{} |
|
|
|
return &data2.ChromiumPassword{} |
|
|
|
case ChromiumCookie: |
|
|
|
case ChromiumCookie: |
|
|
|
return &data.ChromiumCookie{} |
|
|
|
return &data2.ChromiumCookie{} |
|
|
|
case ChromiumBookmark: |
|
|
|
case ChromiumBookmark: |
|
|
|
return &data.ChromiumBookmark{} |
|
|
|
return &data2.ChromiumBookmark{} |
|
|
|
case ChromiumDownload: |
|
|
|
case ChromiumDownload: |
|
|
|
return &data.ChromiumDownload{} |
|
|
|
return &data2.ChromiumDownload{} |
|
|
|
case ChromiumLocalStorage: |
|
|
|
case ChromiumLocalStorage: |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
case ChromiumCreditCard: |
|
|
|
case ChromiumCreditCard: |
|
|
|
return &data.ChromiumCreditCard{} |
|
|
|
return &data2.ChromiumCreditCard{} |
|
|
|
case ChromiumExtension: |
|
|
|
case ChromiumExtension: |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
case ChromiumHistory: |
|
|
|
case ChromiumHistory: |
|
|
|
return &data.ChromiumHistory{} |
|
|
|
return &data2.ChromiumHistory{} |
|
|
|
case YandexPassword: |
|
|
|
case YandexPassword: |
|
|
|
return &data.ChromiumPassword{} |
|
|
|
return &data2.ChromiumPassword{} |
|
|
|
case YandexCreditCard: |
|
|
|
case YandexCreditCard: |
|
|
|
return &data.ChromiumCreditCard{} |
|
|
|
return &data2.ChromiumCreditCard{} |
|
|
|
case FirefoxPassword: |
|
|
|
case FirefoxPassword: |
|
|
|
return &data.FirefoxPassword{} |
|
|
|
return &data2.FirefoxPassword{} |
|
|
|
case FirefoxCookie: |
|
|
|
case FirefoxCookie: |
|
|
|
return &data.FirefoxCookie{} |
|
|
|
return &data2.FirefoxCookie{} |
|
|
|
case FirefoxBookmark: |
|
|
|
case FirefoxBookmark: |
|
|
|
return &data.FirefoxBookmark{} |
|
|
|
return &data2.FirefoxBookmark{} |
|
|
|
case FirefoxDownload: |
|
|
|
case FirefoxDownload: |
|
|
|
return &data.FirefoxDownload{} |
|
|
|
return &data2.FirefoxDownload{} |
|
|
|
case FirefoxHistory: |
|
|
|
case FirefoxHistory: |
|
|
|
return &data.FirefoxHistory{} |
|
|
|
return &data2.FirefoxHistory{} |
|
|
|
default: |
|
|
|
default: |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|