feature: put payload into .rdata option

This commit is contained in:
Dobin
2024-05-09 21:04:37 +01:00
parent 3aa79afd70
commit 900c145557
16 changed files with 178 additions and 78 deletions
+1
View File
@@ -28,6 +28,7 @@ def r2_disas(data: bytes):
r2.cmd('aaa')
r2.cmd('e scr.color=0')
r2.cmd('e asm.bytes=true')
ret['text'] = r2.cmd('pD {}'.format(code_len))
ret['text'] = '\n'.join(ret['text'].splitlines()) # fix newlines