Mcp Pwntools

io.github.daedalus由 GitHub 账号 daedalus 发布v0.1.0更新于 Oct 24, 2026

MCP server exposing pwntools 4.15.0 functionality for binary exploitation

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

一个本地 MCP 服务器,封装 pwntools 4.15.0,让助手可以打包数据、汇编代码、生成 shellcode、检查 ELF 文件并构造二进制漏洞利用。

可以做什么
使用 p8/p16/p32/p64、u8/u16/u32/u64 和 flat 打包解包整数并构造扁平载荷,另有 hexdump、enhex、unhex、cyclic 和 fit 等工具。汇编与反汇编指令,并用 shellcraft 及其 setreuid、dupsh 辅助函数生成 shellcode。加载、汇编、读取和写入 ELF 文件,并通过 elf 资源读取 ELF 信息。启动本地进程、连接远程目标并监听连接。加载 ROP 链并调用 ROP gadget,用 fmtstr_payload 和 fmtstr_split 构造格式化字符串载荷。设置和读取 pwntools 上下文,并输出分级日志消息。
适用场景
适用于 CTF、pwn 题目和安全研究,例如助手在开发漏洞利用时需要计算偏移、汇编代码片段、生成 shellcode 或驱动目标进程。它属于专用工具,多数普通编程任务并不需要。
运行要求
作为本地进程在用户机器上运行,通过 pip 从 PyPI 安装(Python)。仅限桌面端,不提供网页可执行版本。未声明任何账户、API 密钥、请求头或环境变量。
安装前请注意
进程交互工具会启动本地进程、连接远程主机并开启监听,因此助手可以代你执行代码并访问网络。ELF 读写工具可能修改磁盘上的二进制文件。远程连接会把流量发送到你或助手选定的第三方主机。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Pwntools,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-pwntools

MCP server exposing pwntools 4.15.0 functionality for binary exploitation tasks.

[PyPI] [Python][Ask DeepWiki]

Install

bash
pip install mcp-pwntools

MCP Server

This package exposes pwntools functionality via the MCP (Model Context Protocol).

Tools

The server provides the following tool categories:

  • Packing/Unpacking: p8, p16, p32, p64, u8, u16, u32, u64, flat
  • Assembly/Disassembly: asm, disasm
  • Shellcode Generation: shellcraft, shellcraft_setreuid, shellcraft_dupsh
  • ELF Manipulation: elf_load, elf_asm, elf_read, elf_write
  • Process Interaction: process_create, remote_connect, listen
  • ROP: rop_load, rop_call
  • Exploitation: fmtstr_payload, fmtstr_split
  • Utilities: hexdump, cyclic, cyclic_find, fit, enhex, unhex, context_set, context_get
  • Logging: log_debug, log_info, log_success, log_warn, log_error

Resources

  • elf://<path> - Load ELF file information
  • context://settings - Get current pwntools context

Usage

Run the MCP server:

bash
mcp-pwntools

Configuration (mcp.json)

json
{  "mcpServers": {    "pwntools": {      "command": "mcp-pwntools",      "env": {}    }  }}

Development

bash
git clone https://github.com/daedalus/mcp-pwntools.gitcd mcp-pwntoolspip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

mcp-name

mcp-name: io.github.daedalus/mcp-pwntools

来源:README.md,提交 4d6e235

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分