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)
| 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 | """ |