GTFOBins MCP
模型上下文协议(MCP)服务器,充当大型语言模型(LLM)和本地语言模型之间的桥梁 GTFOBins API,允许对Unix二进制文件进行自动查询,这些二进制文件可用于绕过配置错误的系统中的本地安全限制。
此MCP服务器配置为通过STDIO在本地运行。
快速入门指南
1.克隆存储库
git clone https://github.com/malwaredetective/GTFOBins-MCP.git
cd GTFOBins-MCP2.设置Python虚拟环境
python3 -m venv venv
# Run this command to activate your Python Virtual Environment within Linux/macOS
source venv/bin/activate
# Run this command to activate your Python Virtual Environment within Windows
venv\Scripts\activate3.安装Python依赖项
pip install -r requirements.txt4.在首选MCP客户端中配置MCP服务器
- 安装您首选的MCP客户端。
- 根据您的MCP客户端,配置 GTFOBins MCP 服务器可能不同。此项目中列出了标准配置 mcp.json 文件。
注意:在Python虚拟环境中执行MCP服务器时,启动命令可能因操作系统而异。
MCP工具
列表_研讨会
返回GTFOBins中找到的所有unix二进制文件的列表。
{
"type": "object",
"properties": {}
}list_binaries \_by_function
列出具有特定功能的所有二进制文件。例如,列出所有具有“suid”功能的二进制文件。
{
"type": "object",
"properties": {
"function_name": {
"description": "The function name to filter binaries by, e.g., 'suid', 'file-read'.",
"type": "string"
}
},
"required": [
"function_name"
]
}list_functions
从GTFOBins返回所有函数及其描述的列表。
{
"type": "object",
"properties": {}
}查询_二进制
按名称从GTFOBins中获取特定unix二进制文件的所有详细信息。
{
"type": "object",
"properties": {
"binary_name": {
"description": "The name of the binary to query, for example: 'base64' or 'find'.",
"type": "string"
}
},
"required": [
"binary_name"
]
}查询函数
按名称从GTFOBins中获取特定函数的描述。
{
"type": "object",
"properties": {
"function_name": {
"description": "The function name to query, for example: 'file-read', 'suid'.",
"type": "string"
}
},
"required": [
"function_name"
]
}许可证
该项目根据 MIT许可证.
您可以根据MIT许可条款自由使用、修改和分发此软件。
