Mar*_*tör 3 embedded binaryfiles srec-cat
我有三个用于特定内存地址的二进制文件,我想将它们与srec_cat用 0xFF 填充漏洞结合起来。
内存映射
\n\n|- pad w/ 0xFF -|- *bootloader* ~~~ pad w/ 0xFF -|- *conf* ~~~ pad w/ 0xFF -| - *app* ~~~|\n0 0x1000 0x8000 0x10000\nRun Code Online (Sandbox Code Playgroud)\n\n~~~表示“流动”边界,即其左侧的二进制文件没有固定大小。
CLI 参数
\n\n我在http://srecord.sourceforge.net/man/man1/srec_examples.html#BINARY%20FILES上读到的\xe2\x88\x92fill,-binary和选项之间有点迷失。有没有办法告诉填充 0x1000 和 0x8000 之间未被占用的任何内容(无论 .bin 实际有多大)?-offsetsrec_catbootloader.bin
我自己尝试过,我相信这会达到你想要的效果。
srec_cat bootloader.bin -Binary -offset 0x00001000 -fill 0xff 0x00000000 0x00008000 conf.bin -Binary -offset 0x00008000 -fill 0xff 0x00008000 0x00010000 app.bin -Binary -offset 0x00010000 -o combined.bin -Binary
Run Code Online (Sandbox Code Playgroud)