Skip to content

Support Ghidra signature format#3

Merged
SpriteOvO merged 1 commit intodevfrom
ghidra-signature-format
Aug 11, 2023
Merged

Support Ghidra signature format#3
SpriteOvO merged 1 commit intodevfrom
ghidra-signature-format

Conversation

@SpriteOvO
Copy link
Copy Markdown
Owner

@SpriteOvO SpriteOvO commented Jul 6, 2023

This PR implements Ghidra signature format as a experimental feature requested in #2.

Since there is no documentation for this format at the moment, the implementation is referred to NationalSecurityAgency/ghidra#5490 (comment) - The binary sequence of one byte is enclosed in square brackets, and . will be treated as a wildcard.

To use this experimental feature, define the configuration macro SIGMATCH_EXPERIMENTAL_ENABLE_GHIDRA_SIGNATURE_FORMAT before including sigmatch.hpp.


Breaking changes:

  • enum class byte_match_mode has been removed.
  • Member function sig_byte::match_mode() has been removed.

New public items:

  • Constructors sig_byte::sig_byte(std::byte value, std::byte mask) and sig_byte::sig_byte(unsigned char value, unsigned char mask) is added.
  • Member functions sig_byte::value() and sig_byte::mask() is added.

@SpriteOvO
Copy link
Copy Markdown
Owner Author

@MattMills Could you try this PR to see if it works well?

@MattMills
Copy link
Copy Markdown

Rebuilt with the new signatures and seems to work great, thanks!

@MattMills
Copy link
Copy Markdown

@SpriteOvO just incase you didn't see those comments on this PR ^

@SpriteOvO
Copy link
Copy Markdown
Owner Author

@SpriteOvO just incase you didn't see those comments on this PR ^

I recently moved to a new place physically, and my PC is still on the way, I will merge it after my PC is setup :)

@SpriteOvO SpriteOvO force-pushed the ghidra-signature-format branch from 920a4da to 74c55a0 Compare August 11, 2023 18:15
@SpriteOvO SpriteOvO merged commit 9a774ee into dev Aug 11, 2023
@SpriteOvO SpriteOvO deleted the ghidra-signature-format branch August 11, 2023 18:22
SpriteOvO added a commit that referenced this pull request Aug 11, 2023
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.

2 participants