Created
January 2, 2023 01:41
-
-
Save shellcromancer/2cba9f296da7e521b5dbb8de1ae56581 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule elf_invalid_version { | |
meta: | |
desc = "Identify ELF file that has mangled header info." | |
author = "@shellcromancer" | |
version = "1.0" | |
last_modified = "2023.01.01" | |
reference = "https://n0.lol/ebm/1.html" | |
reference = "https://tmpout.sh/1/1.html" | |
condition: | |
( | |
uint32(0) == 0x464c457f | |
and uint8(0x6) > 1 // ELF Version is greater value than in spec. | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment