Created
January 9, 2022 05:05
-
-
Save shellcromancer/59b0a9a044f7413b009962f64663f819 to your computer and use it in GitHub Desktop.
Identify spaces in either a segment or section name of a Mach-o.
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
| import "macho" | |
| rule macho_space_in_segment_or_section { | |
| meta: | |
| descrption = "Identify spaces in either a segment or section name of a Mach-o." | |
| author = "@shellcromancer <root@shellcromancer.io>" | |
| version = "0.1" | |
| date = "2022-01-08" | |
| condition: | |
| for any segment in macho.segments: ( | |
| segment.segname contains " " or | |
| for any section in segment.sections: ( | |
| section.sectname contains " " | |
| ) | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment