osirislab/Fentanyl

Add functionality to add new sections to the binary

Opened this issue · 2 comments

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:

  • Inject more code very easily

Cons:

  • Modifies the binary more significantly than using a code cave
  • Might require IDA to reload the binary

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

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//issues/7#issuecomment-31628100
.