Skip to content

Commit

Permalink
FixOutputMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMeliz committed Oct 31, 2024
1 parent 0ddfb9f commit e474760
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def input_file_to_folder(input_file, output_path, yara=None):

if yara is not None:
full_match_keywords = check_yara(content, yara)

if len(full_match_keywords) == 0:
print('No matches found.')
continue
Expand All @@ -105,7 +104,7 @@ def input_file_to_folder(input_file, output_path, yara=None):
filename = output_path + "/" + output_file + "(" + str(i) + ")"
with open(filename, 'wb') as results:
results.write(content)
print(f"# File created on: {os.getcwd()}/{output_path}/{output_file}")
print(f"# File created on: {os.getcwd()}/{filename}")
except HTTPError as e:
print(f"Error: {e.code}, cannot access: {e.url}")
continue
Expand Down

0 comments on commit e474760

Please sign in to comment.