Check whether the file is a standard DLL. This will return true only if the image has the IMAGE_FILE_DLL flag set.
(self)
| 7229 | return False |
| 7230 | |
| 7231 | def is_dll(self): |
| 7232 | """Check whether the file is a standard DLL. |
| 7233 | |
| 7234 | This will return true only if the image has the IMAGE_FILE_DLL flag set. |
| 7235 | """ |
| 7236 | |
| 7237 | DLL_flag = IMAGE_CHARACTERISTICS["IMAGE_FILE_DLL"] |
| 7238 | |
| 7239 | if (DLL_flag & self.FILE_HEADER.Characteristics) == DLL_flag: |
| 7240 | return True |
| 7241 | |
| 7242 | return False |
| 7243 | |
| 7244 | def is_driver(self): |
| 7245 | """Check whether the file is a Windows driver. |
no outgoing calls
no test coverage detected