feat: add firefox parse and output

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-07-06 16:13:25 +08:00
parent 2add34ae20
commit fc8f965fdd
5 changed files with 73 additions and 21 deletions
+1
View File
@@ -42,6 +42,7 @@ const (
History = "History"
Cookies = "Cookies"
Bookmarks = "Bookmarks"
FirefoxCookie = "cookies.sqlite"
)
func ListBrowser() []string {
+6
View File
@@ -115,3 +115,9 @@ func PKCS5UnPadding(src []byte) []byte {
unpadding := int(src[length-1])
return src[:(length - unpadding)]
}
func PKCS7UnPadding(origData []byte)[]byte{
length := len(origData)
unpadding := int(origData[length-1])
return origData[:length-unpadding]
}