a0rtega / metame

metame is a metamorphic code engine for arbitrary executables
MIT License
569 stars 88 forks source link

Use r2.cmdj not r2.cmd #2

Closed Maijin closed 8 years ago

Maijin commented 8 years ago

Stop using r2.cmd when using Json command ! Use r2.cmdj

a0rtega commented 8 years ago

Oh I didn't know this one. On the other hand, it doesn't make a big difference right? Just returns the parsed json dict.

Using r2.cmd I can choose my own parser (simplejson in this case).

Maijin commented 8 years ago

it just looks less ugly... json.loads(self.r2.cmd("ij").replace("\\", "\\\\")) wtf

a0rtega commented 8 years ago

This handles this bug that I reported.

It is fixed in radare2 master now, but there may be people using the release version or previous versions so I kept it.

Maijin commented 8 years ago

I would definitely recommend using r2.cmdj, that's all ;P