diff --git a/lib/wpscan/modules/web_site.rb b/lib/wpscan/modules/web_site.rb index 0093f8f4..3ca711a6 100644 --- a/lib/wpscan/modules/web_site.rb +++ b/lib/wpscan/modules/web_site.rb @@ -93,7 +93,7 @@ module WebSite def homepage_hash unless @homepage_hash - @homepage_hash = WebSite.page_hash(self.url) + @homepage_hash = WebSite.page_hash(@uri.to_s) end @homepage_hash end @@ -106,4 +106,11 @@ module WebSite end @error_404_hash end + + # Will try to find the rss url in the homepage + # Only the first one found iw returned + def rss_url + homepage_body = Browser.instance.get(@uri.to_s).body + homepage_body[%r{}, 1] + end end diff --git a/spec/fixtures/wpscan/modules/web_site/rss_url/wordpress-3.5.htm b/spec/fixtures/wpscan/modules/web_site/rss_url/wordpress-3.5.htm new file mode 100755 index 00000000..aa68154c --- /dev/null +++ b/spec/fixtures/wpscan/modules/web_site/rss_url/wordpress-3.5.htm @@ -0,0 +1,42 @@ + + + + + + +
+ + +