【问题标题】:Radare2/r2pipe Binary writng modeRadare2/r2pipe 二进制写入模式
【发布时间】:2020-02-22 15:01:24
【问题描述】:

我想将一些数据写入 ELF 二进制文件。我试过使用这个 r2pipe 函数r = r2pipe.open('binary', flags=['-w'] 如何使用 r2pipe 二进制写入模式函数将一些字符串添加到 ELF 二进制文件中?对不起这个愚蠢的问题。 任何建议和简单的例子都值得赞赏。

r2 = r2pipe.open("ncc1", flags=['-w'])
r2.write("HELLO world")
r2.close()```

Result: AttributeError: 'open' object has no attribute 'write'


【问题讨论】:

    标签: python-2.7 reverse-engineering elf radare2


    【解决方案1】:

    正如many examples 使用r2pipe 所示,您不会写入到管道中。

    您使用r2.cmd(...) 与底层radare2 进行通信。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-07
      • 1970-01-01
      • 2017-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多