MCPcopy
hub / github.com/s0md3v/XSStrike / _scanhash

Function _scanhash

plugins/retireJs.py:59–70  ·  view source on GitHub ↗
(hash, definitions)

Source from the content-addressed store, hash-verified

57
58
59def _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
73def check(results, definitions):

Callers 1

scan_file_contentFunction · 0.85

Calls 1

is_definedFunction · 0.85

Tested by

no test coverage detected