Skip to content

Multi grep in version detection#981

Merged
m-1-k-3 merged 11 commits into
e-m-b-a:masterfrom
m-1-k-3:multi_grep
Jan 5, 2024
Merged

Multi grep in version detection#981
m-1-k-3 merged 11 commits into
e-m-b-a:masterfrom
m-1-k-3:multi_grep

Conversation

@m-1-k-3

@m-1-k-3 m-1-k-3 commented Jan 4, 2024

Copy link
Copy Markdown
Member
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature

  • What is the current behavior? (You can also link to an open issue here)

see #980

  • What is the new behavior (if this is a feature change)? If possible add a screenshot.

closes #980

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Yea ... we can not define more complex version identifier rules :)

libtasn;multi_grep;unknown;'"LIBTASN1 ERROR:"&&"^[0-9](\.[0-9]+)?+$"';"sed -r 's/([0-9](\.[0-9]+)+?)$/libtasn1:\1/'";

Module s09 now checks first for LIBTASN1 ERROR: and if this is found it checks for the second identifier ^[0-9](\.[0-9]+)?+$

  • Other information:

This PR is work in progress and needs some more testing ...

@m-1-k-3 m-1-k-3 added enhancement New feature or request EMBA labels Jan 4, 2024
@m-1-k-3

m-1-k-3 commented Jan 4, 2024

Copy link
Copy Markdown
Member Author

During the testphase it is possible to see the matching sub identifiers

image

GZIP is the first identifier that matches
Written by ... is the 2nd
Report bugs to ... it the 3rd
and the final identifier is the version number 1.3.12

@m-1-k-3
m-1-k-3 marked this pull request as ready for review January 5, 2024 11:35
@m-1-k-3

m-1-k-3 commented Jan 5, 2024

Copy link
Copy Markdown
Member Author

This is a huge step in our version detection engine. Currently it is only implemented for ELF files in the S09 module
In the future we should also implement this mechanism for s115/s116 and also for the other mechanisms in S09. At the end this will completely replace the strict mode! h00ray

@m-1-k-3
m-1-k-3 merged commit 36e6bae into e-m-b-a:master Jan 5, 2024
@m-1-k-3
m-1-k-3 deleted the multi_grep branch February 13, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EMBA enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding identification of components

1 participant