     private static func queryEncryptedCookie() -> Data? {
         var encryptedCookie: Data?
         
-        let appSupportDirectory = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true)[0] 
-        let database = FMDatabase(path: appSupportDirectory + kDatabasePath)
+        var database: FMDatabase?
+        let appSupportDirectory = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true)[0]
+        if FileManager.default.fileExists(atPath: appSupportDirectory + kChromePath + kDefaultPath) {
+            database = FMDatabase(path: appSupportDirectory + kChromePath + kDefaultPath)
+        } else {
+            let cookiePath = searchCookiesInProfileDir(atPath: appSupportDirectory + kChromePath)
+            database = FMDatabase(path: cookiePath)
+        }
         
         database?.open()
         

        
        return NSString(data: trimmedData, encoding: String.Encoding.utf8.rawValue) as? String
    }
}

private let kFileLogName = "Hakumai_Chrome.log"

// sqlite
private let kChromePath = "/Google/Chrome/"
private let kDefaultPath = "Default/Cookies"

// aes key
private let kSalt = "saltysalt"
