MCPcopy Index your code
hub / github.com/NextronSystems/valhallaAPI / get_keyword_rule_matches

Method get_keyword_rule_matches

valhallaAPI/valhalla.py:175–188  ·  view source on GitHub ↗

Retrieve hash matches of rules on which a given keyword (tag, string) has matched :param keyword: a keyword for a certain malware or group :return:

(self, keyword)

Source from the content-addressed store, hash-verified

173 return json.loads(r.text)
174
175 def get_keyword_rule_matches(self, keyword):
176 """
177 Retrieve hash matches of rules on which a given keyword (tag, string) has matched
178 :param keyword: a keyword for a certain malware or group
179 :return:
180 """
181 r = requests.post("%s/api/%s/keyword-matches" % (self.base_url, self.api_version),
182 data={
183 "apikey": self.api_key,
184 "keyword": keyword,
185 },
186 proxies=self.proxies,
187 headers=self.headers)
188 return json.loads(r.text)
189
190 def get_rules_json(self, product="", max_version="", modules=[], with_crypto=True, tags=[], score=0, search=""):
191 """

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected