Skip to content

add lief add/remove section modifier#443

Merged
dannyp303 merged 3 commits into
redballoonsecurity:masterfrom
dannyp303:feature/lief-section-modifiers
Mar 12, 2024
Merged

add lief add/remove section modifier#443
dannyp303 merged 3 commits into
redballoonsecurity:masterfrom
dannyp303:feature/lief-section-modifiers

Conversation

@dannyp303
Copy link
Copy Markdown
Contributor

One sentence summary of this PR (This should go in the CHANGELOG!)
Add modifier to add and remove sections using lief.

Link to Related Issue(s)

Please describe the changes in your request.

Anyone you think should look at this, specifically?

Copy link
Copy Markdown
Member

@rbs-jacob rbs-jacob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@rbs-jacob
Copy link
Copy Markdown
Member

Since LIEF can handle PE files, I wonder if it makes sense to also allow these modifiers to target OFRAK Pe resources?

@dannyp303 dannyp303 merged commit 7d2a5f3 into redballoonsecurity:master Mar 12, 2024
assert not segment_exists(modified, ".text")


def segment_exists(filepath: str, name: str, content: Optional[bytes] = None):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be section_exists?

ANogin pushed a commit to ANogin/ofrak that referenced this pull request May 30, 2024
* add lief add/remove section modifier

* Changelog

* typo

---------

Co-authored-by: Dan Pesce <dan@redballoonsecurity.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants