@@ -6,12 +6,13 @@ import (
66 "sort"
77 "time"
88
9- _ "github.com/mattn/go-sqlite3"
10-
119 "hack-browser-data/internal/decrypter"
1210 "hack-browser-data/internal/item"
1311 "hack-browser-data/internal/log"
1412 "hack-browser-data/internal/utils/typeutil"
13+
14+ // import sqlite3 driver
15+ _ "github.com/mattn/go-sqlite3"
1516)
1617
1718type ChromiumCookie []cookie
@@ -72,7 +73,7 @@ func (c *ChromiumCookie) Parse(masterKey []byte) error {
7273 if len (encryptValue ) > 0 {
7374 var err error
7475 if masterKey == nil {
75- value , err = decrypter .DPApi (encryptValue )
76+ value , err = decrypter .DPAPI (encryptValue )
7677 } else {
7778 value , err = decrypter .Chromium (masterKey , encryptValue )
7879 }
@@ -118,18 +119,18 @@ func (f *FirefoxCookie) Parse(masterKey []byte) error {
118119 for rows .Next () {
119120 var (
120121 name , value , host , path string
121- isSecure , isHttpOnly int
122+ isSecure , isHTTPOnly int
122123 creationTime , expiry int64
123124 )
124- if err = rows .Scan (& name , & value , & host , & path , & creationTime , & expiry , & isSecure , & isHttpOnly ); err != nil {
125+ if err = rows .Scan (& name , & value , & host , & path , & creationTime , & expiry , & isSecure , & isHTTPOnly ); err != nil {
125126 log .Warn (err )
126127 }
127128 * f = append (* f , cookie {
128129 KeyName : name ,
129130 Host : host ,
130131 Path : path ,
131132 IsSecure : typeutil .IntToBool (isSecure ),
132- IsHTTPOnly : typeutil .IntToBool (isHttpOnly ),
133+ IsHTTPOnly : typeutil .IntToBool (isHTTPOnly ),
133134 CreateDate : typeutil .TimeStamp (creationTime / 1000000 ),
134135 ExpireDate : typeutil .TimeStamp (expiry ),
135136 Value : value ,
0 commit comments