Module: Msf::Exploit::Remote::HTTP::Wordpress::URIs
- Included in:
- Msf::Exploit::Remote::HTTP::Wordpress
- Defined in:
- lib/msf/core/exploit/remote/http/wordpress/uris.rb
Instance Method Summary collapse
-
#wordpress_url_admin_ajax ⇒ String
Returns the Wordpress Admin Ajax URL.
-
#wordpress_url_admin_plugin_editor ⇒ String
Returns the Wordpress Admin Plugin Editor URL.
-
#wordpress_url_admin_post ⇒ String
Returns the Wordpress Admin Posts URL.
-
#wordpress_url_admin_update ⇒ String
Returns the Wordpress Admin Update URL.
-
#wordpress_url_atom ⇒ String
Returns the Wordpress ATOM feed URL.
-
#wordpress_url_author(author_id) ⇒ String
Returns the Wordpress Author URL.
-
#wordpress_url_backend ⇒ String
Returns the Wordpress Backend URL.
-
#wordpress_url_login ⇒ String
Returns the Wordpress Login URL.
-
#wordpress_url_opml ⇒ String
Returns the Wordpress OPML URL.
-
#wordpress_url_plugins ⇒ String
Returns the Wordpress plugins dir URL.
-
#wordpress_url_post(post_id) ⇒ String
Returns the Wordpress Post URL.
-
#wordpress_url_rdf ⇒ String
Returns the Wordpress RDF feed URL.
-
#wordpress_url_readme ⇒ String
Returns the Wordpress Readme file URL.
-
#wordpress_url_rest_api ⇒ String
Returns the Wordpress REST API URL.
-
#wordpress_url_rss ⇒ String
Returns the Wordpress RSS feed URL.
-
#wordpress_url_sitemap ⇒ String
Returns the Wordpress Sitemap URL.
-
#wordpress_url_themes ⇒ String
Returns the Wordpress themes dir URL.
-
#wordpress_url_uploads ⇒ String
Returns the Wordpress uploads dir URL.
-
#wordpress_url_wp_content ⇒ String
Returns the Wordpress wp-content dir URL.
-
#wordpress_url_xmlrpc ⇒ String
Returns the Wordpress XMLRPC URL.
Instance Method Details
#wordpress_url_admin_ajax ⇒ String
Returns the Wordpress Admin Ajax URL
79 80 81 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 79 def wordpress_url_admin_ajax normalize_uri(wordpress_url_backend, 'admin-ajax.php') end |
#wordpress_url_admin_plugin_editor ⇒ String
Returns the Wordpress Admin Plugin Editor URL
100 101 102 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 100 def wordpress_url_admin_plugin_editor normalize_uri(wordpress_url_backend, 'plugin-editor.php') end |
#wordpress_url_admin_post ⇒ String
Returns the Wordpress Admin Posts URL
86 87 88 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 86 def wordpress_url_admin_post normalize_uri(wordpress_url_backend, 'admin-post.php') end |
#wordpress_url_admin_update ⇒ String
Returns the Wordpress Admin Update URL
93 94 95 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 93 def wordpress_url_admin_update normalize_uri(wordpress_url_backend, 'update.php') end |
#wordpress_url_atom ⇒ String
Returns the Wordpress ATOM feed URL
44 45 46 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 44 def wordpress_url_atom normalize_uri(target_uri.path, 'feed/atom/') end |
#wordpress_url_author(author_id) ⇒ String
Returns the Wordpress Author URL
23 24 25 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 23 def () normalize_uri(target_uri.path, "?author=#{}") end |
#wordpress_url_backend ⇒ String
Returns the Wordpress Backend URL
72 73 74 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 72 def wordpress_url_backend normalize_uri(target_uri.path, 'wp-admin/') end |
#wordpress_url_login ⇒ String
Returns the Wordpress Login URL
7 8 9 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 7 def wordpress_url_login normalize_uri(target_uri.path, 'wp-login.php') end |
#wordpress_url_opml ⇒ String
Returns the Wordpress OPML URL
65 66 67 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 65 def wordpress_url_opml normalize_uri(target_uri.path, 'wp-links-opml.php') end |
#wordpress_url_plugins ⇒ String
Returns the Wordpress plugins dir URL
114 115 116 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 114 def wordpress_url_plugins normalize_uri(wordpress_url_wp_content, 'plugins') end |
#wordpress_url_post(post_id) ⇒ String
Returns the Wordpress Post URL
15 16 17 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 15 def wordpress_url_post(post_id) normalize_uri(target_uri.path, "?p=#{post_id}") end |
#wordpress_url_rdf ⇒ String
Returns the Wordpress RDF feed URL
37 38 39 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 37 def wordpress_url_rdf normalize_uri(target_uri.path, 'feed/rdf/') end |
#wordpress_url_readme ⇒ String
Returns the Wordpress Readme file URL
51 52 53 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 51 def wordpress_url_readme normalize_uri(target_uri.path, 'readme.html') end |
#wordpress_url_rest_api ⇒ String
Returns the Wordpress REST API URL
142 143 144 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 142 def wordpress_url_rest_api normalize_uri(target_uri.path, 'wp-json/wp/v2') end |
#wordpress_url_rss ⇒ String
Returns the Wordpress RSS feed URL
30 31 32 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 30 def wordpress_url_rss normalize_uri(target_uri.path, '?feed=rss2') end |
#wordpress_url_sitemap ⇒ String
Returns the Wordpress Sitemap URL
58 59 60 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 58 def wordpress_url_sitemap normalize_uri(target_uri.path, 'sitemap.xml') end |
#wordpress_url_themes ⇒ String
Returns the Wordpress themes dir URL
121 122 123 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 121 def wordpress_url_themes normalize_uri(wordpress_url_wp_content, 'themes') end |
#wordpress_url_uploads ⇒ String
Returns the Wordpress uploads dir URL
128 129 130 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 128 def wordpress_url_uploads normalize_uri(wordpress_url_wp_content, 'uploads') end |
#wordpress_url_wp_content ⇒ String
Returns the Wordpress wp-content dir URL
107 108 109 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 107 def wordpress_url_wp_content normalize_uri(target_uri.path, wp_content_dir) end |
#wordpress_url_xmlrpc ⇒ String
Returns the Wordpress XMLRPC URL
135 136 137 |
# File 'lib/msf/core/exploit/remote/http/wordpress/uris.rb', line 135 def wordpress_url_xmlrpc normalize_uri(target_uri.path, 'xmlrpc.php') end |