Skip to content

Commit

Permalink
Update run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
20142995 authored Nov 20, 2024
1 parent b4a25bd commit c9e014d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def process_yaml_files(temp_directory):
# 判断文件名是否匹配CVE-\d{4}
match1 = re.match(r'CVE-\d{4}', file, re.I)
# tags: cve,wordpress,wp-plugin
match2 = re.match(r'tags:.*?(?:wordpress|wp-plugin).*?', content, re.I)
match2 = re.search(r'tags:.*?(?:wordpress|wp-plugin).*?', content, re.I)
if match2:
target_folder = os.path.join(
os.getcwd(),'nuclei-templates', 'wordpress')
Expand Down

0 comments on commit c9e014d

Please sign in to comment.