Skip to content

Commit e9f8b25

Browse files
committed
Update wordpress_contus_video_gallery_sqli.rb
Update to use the Wordpress mixin
1 parent 26d208f commit e9f8b25

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

modules/auxiliary/scanner/http/wordpress_contus_video_gallery_sqli.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class Metasploit4 < Msf::Auxiliary
99

10-
include Msf::Exploit::Remote::HttpClient
10+
include Msf::HTTP::Wordpress
1111
include Msf::Auxiliary::Scanner
1212
include Msf::Auxiliary::Report
1313

@@ -31,10 +31,6 @@ def initialize(info = {})
3131
[ 'WPVDB', '7793' ]
3232
],
3333
'DisclosureDate' => 'Feb 24 2015'))
34-
35-
register_options([
36-
OptString.new('TARGETURI', [true, 'Target URI of the Wordpress instance', '/'])
37-
], self.class)
3834
end
3935

4036
def run_host(ip)
@@ -45,7 +41,7 @@ def run_host(ip)
4541
vprint_status("#{peer} - Checking host")
4642

4743
res = send_request_cgi({
48-
'uri' => normalize_uri(target_uri.path, 'wp-admin', 'admin-ajax.php'),
44+
'uri' => wordpress_url_admin_ajax,
4945
'vars_get' => {
5046
'action' => 'rss',
5147
'type' => 'video',

0 commit comments

Comments
 (0)