(hash, definitions)
| 57 | |
| 58 | |
| 59 | def _scanhash(hash, definitions): |
| 60 | for component in definitions: |
| 61 | hashes = definitions[component].get("extractors", None).get("hashes", None) |
| 62 | if (not is_defined(hashes)): |
| 63 | continue |
| 64 | for i in hashes: |
| 65 | if (i == hash): |
| 66 | return [{"version": hashes[i], |
| 67 | "component": component, |
| 68 | "detection": 'hash'}] |
| 69 | |
| 70 | return [] |
| 71 | |
| 72 | |
| 73 | def check(results, definitions): |
no test coverage detected