osirislab / Fentanyl

Fentanyl is an IDAPython script that makes patching significantly easier
204 stars 27 forks source link

Add functionality to add new sections to the binary #7

Open ancat opened 10 years ago

ancat commented 10 years ago

Code caves are okay for small pieces of code, but sometimes it makes more sense to allocate an entire section within the binary. This allows for introduction of larger pieces of code to the binary with less restrictions.

Pros:

Cons:

ancat commented 10 years ago

idc.AddSeg() looks like a good place to start.

evanpjensen commented 10 years ago

I don't know if you can do this from within Ida but you can always modify the section size for more room.

On Monday, January 6, 2014, Omar wrote:

idc.AddSeg() looks like a good place to start.

— Reply to this email directly or view it on GitHubhttps://github.com/isislab/Fentanyl/issues/7#issuecomment-31628100 .