Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 0b49412

Browse files
committed
Update modules to use #check_plugin_version_from_changelog
1 parent 4837867 commit 0b49412

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

modules/exploits/minimax_page_layout_builder_reflected_xss_shell_upload.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ def initialize
1919
end
2020

2121
def check
22-
readme = normalize_uri(wordpress_url_plugins, 'page-layout-builder', 'readme.txt')
23-
check_version_from_custom_file(readme, /=\s(\d\.\d\.\d)\s=/, '2.0.3')
22+
check_plugin_version_from_changelog('page-layout-builder', 'readme.txt', '2.0.3')
2423
end
2524

2625
def vulnerable_url

modules/exploits/safe_editor_xss_shell_upload.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ def initialize
2424
end
2525

2626
def check
27-
readme = normalize_uri(wordpress_url_plugins, 'safe-editor', 'readme.txt')
28-
check_version_from_custom_file(readme, /=\s(\d\.\d(\.\d)?)\s=/, '1.2')
27+
check_plugin_version_from_changelog('safe-editor', 'readme.txt', '1.2')
2928
end
3029

3130
def run

modules/exploits/tidio_gallery_reflected_xss_shell_upload.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ def initialize
1919
end
2020

2121
def check
22-
readme = normalize_uri(wordpress_url_plugins, 'tidio-gallery', 'readme.txt')
23-
check_version_from_custom_file(readme, /=\s(\d\.\d(\.\d)?)\s=/, '1.2')
22+
check_plugin_version_from_changelog('tidio-gallery', 'readme.txt', '1.2')
2423
end
2524

2625
def vulnerable_url

0 commit comments

Comments
 (0)