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

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

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

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

工具目录

分类

查看所有分类
Loading categories
ropium — 自动化的ROP链构建工具,能够从二进制文件中提取并分析小工具(gadgets),支持语义查询,兼容X86/X64架构,并提供Python API和命令行界面。 | Kitploit
工具/GitHubGitHub/boyan-milanov/ropium
漏洞利用框架逆向工程ShellcodePayload 开发二进制利用
GitHubboyan-milanov/ropium

ropium

自动化的ROP链构建工具,能够从二进制文件中提取并分析小工具(gadgets),支持语义查询,兼容X86/X64架构,并提供Python API和命令行界面。

查看仓库
402454年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享




关于

ROPium(原ROPGenerator)是一个库/工具,用于简化ROP漏洞利用。它能自动从二进制文件中提取和分析gadget,并通过语义查询帮助您找到ROP链。ROPium支持X86和X64架构,即将扩展支持ARM。

主要特性:

  • 轻松使用:ROPium开箱即用,提供流畅的命令行界面
  • Python API:通过Python API可轻松集成ROPium到脚本中
  • 自动链接:ROPium自动组合gadget来创建复杂的ROP链
  • 高级特性:ROPium支持多种ABI的函数调用、系统调用等
  • 语义查询:ROPium的查询编写快速方便:rax=rbx+8,[rdi+0x20]=rax,rsi=[rbx+16],0x08040212(1, 2, rax),[0xdeadbeaf] = "/bin/sh\x00",sys_execve(0xdeadbeef, 0, 0),sys_0x1(0),...

目录

  • 关于
  • 安装
  • 快速开始
    • CLI工具
    • Python API
  • Docker
  • 联系方式
  • 许可证
  • 特别鸣谢

安装

首先安装 Capstone 反汇编框架:

root@kitploit:~
  sudo apt-get install libcapstone-dev

您还需要最新的 ROPgadget 版本:

root@kitploit:~
  git clone https://github.com/JonathanSalwan/ROPgadget && cd ROPgadget
  python setup.py install --user 

若要使用CLI工具,请安装 prompt_toolkit:

root@kitploit:~
  pip3 install prompt_toolkit

最后安装 ROPium:

root@kitploit:~
  git clone https://github.com/Boyan-MILANOV/ropium && cd ropium
  make
  make test
  sudo make install 

快速开始

CLI工具

借助命令行界面包装器,您可以交互式地使用ROPium快速构建ROP链:

Python API

需要将ROP链直接集成到您的脚本中吗?好消息,ROPium拥有Python API!

加载二进制文件并查找ROP链:

root@kitploit:~
from ropium import *
rop = ROPium(ARCH.X64)
rop.load('/lib/x86_64-linux-gnu/libc-2.27.so')

chain = rop.compile('rbx = [rax + 0x20]')

以多种格式导出ROP链:

root@kitploit:~
>>> print( chain.dump() )

0x000000000009a851 (sub rax, 0x10; ret)
0x0000000000130018 (mov rax, qword ptr [rax + 0x30]; ret)
0x0000000000052240 (push rax; pop rbx; ret)

>>> print(chain.dump('python'))

from struct import pack
off = 0x0
p = ''
p += pack('<Q', 0x000000000009a851+off) # sub rax, 0x10; ret
p += pack('<Q', 0x0000000000130018+off) # mov rax, qword ptr [rax + 0x30]; ret
p += pack('<Q', 0x0000000000052240+off) # push rax; pop rbx; ret

>>> print(chain.dump('raw'))

b'Q\xa8\t\x00\x00\x00\x00\x00\x18\x00\x13\x00\x00\x00\x00\x00@"\x05\x00\x00\x00\x00\x00'

对ROP链设置约束:

root@kitploit:~
# Bytes that should not appear in the ropchain
rop.bad_bytes = [0x00, 0x0a, 0x0b]

# Register that should not be clobbered by the ropchain
rop.keep_regs = ['rsi', 'rdx']

# Enable/Forbid ropchain to dereference registers that might hold invalid addresses
# Safe mode is 'True' by default
rop.safe_mem = False

# Specify which ABI you want to use when calling functions
rop.abi = ABI.X86_CDECL

# Specify which system to target when doing syscalls
rop.os = OS.LINUX

Docker

如有需要,可以在Docker容器中运行ROPium。可按如下方式从Dockerfile生成容器:

root@kitploit:~
# Create your docker image (this will take time!)
docker build . --tag ropium

# Run the image in interactive mode, bind mounting the file to analyze
docker run --rm -it -v /FULL/HOST/PATH/FILE:/tmp/FILE:ro ropium

(ropium)> load -a X86 /tmp/FILE

实际镜像大小约为200 MB,基于Debian Stretch并安装了Python 3.7.3。

联系方式

Boyan MILANOV - boyan.milanov (at) hotmail (dot) fr

许可证

ROPium采用MIT许可证。

特别鸣谢

贡献者:

  • Docker容器支持:migounette,clslgrnc

ROPium使用了以下优秀项目:

  • capstone : 反汇编框架
  • ROPgadget : Gadget提取器
  • prompt-toolkit : Python CLI界面库
下载工具