Added version fingerprint from RDF and ATOM feeds. See issue #50. Specs added and passed.
This commit is contained in:
33
spec/fixtures/wpscan/wp_version/atom-generator/3.3.2.htm
vendored
Normal file
33
spec/fixtures/wpscan/wp_version/atom-generator/3.3.2.htm
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en-US"
|
||||
xml:base="http://ma.tt/wp-atom.php"
|
||||
>
|
||||
<title type="text">Matt Mullenweg</title>
|
||||
<subtitle type="text">Unlucky in Cards</subtitle>
|
||||
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt" />
|
||||
<id>http://ma.tt/feed/atom/</id>
|
||||
<link rel="self" type="application/atom+xml" href="http://ma.tt/feed/atom/" />
|
||||
|
||||
<generator uri="http://wordpress.org/" version="3.3.2">WordPress</generator>
|
||||
<link rel='hub' href='http://ma.tt/?pushpress=hub' />
|
||||
<entry>
|
||||
<author>
|
||||
<name>Matt</name>
|
||||
<uri>http://ma.tt/</uri>
|
||||
</author>
|
||||
<title type="html"><![CDATA[New Jetpack]]></title>
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt/2012/10/new-jetpack/" />
|
||||
<id>http://ma.tt/?p=41967</id>
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
<published>2012-10-26T18:25:32Z</published>
|
||||
<category scheme="http://ma.tt" term="Asides" /> <summary type="html"><![CDATA[I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.]]></summary>
|
||||
<content type="html" xml:base="http://ma.tt/2012/10/new-jetpack/"><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content>
|
||||
<link rel="replies" type="text/html" href="http://ma.tt/2012/10/new-jetpack/#comments" thr:count="2"/>
|
||||
<link rel="replies" type="application/atom+xml" href="http://ma.tt/2012/10/new-jetpack/feed/atom/" thr:count="2"/>
|
||||
<thr:total>2</thr:total>
|
||||
</entry>
|
||||
|
||||
</feed>
|
||||
33
spec/fixtures/wpscan/wp_version/atom-generator/3.4-beta4.htm
vendored
Normal file
33
spec/fixtures/wpscan/wp_version/atom-generator/3.4-beta4.htm
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en-US"
|
||||
xml:base="http://ma.tt/wp-atom.php"
|
||||
>
|
||||
<title type="text">Matt Mullenweg</title>
|
||||
<subtitle type="text">Unlucky in Cards</subtitle>
|
||||
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt" />
|
||||
<id>http://ma.tt/feed/atom/</id>
|
||||
<link rel="self" type="application/atom+xml" href="http://ma.tt/feed/atom/" />
|
||||
|
||||
<generator uri="http://wordpress.org/" version="3.4-beta4">WordPress</generator>
|
||||
<link rel='hub' href='http://ma.tt/?pushpress=hub' />
|
||||
<entry>
|
||||
<author>
|
||||
<name>Matt</name>
|
||||
<uri>http://ma.tt/</uri>
|
||||
</author>
|
||||
<title type="html"><![CDATA[New Jetpack]]></title>
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt/2012/10/new-jetpack/" />
|
||||
<id>http://ma.tt/?p=41967</id>
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
<published>2012-10-26T18:25:32Z</published>
|
||||
<category scheme="http://ma.tt" term="Asides" /> <summary type="html"><![CDATA[I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.]]></summary>
|
||||
<content type="html" xml:base="http://ma.tt/2012/10/new-jetpack/"><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content>
|
||||
<link rel="replies" type="text/html" href="http://ma.tt/2012/10/new-jetpack/#comments" thr:count="2"/>
|
||||
<link rel="replies" type="application/atom+xml" href="http://ma.tt/2012/10/new-jetpack/feed/atom/" thr:count="2"/>
|
||||
<thr:total>2</thr:total>
|
||||
</entry>
|
||||
|
||||
</feed>
|
||||
33
spec/fixtures/wpscan/wp_version/atom-generator/invalid_version.htm
vendored
Normal file
33
spec/fixtures/wpscan/wp_version/atom-generator/invalid_version.htm
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en-US"
|
||||
xml:base="http://ma.tt/wp-atom.php"
|
||||
>
|
||||
<title type="text">Matt Mullenweg</title>
|
||||
<subtitle type="text">Unlucky in Cards</subtitle>
|
||||
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt" />
|
||||
<id>http://ma.tt/feed/atom/</id>
|
||||
<link rel="self" type="application/atom+xml" href="http://ma.tt/feed/atom/" />
|
||||
|
||||
<generator uri="http://wordpress.org/" version="5506">WordPress</generator>
|
||||
<link rel='hub' href='http://ma.tt/?pushpress=hub' />
|
||||
<entry>
|
||||
<author>
|
||||
<name>Matt</name>
|
||||
<uri>http://ma.tt/</uri>
|
||||
</author>
|
||||
<title type="html"><![CDATA[New Jetpack]]></title>
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt/2012/10/new-jetpack/" />
|
||||
<id>http://ma.tt/?p=41967</id>
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
<published>2012-10-26T18:25:32Z</published>
|
||||
<category scheme="http://ma.tt" term="Asides" /> <summary type="html"><![CDATA[I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.]]></summary>
|
||||
<content type="html" xml:base="http://ma.tt/2012/10/new-jetpack/"><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content>
|
||||
<link rel="replies" type="text/html" href="http://ma.tt/2012/10/new-jetpack/#comments" thr:count="2"/>
|
||||
<link rel="replies" type="application/atom+xml" href="http://ma.tt/2012/10/new-jetpack/feed/atom/" thr:count="2"/>
|
||||
<thr:total>2</thr:total>
|
||||
</entry>
|
||||
|
||||
</feed>
|
||||
32
spec/fixtures/wpscan/wp_version/atom-generator/no-atom-generator.htm
vendored
Normal file
32
spec/fixtures/wpscan/wp_version/atom-generator/no-atom-generator.htm
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en-US"
|
||||
xml:base="http://ma.tt/wp-atom.php"
|
||||
>
|
||||
<title type="text">Matt Mullenweg</title>
|
||||
<subtitle type="text">Unlucky in Cards</subtitle>
|
||||
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt" />
|
||||
<id>http://ma.tt/feed/atom/</id>
|
||||
<link rel="self" type="application/atom+xml" href="http://ma.tt/feed/atom/" />
|
||||
|
||||
<link rel='hub' href='http://ma.tt/?pushpress=hub' />
|
||||
<entry>
|
||||
<author>
|
||||
<name>Matt</name>
|
||||
<uri>http://ma.tt/</uri>
|
||||
</author>
|
||||
<title type="html"><![CDATA[New Jetpack]]></title>
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt/2012/10/new-jetpack/" />
|
||||
<id>http://ma.tt/?p=41967</id>
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
<published>2012-10-26T18:25:32Z</published>
|
||||
<category scheme="http://ma.tt" term="Asides" /> <summary type="html"><![CDATA[I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.]]></summary>
|
||||
<content type="html" xml:base="http://ma.tt/2012/10/new-jetpack/"><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content>
|
||||
<link rel="replies" type="text/html" href="http://ma.tt/2012/10/new-jetpack/#comments" thr:count="2"/>
|
||||
<link rel="replies" type="application/atom+xml" href="http://ma.tt/2012/10/new-jetpack/feed/atom/" thr:count="2"/>
|
||||
<thr:total>2</thr:total>
|
||||
</entry>
|
||||
|
||||
</feed>
|
||||
33
spec/fixtures/wpscan/wp_version/atom-generator/no-version.htm
vendored
Normal file
33
spec/fixtures/wpscan/wp_version/atom-generator/no-version.htm
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en-US"
|
||||
xml:base="http://ma.tt/wp-atom.php"
|
||||
>
|
||||
<title type="text">Matt Mullenweg</title>
|
||||
<subtitle type="text">Unlucky in Cards</subtitle>
|
||||
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt" />
|
||||
<id>http://ma.tt/feed/atom/</id>
|
||||
<link rel="self" type="application/atom+xml" href="http://ma.tt/feed/atom/" />
|
||||
|
||||
<generator uri="http://wordpress.org/" version="">WordPress</generator>
|
||||
<link rel='hub' href='http://ma.tt/?pushpress=hub' />
|
||||
<entry>
|
||||
<author>
|
||||
<name>Matt</name>
|
||||
<uri>http://ma.tt/</uri>
|
||||
</author>
|
||||
<title type="html"><![CDATA[New Jetpack]]></title>
|
||||
<link rel="alternate" type="text/html" href="http://ma.tt/2012/10/new-jetpack/" />
|
||||
<id>http://ma.tt/?p=41967</id>
|
||||
<updated>2012-10-26T18:25:32Z</updated>
|
||||
<published>2012-10-26T18:25:32Z</published>
|
||||
<category scheme="http://ma.tt" term="Asides" /> <summary type="html"><![CDATA[I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.]]></summary>
|
||||
<content type="html" xml:base="http://ma.tt/2012/10/new-jetpack/"><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content>
|
||||
<link rel="replies" type="text/html" href="http://ma.tt/2012/10/new-jetpack/#comments" thr:count="2"/>
|
||||
<link rel="replies" type="application/atom+xml" href="http://ma.tt/2012/10/new-jetpack/feed/atom/" thr:count="2"/>
|
||||
<thr:total>2</thr:total>
|
||||
</entry>
|
||||
|
||||
</feed>
|
||||
57
spec/fixtures/wpscan/wp_version/rdf-generator/3.3.2.htm
vendored
Normal file
57
spec/fixtures/wpscan/wp_version/rdf-generator/3.3.2.htm
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><rdf:RDF
|
||||
xmlns="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
>
|
||||
<channel rdf:about="http://ma.tt">
|
||||
<title>Matt Mullenweg</title>
|
||||
<link>http://ma.tt</link>
|
||||
<description>Unlucky in Cards</description>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
||||
<sy:updateFrequency>1</sy:updateFrequency>
|
||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||
<admin:generatorAgent rdf:resource="http://wordpress.org/?v=3.3.2" />
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/new-jetpack/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/pandora-and-artist-payments/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/bitcoin-and-decentralization/"/>
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
</channel>
|
||||
<item rdf:about="http://ma.tt/2012/10/new-jetpack/">
|
||||
<title>New Jetpack</title>
|
||||
<link>http://ma.tt/2012/10/new-jetpack/</link>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.</description>
|
||||
<content:encoded><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/pandora-and-artist-payments/">
|
||||
<title>Pandora and Artist Payments</title>
|
||||
<link>http://ma.tt/2012/10/pandora-and-artist-payments/</link>
|
||||
<dc:date>2012-10-09T22:55:07Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>Pandora and Artist Payments, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://blog.pandora.com/pandora/archives/2012/10/pandora-and-art.html">Pandora and Artist Payments</a>, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/bitcoin-and-decentralization/">
|
||||
<title>Bitcoin and decentralization</title>
|
||||
<link>http://ma.tt/2012/10/bitcoin-and-decentralization/</link>
|
||||
<dc:date>2012-10-06T19:53:54Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>The value of Bitcoin is in its decentralization.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://paulbohm.com/articles/bitcoins-value-is-decentralization/">The value of Bitcoin is in its decentralization</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
|
||||
</rdf:RDF>
|
||||
57
spec/fixtures/wpscan/wp_version/rdf-generator/3.4-beta4.htm
vendored
Normal file
57
spec/fixtures/wpscan/wp_version/rdf-generator/3.4-beta4.htm
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><rdf:RDF
|
||||
xmlns="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
>
|
||||
<channel rdf:about="http://ma.tt">
|
||||
<title>Matt Mullenweg</title>
|
||||
<link>http://ma.tt</link>
|
||||
<description>Unlucky in Cards</description>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
||||
<sy:updateFrequency>1</sy:updateFrequency>
|
||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||
<admin:generatorAgent rdf:resource="http://wordpress.org/?v=3.4-beta4" />
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/new-jetpack/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/pandora-and-artist-payments/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/bitcoin-and-decentralization/"/>
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
</channel>
|
||||
<item rdf:about="http://ma.tt/2012/10/new-jetpack/">
|
||||
<title>New Jetpack</title>
|
||||
<link>http://ma.tt/2012/10/new-jetpack/</link>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.</description>
|
||||
<content:encoded><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/pandora-and-artist-payments/">
|
||||
<title>Pandora and Artist Payments</title>
|
||||
<link>http://ma.tt/2012/10/pandora-and-artist-payments/</link>
|
||||
<dc:date>2012-10-09T22:55:07Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>Pandora and Artist Payments, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://blog.pandora.com/pandora/archives/2012/10/pandora-and-art.html">Pandora and Artist Payments</a>, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/bitcoin-and-decentralization/">
|
||||
<title>Bitcoin and decentralization</title>
|
||||
<link>http://ma.tt/2012/10/bitcoin-and-decentralization/</link>
|
||||
<dc:date>2012-10-06T19:53:54Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>The value of Bitcoin is in its decentralization.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://paulbohm.com/articles/bitcoins-value-is-decentralization/">The value of Bitcoin is in its decentralization</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
|
||||
</rdf:RDF>
|
||||
57
spec/fixtures/wpscan/wp_version/rdf-generator/invalid_version.htm
vendored
Normal file
57
spec/fixtures/wpscan/wp_version/rdf-generator/invalid_version.htm
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><rdf:RDF
|
||||
xmlns="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
>
|
||||
<channel rdf:about="http://ma.tt">
|
||||
<title>Matt Mullenweg</title>
|
||||
<link>http://ma.tt</link>
|
||||
<description>Unlucky in Cards</description>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
||||
<sy:updateFrequency>1</sy:updateFrequency>
|
||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||
<admin:generatorAgent rdf:resource="http://wordpress.org/?v=5506" />
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/new-jetpack/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/pandora-and-artist-payments/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/bitcoin-and-decentralization/"/>
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
</channel>
|
||||
<item rdf:about="http://ma.tt/2012/10/new-jetpack/">
|
||||
<title>New Jetpack</title>
|
||||
<link>http://ma.tt/2012/10/new-jetpack/</link>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.</description>
|
||||
<content:encoded><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/pandora-and-artist-payments/">
|
||||
<title>Pandora and Artist Payments</title>
|
||||
<link>http://ma.tt/2012/10/pandora-and-artist-payments/</link>
|
||||
<dc:date>2012-10-09T22:55:07Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>Pandora and Artist Payments, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://blog.pandora.com/pandora/archives/2012/10/pandora-and-art.html">Pandora and Artist Payments</a>, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/bitcoin-and-decentralization/">
|
||||
<title>Bitcoin and decentralization</title>
|
||||
<link>http://ma.tt/2012/10/bitcoin-and-decentralization/</link>
|
||||
<dc:date>2012-10-06T19:53:54Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>The value of Bitcoin is in its decentralization.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://paulbohm.com/articles/bitcoins-value-is-decentralization/">The value of Bitcoin is in its decentralization</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
|
||||
</rdf:RDF>
|
||||
56
spec/fixtures/wpscan/wp_version/rdf-generator/no-rdf-generator.htm
vendored
Normal file
56
spec/fixtures/wpscan/wp_version/rdf-generator/no-rdf-generator.htm
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><rdf:RDF
|
||||
xmlns="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
>
|
||||
<channel rdf:about="http://ma.tt">
|
||||
<title>Matt Mullenweg</title>
|
||||
<link>http://ma.tt</link>
|
||||
<description>Unlucky in Cards</description>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
||||
<sy:updateFrequency>1</sy:updateFrequency>
|
||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/new-jetpack/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/pandora-and-artist-payments/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/bitcoin-and-decentralization/"/>
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
</channel>
|
||||
<item rdf:about="http://ma.tt/2012/10/new-jetpack/">
|
||||
<title>New Jetpack</title>
|
||||
<link>http://ma.tt/2012/10/new-jetpack/</link>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.</description>
|
||||
<content:encoded><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/pandora-and-artist-payments/">
|
||||
<title>Pandora and Artist Payments</title>
|
||||
<link>http://ma.tt/2012/10/pandora-and-artist-payments/</link>
|
||||
<dc:date>2012-10-09T22:55:07Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>Pandora and Artist Payments, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://blog.pandora.com/pandora/archives/2012/10/pandora-and-art.html">Pandora and Artist Payments</a>, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/bitcoin-and-decentralization/">
|
||||
<title>Bitcoin and decentralization</title>
|
||||
<link>http://ma.tt/2012/10/bitcoin-and-decentralization/</link>
|
||||
<dc:date>2012-10-06T19:53:54Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>The value of Bitcoin is in its decentralization.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://paulbohm.com/articles/bitcoins-value-is-decentralization/">The value of Bitcoin is in its decentralization</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
|
||||
</rdf:RDF>
|
||||
57
spec/fixtures/wpscan/wp_version/rdf-generator/no-version.htm
vendored
Normal file
57
spec/fixtures/wpscan/wp_version/rdf-generator/no-version.htm
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><rdf:RDF
|
||||
xmlns="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
>
|
||||
<channel rdf:about="http://ma.tt">
|
||||
<title>Matt Mullenweg</title>
|
||||
<link>http://ma.tt</link>
|
||||
<description>Unlucky in Cards</description>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
||||
<sy:updateFrequency>1</sy:updateFrequency>
|
||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||
<admin:generatorAgent rdf:resource="http://wordpress.org/?v=" />
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/new-jetpack/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/pandora-and-artist-payments/"/>
|
||||
<rdf:li rdf:resource="http://ma.tt/2012/10/bitcoin-and-decentralization/"/>
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
</channel>
|
||||
<item rdf:about="http://ma.tt/2012/10/new-jetpack/">
|
||||
<title>New Jetpack</title>
|
||||
<link>http://ma.tt/2012/10/new-jetpack/</link>
|
||||
<dc:date>2012-10-26T18:25:32Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>I’m really excited abou the new Jetpack, it includes toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form.</description>
|
||||
<content:encoded><![CDATA[<p>I’m really excited abou the new Jetpack, it includes <a href="http://jetpack.me/2012/10/26/jetpack-1-9-toolbar-notifications/">toolbar notifications, mobile push for iOS, a new REST API, and fixes to the contact form</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/pandora-and-artist-payments/">
|
||||
<title>Pandora and Artist Payments</title>
|
||||
<link>http://ma.tt/2012/10/pandora-and-artist-payments/</link>
|
||||
<dc:date>2012-10-09T22:55:07Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>Pandora and Artist Payments, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://blog.pandora.com/pandora/archives/2012/10/pandora-and-art.html">Pandora and Artist Payments</a>, about how Pandora is paying out millions of dollars to artists but is only 6.5% of the US radio listening audience, the fees the rest pay are far, far lower.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
<item rdf:about="http://ma.tt/2012/10/bitcoin-and-decentralization/">
|
||||
<title>Bitcoin and decentralization</title>
|
||||
<link>http://ma.tt/2012/10/bitcoin-and-decentralization/</link>
|
||||
<dc:date>2012-10-06T19:53:54Z</dc:date>
|
||||
<dc:creator>Matt</dc:creator>
|
||||
<dc:subject><![CDATA[Asides]]></dc:subject>
|
||||
<description>The value of Bitcoin is in its decentralization.</description>
|
||||
<content:encoded><![CDATA[<p><a href="http://paulbohm.com/articles/bitcoins-value-is-decentralization/">The value of Bitcoin is in its decentralization</a>.</p>
|
||||
]]></content:encoded>
|
||||
</item>
|
||||
|
||||
</rdf:RDF>
|
||||
@@ -95,6 +95,88 @@ describe WpVersion do
|
||||
end
|
||||
end
|
||||
|
||||
describe "#find_from_rdf_generator" do
|
||||
let(:fixtures_dir) { SPEC_FIXTURES_WPSCAN_WP_VERSION_DIR + "/rdf-generator" }
|
||||
|
||||
after :each do
|
||||
@status_code ||= 200
|
||||
stub_request_to_fixture(:url => @target_uri.merge("feed/rdf/").to_s, :status => @status_code, :fixture => @fixture)
|
||||
WpVersion.find_from_rdf_generator(:base_url => @target_uri).should === @expected
|
||||
end
|
||||
|
||||
it "should return nil on a 404" do
|
||||
@status_code = 404
|
||||
@fixture = SPEC_FIXTURES_WPSCAN_WP_VERSION_DIR + "/404.htm"
|
||||
@expected = nil
|
||||
end
|
||||
|
||||
it "should return nil if the rdf-generator is not found" do
|
||||
@fixture = fixtures_dir + "/no-rdf-generator.htm"
|
||||
@expected = nil
|
||||
end
|
||||
|
||||
it "should return nil if the version is not found (but the rdf-generator is present)" do
|
||||
@fixture = fixtures_dir + "/no-version.htm"
|
||||
@expected = nil
|
||||
end
|
||||
|
||||
it "shuld return 3.3.2" do
|
||||
@fixture = fixtures_dir + "/3.3.2.htm"
|
||||
@expected = "3.3.2"
|
||||
end
|
||||
|
||||
it "should return 3.4-beta4" do
|
||||
@fixture = fixtures_dir + "/3.4-beta4.htm"
|
||||
@expected = "3.4-beta4"
|
||||
end
|
||||
|
||||
it "should return nil if it's not a valid version, must contains at least one '.'" do
|
||||
@fixture = fixtures_dir + "/invalid_version.htm"
|
||||
@expected = nil
|
||||
end
|
||||
end
|
||||
|
||||
describe "#find_from_atom_generator" do
|
||||
let(:fixtures_dir) { SPEC_FIXTURES_WPSCAN_WP_VERSION_DIR + "/atom-generator" }
|
||||
|
||||
after :each do
|
||||
@status_code ||= 200
|
||||
stub_request_to_fixture(:url => @target_uri.merge("feed/atom/").to_s, :status => @status_code, :fixture => @fixture)
|
||||
WpVersion.find_from_atom_generator(:base_url => @target_uri).should === @expected
|
||||
end
|
||||
|
||||
it "should return nil on a 404" do
|
||||
@status_code = 404
|
||||
@fixture = SPEC_FIXTURES_WPSCAN_WP_VERSION_DIR + "/404.htm"
|
||||
@expected = nil
|
||||
end
|
||||
|
||||
it "should return nil if the atom-generator is not found" do
|
||||
@fixture = fixtures_dir + "/no-atom-generator.htm"
|
||||
@expected = nil
|
||||
end
|
||||
|
||||
it "should return nil if the version is not found (but the atom-generator is present)" do
|
||||
@fixture = fixtures_dir + "/no-version.htm"
|
||||
@expected = nil
|
||||
end
|
||||
|
||||
it "shuld return 3.3.2" do
|
||||
@fixture = fixtures_dir + "/3.3.2.htm"
|
||||
@expected = "3.3.2"
|
||||
end
|
||||
|
||||
it "should return 3.4-beta4" do
|
||||
@fixture = fixtures_dir + "/3.4-beta4.htm"
|
||||
@expected = "3.4-beta4"
|
||||
end
|
||||
|
||||
it "should return nil if it's not a valid version, must contains at least one '.'" do
|
||||
@fixture = fixtures_dir + "/invalid_version.htm"
|
||||
@expected = nil
|
||||
end
|
||||
end
|
||||
|
||||
describe "#find_from_sitemap_generator" do
|
||||
after :each do
|
||||
stub_request(:get, @target_uri.merge("sitemap.xml").to_s).
|
||||
|
||||
Reference in New Issue
Block a user