📕
Radare2手册
  • 简介
  • 历史
  • Radare2框架
  • 下载radare2
  • 编译与可移植性
  • Compilation on Windows
  • Compilation on Android
  • 用户界面
  • 快速上手
    • 命令行选项
    • 命令格式
    • 表达式
    • 基本的debug操作
    • Contributing to radare2
  • 配置
    • Colors
    • 配置项
    • radare2相关文件
  • 基本命令
    • 定位
    • 块大小
    • 节区
    • 映射文件
    • 输出模式
    • 标记符(Flags)
    • 写入数据
    • Zoom模式
    • 复制/粘贴
    • 字节比较
    • SDB
    • Dietline
  • 可视化模式
    • 反汇编界面
    • 汇编界面
    • 变量编辑器界面
    • 可视化面板
  • 搜索字节
    • 基本的搜索用法
    • 配置搜索引擎
    • 搜索重复字节序列
    • 搜索中的自动化
    • 回溯搜索
    • 搜索汇编指令
    • Searching for AES Keys
  • 反汇编
    • 为反汇编添加元数据
    • ESIL
  • 分析
    • 代码分析
    • 变量
    • 类型
    • 调用约定
    • 虚函数表
    • 系统调用
    • 模拟执行
    • Symbols 信息
    • 函数签名
    • 图形化命令
  • 脚本化
    • 循环(Loops)
    • 宏(Macros)
    • R2pipe
  • 调试器
    • 入门
    • 从ida, GDB 或 WinDBG迁移到radare2
    • 寄存器(Registers)
    • 内存映射(Memory Maps)
    • 堆(Heap)
    • 文件(Files)
    • 反向调试
    • Windows消息(Messages)
  • 远程访问
    • 远程GDB调试
    • 远程WinDbg
  • 命令行工具
    • Rax2
    • Rafind2
    • Rarun2
    • Rabin2
      • 文件信息识别
      • 入口点(EP)
      • 导入(Imports)
      • 导出(Exports)
      • Symbols (exports)
      • 库文件
      • 字符串(String)
      • 节区(Sections)
    • Radiff2
      • 二进制文件比较
    • Rasm2
      • 汇编
      • 反汇编
      • 配置项
    • Ragg2
      • Language
    • Rahash2
      • Rahash Tool
  • 插件
    • IO 插件
    • Asm 插件
    • Analysis 插件
    • Bin 插件
    • 其它插件
    • Python插件
    • 对插件进行调试
    • 测试
    • 打包
  • Crackmes
    • IOLI
      • IOLI 0x00
      • IOLI 0x01
    • Avatao R3v3rs3 4
      • .radare2
      • .first_steps
      • .main
      • .vmloop
      • .instructionset
      • .bytecode
      • .outro
  • Reference Card
  • Acknowledgments
由 GitBook 提供支持
在本页

这有帮助吗?

  1. 插件

IO 插件

Radare2将文件,网络,debugger这些对象的访问以及其所有的输入输出都包纳于IO抽象层中,并将这些对象作为文件处理。

IO插件用于在虚拟文件系统封装open,read,write和'system'操作,可以令radare将任何东西视为一个平坦文件对象,例如socket连接,远程radare session,文件,进程,设备,gdb session等。

当radare读入字节块时,IO插件起到的作用是从文件中获取字节并将其放置在内置的Buffer里。Radare会根据文件URI选择不同的IO插件去打开文件,例如:

  • Debugging URIs

    $ r2 dbg:///bin/ls<br />
    $ r2 pid://1927
  • Remote sessions

    $ r2 rap://:1234<br />
    $ r2 rap://<host>:1234//bin/ls
  • Virtual buffers

    $ r2 malloc://512<br />
    shortcut for
    $ r2 -

    使用radare2 -L可以列出radare2中的IO插件:

    $ r2 -L
    rw_  ar       Open ar/lib files [ar|lib]://[file//path] (LGPL3)
    rw_  bfdbg    BrainFuck Debugger (bfdbg://path/to/file) (LGPL3)
    rwd  bochs    Attach to a BOCHS debugger (LGPL3)
    r_d  debug    Native debugger (dbg:///bin/ls dbg://1388 pidof:// waitfor://) (LGPL3) v0.2.0 pancake
    rw_  default  open local files using def_mmap:// (LGPL3)
    rwd  gdb      Attach to gdbserver, 'qemu -s', gdb://localhost:1234 (LGPL3)
    rw_  gprobe   open gprobe connection using gprobe:// (LGPL3)
    rw_  gzip     read/write gzipped files (LGPL3)
    rw_  http     http get (http://rada.re/) (LGPL3)
    rw_  ihex     Intel HEX file (ihex://eeproms.hex) (LGPL)
    r__  mach     mach debug io (unsupported in this platform) (LGPL)
    rw_  malloc   memory allocation (malloc://1024 hex://cd8090) (LGPL3)
    rw_  mmap     open file using mmap:// (LGPL3)
    rw_  null     null-plugin (null://23) (LGPL3)
    rw_  procpid  /proc/pid/mem io (LGPL3)
    rwd  ptrace   ptrace and /proc/pid/mem (if available) io (LGPL3)
    rwd  qnx      Attach to QNX pdebug instance, qnx://host:1234 (LGPL3)
    rw_  r2k      kernel access API io (r2k://) (LGPL3)
    rw_  r2pipe   r2pipe io plugin (MIT)
    rw_  r2web    r2web io client (r2web://cloud.rada.re/cmd/) (LGPL3)
    rw_  rap      radare network protocol (rap://:port rap://host:port/file) (LGPL3)
    rw_  rbuf     RBuffer IO plugin: rbuf:// (LGPL)
    rw_  self     read memory from myself using 'self://' (LGPL3)
    rw_  shm      shared memory resources (shm://key) (LGPL3)
    rw_  sparse   sparse buffer allocation (sparse://1024 sparse://) (LGPL3)
    rw_  tcp      load files via TCP (listen or connect) (LGPL3)
    rwd  windbg   Attach to a KD debugger (windbg://socket) (LGPL3)
    rwd  winedbg  Wine-dbg io and debug.io plugin for r2 (MIT)
    rw_  zip      Open zip files [apk|ipa|zip|zipall]://[file//path] (BSD)
上一页插件下一页Asm 插件

最后更新于4年前

这有帮助吗?