Cookies: Added Missing gcrypt Check to Chrome Decryption

This commit is contained in:
Moss 2022-10-01 14:32:46 -04:00
parent ecfdad54c5
commit 0085adf4d9
1 changed files with 5 additions and 0 deletions

View File

@ -575,6 +575,7 @@ namespace dropout_dl {
void cookie::chrome_decrypt(const std::string &password, int iterations, const std::string &salt, int length) { void cookie::chrome_decrypt(const std::string &password, int iterations, const std::string &salt, int length) {
#ifdef DROPOUT_DL_GCRYPT
this->format_from_chrome(); this->format_from_chrome();
uint8_t key[32]; uint8_t key[32];
@ -615,6 +616,10 @@ namespace dropout_dl {
this->value = this->value.substr(0, this->len - 7); this->value = this->value.substr(0, this->len - 7);
this->len -= 7; this->len -= 7;
#else
std::cerr << "CHROME COOKIE ERROR: Attempted to Decrypt Chrome Cookie With libgcrypt\n";
exit(12);
#endif
} }
void cookie::url_decode() { void cookie::url_decode() {