Skip to content

Commit 32d7b7a

Browse files
author
Aaron Bishop
committed
Implement Yara Keyword Search
- Resolve gramatical mistake. See Issue: MikeMeliz#14
1 parent e86c4d1 commit 32d7b7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/extractor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def intermex(input_file, yara):
123123
full_match_keywords = check_yara(raw=content, yara=yara)
124124

125125
if len(full_match_keywords) == 0:
126-
print(f"No matched in: {line}")
126+
print(f"No matches in: {line}")
127127
print(content)
128128
except (HTTPError, URLError, InvalidURL) as err:
129129
print(f"Request Error: {err}")
@@ -150,7 +150,7 @@ def outex(website, output_file, out_path, yara):
150150
full_match_keywords = check_yara(raw=content, yara=yara)
151151

152152
if len(full_match_keywords) == 0:
153-
print(f"No matched in: {website}")
153+
print(f"No matches in: {website}")
154154

155155
with open(output_file, 'wb') as file:
156156
file.write(content)
@@ -175,7 +175,7 @@ def termex(website, yara):
175175

176176
if len(full_match_keywords) == 0:
177177
# No match.
178-
print(f"No matched in: {website}")
178+
print(f"No matches in: {website}")
179179
return
180180

181181
print(content)

0 commit comments

Comments
 (0)