Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch54 authored May 17, 2023
1 parent b9c9e79 commit 64f0f62
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions WPscrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def extract_plugins_with_template(curl_result, regex, nb_group, template_name):
# checking Core version

core_version = ""
match = re.search(r'<meta name="generator" content="WordPress ([\d\.]+)', curl_result)
match = re.search(r'<meta name="generator" content="WordPress ([\d]+\.[\d\.]+)', curl_result)

if match:
core_version = match.group(1)
Expand All @@ -478,7 +478,13 @@ def extract_plugins_with_template(curl_result, regex, nb_group, template_name):
if core_version !="":
core_vulns = check_core_vulns(core_version)
if len(core_vulns) != 0:
show_vulns(core_vulns)
show_vulns(core_vulns)
#
#
# Need help here for auto-exploit module
#
#


#exit()
"""
Expand Down Expand Up @@ -578,6 +584,14 @@ def extract_plugins_with_template(curl_result, regex, nb_group, template_name):
theme_vulns = check_theme_vulns(theme, theme_version)
if len(theme_vulns) != 0:
show_vulns(theme_vulns,2)
#
#
# Need help here for auto-exploit module
#
#



"""
os.system(f"searchsploit Wordpress theme {theme} {theme_version} | grep -i WordPress > /tmp/themeVuln.txt")
with open("/tmp/themeVuln.txt","r") as f:
Expand Down Expand Up @@ -736,6 +750,10 @@ def extract_plugins_with_template(curl_result, regex, nb_group, template_name):
pluginVulns = check_plugin_vulns(plugin, plugin_version)
if len(pluginVulns) != 0:
show_vulns(pluginVulns,2)

#
#
# Need help here for auto-exploit module
#
#
print(reset)
exit()

0 comments on commit 64f0f62

Please sign in to comment.