decalage2 / oletools

oletools - python tools to analyze MS OLE2 files (Structured Storage, Compound File Binary Format) and MS Office documents, for malware analysis, forensics and debugging.
http://www.decalage.info/python/oletools
Other
2.89k stars 565 forks source link

Additional Exit Codes to use the results afterwards #710

Open gitnol opened 3 years ago

gitnol commented 3 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Exit Code 1, 2,10 and 20 is set. To include the script into other environments it would be nice to react to the results of AWX accordingly.

Describe the solution you'd like A clear and concise description of what you want to happen.

Give AWX, as in linux permission style, the X=1, W=2, A=4. (like a bit for each "sub-result") Example: If AX is the result, the Exit Code could be 4+1=5. If WX is the result, the Exit Code could be 2+1=3. --> so Exit Code 2 (for makro ok) + AWX Exit Code is in between 2 (if AWX is not set) and 9 (2+7, where AWX is fully set = 7)

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. no alternative considered

Additional context Add any other context or screenshots about the feature request here. no screenshot needed