-
Notifications
You must be signed in to change notification settings - Fork 968
feat: replace old readable string extraction with new filtered multi-string support #2787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
- Introduces a new function to retrieve multiple human-readable substrings from a payload, with optional filter callback support (e.g., for FQDN detection). - Replaces the old function with the new approach. - Increases size from 32 to 128 bytes to support longer string concatenations. - Renames all occurrences of to the correct spelling . - Replaces all calls to with , reflecting the new logic. References: ntop#2708
|
|
@fabiodepin, could you take a look at the errors in the regression tests, please? |
Hi, sure. I'll check and get back to you. |
| * for short strings. These thresholds can be used to classify the randomness | ||
| * level of the string. | ||
| */ | ||
| static double calculate_entropy(const char *str) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to re-implement, already present in the library; see ndpi_entropy()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
Any updates or can we close this PR? |



Please sign (check) the below before submitting the Pull Request:
[ X ] I have signed the ntop Contributor License Agreement at https://github.com/ntop/legal/blob/main/individual-contributor-licence-agreement.md
[ X ] I have read the contributing guidelines at https://github.com/ntop/nDPI/blob/dev/CONTRIBUTING.md
[ ] I have updated the documentation (in doc/) to reflect the changes made (if applicable)
Link to the related issue:
References #2708
Describe changes:
Feat: add extract_readable_strings with advanced filtering; refactor string handling