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

Returns:

  • (String)

    Wordpress ATOM 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

Parameters:

  • author_id (Integer)

    Author ID

Returns:

  • (String)

    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

Returns:

  • (String)

    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

Returns:

  • (String)

    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

Parameters:

  • post_id (Integer)

    Post ID

Returns:

  • (String)

    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

Returns:

  • (String)

    Wordpress RDF 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

Returns:

  • (String)

    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

Returns:

  • (String)

    Wordpress RSS 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

Returns:

  • (String)

    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