Skip to content

Improve Hexalock detection slightly #347

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

Merged
merged 4 commits into from
Dec 29, 2024

Conversation

HeroponRikiBestest
Copy link
Contributor

My hexalock disc has mfint.dll in a different section of PE. This PR causes it to be detected where it wasn't before. Some of Morlit's discs also weren't detecting, likely for similar reasons, but I have still yet to get to those.

Improve code with sabre's code suggestion

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>
@HeroponRikiBestest
Copy link
Contributor Author

Added suggested fix. Sorry, I didn't know the section name checks were case sensitive.

@HeroponRikiBestest
Copy link
Contributor Author

HeroponRikiBestest commented Dec 29, 2024

This gets an instance where it wasn't flagged in a UPX executable. Is it alright to check UPX1 section strings? I'll roll it back if it isn't, dunno if doing string checks on UPX executables has issues in any scenarios.

@mnadareski
Copy link
Collaborator

This gets an instance where it wasn't flagged in a UPX executable. Is it alright to check UPX1 section strings? I'll roll it back if it isn't, dunno if doing string checks on UPX executables has issues in any scenarios.

If you found it in the section and it's consistent, then add it. Otherwise, omit it.

@HeroponRikiBestest
Copy link
Contributor Author

Alright. It is consistent and does work, so there's no problem, then

@mnadareski mnadareski merged commit 5f5dc7d into SabreTools:master Dec 29, 2024
1 check passed
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