Module: Msf::HTTP::Wordpress::URIs

Included in:
Msf::HTTP::Wordpress
Defined in:
lib/msf/http/wordpress/uris.rb

Instance Method Summary collapse

Instance Method Details

#wordpress_url_atomString

Returns the Wordpress ATOM feed URL


44
45
46
# File 'lib/msf/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/http/wordpress/uris.rb', line 23

def wordpress_url_author(author_id)
  normalize_uri(target_uri.path, "?author=#{author_id}")
end

#wordpress_url_loginString

Returns the Wordpress Login URL


7
8
9
# File 'lib/msf/http/wordpress/uris.rb', line 7

def 
  normalize_uri(target_uri.path, 'wp-login.php')
end

#wordpress_url_opmlString

Returns the Wordpress OPML URL


65
66
67
# File 'lib/msf/http/wordpress/uris.rb', line 65

def wordpress_url_opml
  normalize_uri(target_uri.path, 'wp-links-opml.php')
end

#wordpress_url_post(post_id) ⇒ String

Returns the Wordpress Post URL


15
16
17
# File 'lib/msf/http/wordpress/uris.rb', line 15

def wordpress_url_post(post_id)
  normalize_uri(target_uri.path, "?p=#{post_id}")
end

#wordpress_url_rdfString

Returns the Wordpress RDF feed URL


37
38
39
# File 'lib/msf/http/wordpress/uris.rb', line 37

def wordpress_url_rdf
  normalize_uri(target_uri.path, 'feed/rdf/')
end

#wordpress_url_readmeString

Returns the Wordpress Readme file URL


51
52
53
# File 'lib/msf/http/wordpress/uris.rb', line 51

def wordpress_url_readme
  normalize_uri(target_uri.path, 'readme.html')
end

#wordpress_url_rssString

Returns the Wordpress RSS feed URL


30
31
32
# File 'lib/msf/http/wordpress/uris.rb', line 30

def wordpress_url_rss
  normalize_uri(target_uri.path, '?feed=rss2')
end

#wordpress_url_sitemapString

Returns the Wordpress Sitemap URL


58
59
60
# File 'lib/msf/http/wordpress/uris.rb', line 58

def wordpress_url_sitemap
  normalize_uri(target_uri.path, 'sitemap.xml')
end