2013-08-21 22:45:22 +00:00
|
|
|
# -*- coding: binary -*-
|
2013-08-22 15:33:35 +00:00
|
|
|
module Msf::HTTP::Wordpress::URIs
|
2013-08-21 22:45:22 +00:00
|
|
|
|
2013-09-05 19:11:03 +00:00
|
|
|
# Returns the Wordpress Login URL
|
|
|
|
#
|
|
|
|
# @return [String] Wordpress Login URL
|
|
|
|
def wordpress_url_login
|
|
|
|
normalize_uri(target_uri.path, 'wp-login.php')
|
|
|
|
end
|
2013-08-21 22:45:22 +00:00
|
|
|
|
2013-09-05 19:11:03 +00:00
|
|
|
# Returns the Wordpress Post URL
|
|
|
|
#
|
|
|
|
# @param post_id [Integer] Post ID
|
|
|
|
# @return [String] Wordpress Post URL
|
|
|
|
def wordpress_url_post(post_id)
|
|
|
|
normalize_uri(target_uri.path, "?p=#{post_id}")
|
|
|
|
end
|
2013-08-21 22:45:22 +00:00
|
|
|
|
2013-09-05 19:11:03 +00:00
|
|
|
# Returns the Wordpress Author URL
|
|
|
|
#
|
|
|
|
# @param author_id [Integer] Author ID
|
|
|
|
# @return [String] Wordpress Author URL
|
|
|
|
def wordpress_url_author(author_id)
|
|
|
|
normalize_uri(target_uri.path, "?author=#{author_id}")
|
|
|
|
end
|
2013-08-21 22:45:22 +00:00
|
|
|
|
2013-09-05 19:11:03 +00:00
|
|
|
# Returns the Wordpress RSS feed URL
|
|
|
|
#
|
|
|
|
# @return [String] Wordpress RSS URL
|
|
|
|
def wordpress_url_rss
|
|
|
|
normalize_uri(target_uri.path, '?feed=rss2')
|
|
|
|
end
|
2013-08-24 16:42:22 +00:00
|
|
|
|
2013-08-21 22:45:22 +00:00
|
|
|
end
|