radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
20.73k stars 3.01k forks source link

Modify Section #12083

Closed GiuseppeLaurenza closed 6 years ago

GiuseppeLaurenza commented 6 years ago

Hi to all, I am trying to modify the permission on sections, reading documentation I should use the S command, but r2 returns error that is invalid. Can someone explain to me with an example how to do it and what I should use to refer to a particular section (e.g. name or the number in the list or other things)

radare commented 6 years ago

You cant modify sections with the S command. It was removed exactly for thia reason. To avoid confussions.

If you want to modify the section in the binary use rabin2 -O

If you want to modify the segment loaded in memory associated with the bin sections use om

Press any key to continue

On 7 Nov 2018, at 17:41, GiuseppeLaurenza notifications@github.com wrote:

Hi to all, I am trying to modify the permission on sections, reading documentation I should use the S command, but r2 returns error that is invalid. Can someone explain to me with an example how to do it and what I should use to refer to a particular section (e.g. name or the number in the list or other things)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

GiuseppeLaurenza commented 6 years ago

how it is possible to modify the permission of sections through r2pipe in python?

radare commented 6 years ago

Using rsyscmdf api call and run rabin2 -O...

On 8 Nov 2018, at 15:12, GiuseppeLaurenza notifications@github.com wrote:

how it is possible to modify the permission of sections through r2pipe in python?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.