Rspec for previous commit
URI.escape is now only overriden for ruby >= 1.9.2 RDoc
This commit is contained in:
@@ -132,6 +132,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -230,7 +232,7 @@
|
||||
|
||||
<div class="method-source-code" id="_grep_-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 82</span>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 88</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_grep_</span>(<span class="ruby-identifier">regexp</span>)
|
||||
<span class="ruby-identifier">matches</span> = []
|
||||
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
||||
|
||||
@@ -148,6 +148,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -124,6 +124,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -88,6 +88,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -138,6 +138,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -156,6 +156,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -138,6 +138,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -136,6 +136,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -128,6 +128,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -334,7 +336,7 @@
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/malwares.rb, line 28</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">malwares</span>(<span class="ruby-identifier">malwares_file_path</span> = <span class="ruby-keyword">nil</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@malwares</span>.<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@malwares</span>
|
||||
<span class="ruby-identifier">malwares_found</span> = []
|
||||
<span class="ruby-identifier">malwares_file</span> = <span class="ruby-constant">Malwares</span>.<span class="ruby-identifier">malwares_file</span>(<span class="ruby-identifier">malwares_file_path</span>)
|
||||
<span class="ruby-identifier">index_page_body</span> = <span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">body</span>
|
||||
|
||||
120
doc/Object.html
120
doc/Object.html
@@ -34,14 +34,14 @@
|
||||
<div class="section-body">
|
||||
<ul>
|
||||
|
||||
<li><a href="./lib/common_helper_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/common_helper.rb">lib/common_helper.rb</a></li>
|
||||
<li><a href="./lib/wpstools/wpstools_helper_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/wpstools/wpstools_helper.rb">lib/wpstools/wpstools_helper.rb</a></li>
|
||||
|
||||
<li><a href="./lib/wpscan/wpscan_helper_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/wpscan/wpscan_helper.rb">lib/wpscan/wpscan_helper.rb</a></li>
|
||||
|
||||
<li><a href="./lib/wpstools/wpstools_helper_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/wpstools/wpstools_helper.rb">lib/wpstools/wpstools_helper.rb</a></li>
|
||||
<li><a href="./lib/common_helper_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/common_helper.rb">lib/common_helper.rb</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@@ -154,6 +154,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -312,10 +314,7 @@
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 42</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_http_protocol</span>(<span class="ruby-identifier">url</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp">/^https?:/</span>
|
||||
<span class="ruby-identifier">url</span> = <span class="ruby-node">"http://#{url}"</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">url</span>
|
||||
<span class="ruby-identifier">url</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^https?:/</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">:</span> <span class="ruby-node">"http://#{url}"</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- add_http_protocol-source -->
|
||||
|
||||
@@ -346,10 +345,9 @@
|
||||
|
||||
<div class="method-source-code" id="add_trailing_slash-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 49</span>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 46</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_trailing_slash</span>(<span class="ruby-identifier">url</span>)
|
||||
<span class="ruby-identifier">url</span> = <span class="ruby-node">"#{url}/"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp">/\/$/</span>
|
||||
<span class="ruby-identifier">url</span>
|
||||
<span class="ruby-identifier">url</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\/$/</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">:</span> <span class="ruby-node">"#{url}/"</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- add_trailing_slash-source -->
|
||||
|
||||
@@ -380,7 +378,7 @@
|
||||
|
||||
<div class="method-source-code" id="banner-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 106</span>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 112</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">banner</span>()
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">'____________________________________________________'</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" __ _______ _____ "</span>
|
||||
@@ -428,7 +426,7 @@
|
||||
|
||||
<div class="method-source-code" id="colorize-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 125</span>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 131</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">colorize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">color_code</span>)
|
||||
<span class="ruby-node">"\e[#{color_code}m#{text}\e[0m"</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -461,7 +459,7 @@
|
||||
|
||||
<div class="method-source-code" id="get_equal_string_end-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 55</span>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 51</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_equal_string_end</span>(<span class="ruby-identifier">stringarray</span> = [<span class="ruby-string">""</span>])
|
||||
<span class="ruby-identifier">already_found</span> = <span class="ruby-string">""</span>
|
||||
<span class="ruby-identifier">looping</span> = <span class="ruby-keyword">true</span>
|
||||
@@ -514,7 +512,7 @@
|
||||
|
||||
<div class="method-source-code" id="green-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 133</span>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 139</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">green</span>(<span class="ruby-identifier">text</span>)
|
||||
<span class="ruby-identifier">colorize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-value">32</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -541,45 +539,28 @@
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>command help</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="help-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_helper.rb, line 71</span>
|
||||
<span class="ruby-comment"># File lib/wpstools/wpstools_helper.rb, line 46</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">help</span>()
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"Help :"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"Some values are settable in conf/browser.conf.json :"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" user-agent, proxy, threads, cache timeout and request timeout"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--update Update to the latest revision"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--url | -u <target url> The WordPress URL/domain to scan."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--force | -f Forces WPScan to not check if the remote site is running WordPress."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--enumerate | -e [option(s)] Enumeration."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" option :"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" u usernames from id 1 to 10"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" u[10-20] usernames from id 10 to 20 (you must write [] chars)"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" p plugins"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" p! only vulnerable plugins"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" t timthumbs"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" T themes"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" T! only vulnerable themes"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" If no option is supplied, the default is 'tup!'"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--config-file | -c <config file> Use the specified config file"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--follow-redirection If the target url has a redirection, it will be followed without asking if you wanted to do so or not"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--wp-content-dir <wp content dir> WPScan try to find the content directory (ie wp-content) by scanning the index page, however you can specified it. Subdirectories are allowed"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--wp-plugins-dir <wp plugins dir> Same thing than --wp-content-dir but for the plugins directory. If not supplied, WPScan will use wp-content-dir/plugins. Subdirectories are allowed"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--proxy Supply a proxy in the format host:port or protocol://host:port (will override the one from conf/browser.conf.json)."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">" HTTP, SOCKS4 SOCKS4A and SOCKS5 are supported. If no protocol is given (format host:port), HTTP will be used"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--wordlist | -w <wordlist> Supply a wordlist for the password bruter and do the brute."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--threads | -t <number of threads> The number of threads to use when multi-threading requests. (will override the value from conf/browser.conf.json)"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--username | -U <username> Only brute force the supplied username."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--help | -h This help screen."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--verbose | -v Verbose output."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--Verbose | -v Verbose output."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--update | -u Update to the latest revision."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--generate_plugin_list [number of pages] Generate a new data/plugins.txt file. (supply number of *pages* to parse, default : 150)"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--gpl Alias for --generate_plugin_list"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--generate_full_plugin_list Generate a new full data/plugins.txt file"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--gfpl Alias for --generate_full_plugin_list"</span>
|
||||
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--generate_theme_list [number of pages] Generate a new data/themes.txt file. (supply number of *pages* to parse, default : 150)"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--gtl Alias for --generate_theme_list"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--generate_full_theme_list Generate a new full data/themes.txt file"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--gftl Alias for --generate_full_theme_list"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- help-source -->
|
||||
@@ -611,7 +592,7 @@
|
||||
|
||||
<div class="method-source-code" id="red-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 129</span>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 135</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">red</span>(<span class="ruby-identifier">text</span>)
|
||||
<span class="ruby-identifier">colorize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-value">31</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -675,54 +656,31 @@
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>wpscan usage</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="usage-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_helper.rb, line 24</span>
|
||||
<span class="ruby-comment"># File lib/wpstools/wpstools_helper.rb, line 23</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">usage</span>()
|
||||
<span class="ruby-identifier">script_name</span> = <span class="ruby-identifier">$0</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"--help or -h for further help."</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-h for further help."</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"Examples:"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Do 'non-intrusive' checks ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"- Generate a new 'most popular' plugin list, up to 150 pages ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"ruby "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">script_name</span> <span class="ruby-operator">+</span> <span class="ruby-string">" --generate_plugin_list 150"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Do wordlist password brute force on enumerated users using 50 threads ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com --wordlist darkc0de.lst --threads 50"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"- Generate a new full plugin list"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"ruby "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">script_name</span> <span class="ruby-operator">+</span> <span class="ruby-string">" --generate_full_plugin_list"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Do wordlist password brute force on the 'admin' username only ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com --wordlist darkc0de.lst --username admin"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"- Generate a new 'most popular' theme list, up to 150 pages ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"ruby "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">script_name</span> <span class="ruby-operator">+</span> <span class="ruby-string">" --generate_theme_list 150"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Enumerate installed plugins ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com --enumerate p"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Enumerate installed themes ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com --enumerate T"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Enumerate users ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com --enumerate u"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Enumerate installed timthumbs ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com --enumerate t"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Use a HTTP proxy ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com --proxy 127.0.0.1:8118"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Use a SOCKS5 proxy ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --url www.example.com --proxy socks5://127.0.0.1:9000"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Use custom content directory ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} -u www.example.com --wp-content-dir custom-content"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Use custom plugins directory ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} -u www.example.com --wp-plugins-dir wp-content/custom-plugins"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"-Update ..."</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ruby #{script_name} --update"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"- Generate a new full theme list"</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"ruby "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">script_name</span> <span class="ruby-operator">+</span> <span class="ruby-string">" --generate_full_theme_list"</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
<span class="ruby-identifier">puts</span> <span class="ruby-string">"See README for further information."</span>
|
||||
<span class="ruby-identifier">puts</span>
|
||||
|
||||
@@ -88,6 +88,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -183,12 +185,12 @@ directory. WPScan only supports Ruby => 1.9.</p>
|
||||
|
||||
<pre>-> Installing on Backtrack5 Gnome/KDE 32bit :
|
||||
|
||||
sudo apt-get install libcurl4-gnutls-dev
|
||||
sudo apt-get install libcurl4-gnutls-dev libxml2 libxml2-dev libxslt1-dev
|
||||
sudo gem install --user-install mime-types typhoeus nokogiri json
|
||||
|
||||
-> Installing on Debian/Ubuntu :
|
||||
|
||||
sudo apt-get install libcurl4-gnutls-dev libopenssl-ruby
|
||||
sudo apt-get install libcurl4-gnutls-dev libopenssl-ruby libxml2 libxml2-dev libxslt1-dev
|
||||
sudo gem install typhoeus nokogiri json
|
||||
|
||||
-> Installing on other nix : (not tested)
|
||||
@@ -230,6 +232,8 @@ WordPress.</p>
|
||||
p plugins
|
||||
p! only vulnerable plugins
|
||||
t timthumbs
|
||||
T themes
|
||||
T! only vulnerable themes
|
||||
Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins
|
||||
If no option is supplied, the default is 'tup!'</pre>
|
||||
|
||||
|
||||
@@ -156,6 +156,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -134,6 +134,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -132,6 +132,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
254
doc/URI.html
Normal file
254
doc/URI.html
Normal file
@@ -0,0 +1,254 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
|
||||
<title>Module: URI</title>
|
||||
|
||||
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||
|
||||
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
</head>
|
||||
<body id="top" class="module">
|
||||
|
||||
<div id="metadata">
|
||||
<div id="home-metadata">
|
||||
<div id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./index.html#classes">Classes</a>
|
||||
<a href="./index.html#methods">Methods</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="file-metadata">
|
||||
<div id="file-list-section" class="section">
|
||||
<h3 class="section-header">In Files</h3>
|
||||
<div class="section-body">
|
||||
<ul>
|
||||
|
||||
<li><a href="./lib/common_helper_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/common_helper.rb">lib/common_helper.rb</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<div id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-c-escape">::escape</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
|
||||
<div id="fileindex-section" class="section project-section">
|
||||
<h3 class="section-header">Files</h3>
|
||||
<ul>
|
||||
|
||||
<li class="file"><a href="./CREDITS.html">CREDITS</a></li>
|
||||
|
||||
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
||||
|
||||
<li class="file"><a href="./README.html">README</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class/Module Index
|
||||
<span class="search-toggle"><img src="./images/find.png"
|
||||
height="16" width="16" alt="[+]"
|
||||
title="show/hide quicksearch" /></span></h3>
|
||||
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||
<fieldset>
|
||||
<legend>Quicksearch</legend>
|
||||
<input type="text" name="quicksearch" value=""
|
||||
class="quicksearch-field" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Array.html">Array</a></li>
|
||||
|
||||
<li><a href="./Browser.html">Browser</a></li>
|
||||
|
||||
<li><a href="./BruteForce.html">BruteForce</a></li>
|
||||
|
||||
<li><a href="./CacheFileStore.html">CacheFileStore</a></li>
|
||||
|
||||
<li><a href="./Exploit.html">Exploit</a></li>
|
||||
|
||||
<li><a href="./Generate_List.html">Generate_List</a></li>
|
||||
|
||||
<li><a href="./GitUpdater.html">GitUpdater</a></li>
|
||||
|
||||
<li><a href="./Malwares.html">Malwares</a></li>
|
||||
|
||||
<li><a href="./Object.html">Object</a></li>
|
||||
|
||||
<li><a href="./RpcClient.html">RpcClient</a></li>
|
||||
|
||||
<li><a href="./SvnUpdater.html">SvnUpdater</a></li>
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
<li><a href="./Vulnerable.html">Vulnerable</a></li>
|
||||
|
||||
<li><a href="./WebSite.html">WebSite</a></li>
|
||||
|
||||
<li><a href="./WpConfigBackup.html">WpConfigBackup</a></li>
|
||||
|
||||
<li><a href="./WpDetector.html">WpDetector</a></li>
|
||||
|
||||
<li><a href="./WpEnumerator.html">WpEnumerator</a></li>
|
||||
|
||||
<li><a href="./WpFullPathDisclosure.html">WpFullPathDisclosure</a></li>
|
||||
|
||||
<li><a href="./WpItem.html">WpItem</a></li>
|
||||
|
||||
<li><a href="./WpLoginProtection.html">WpLoginProtection</a></li>
|
||||
|
||||
<li><a href="./WpOptions.html">WpOptions</a></li>
|
||||
|
||||
<li><a href="./WpPlugin.html">WpPlugin</a></li>
|
||||
|
||||
<li><a href="./WpPlugins.html">WpPlugins</a></li>
|
||||
|
||||
<li><a href="./WpReadme.html">WpReadme</a></li>
|
||||
|
||||
<li><a href="./WpTarget.html">WpTarget</a></li>
|
||||
|
||||
<li><a href="./WpTheme.html">WpTheme</a></li>
|
||||
|
||||
<li><a href="./WpThemes.html">WpThemes</a></li>
|
||||
|
||||
<li><a href="./WpTimthumbs.html">WpTimthumbs</a></li>
|
||||
|
||||
<li><a href="./WpUser.html">WpUser</a></li>
|
||||
|
||||
<li><a href="./WpUsernames.html">WpUsernames</a></li>
|
||||
|
||||
<li><a href="./WpVersion.html">WpVersion</a></li>
|
||||
|
||||
<li><a href="./WpVulnerability.html">WpVulnerability</a></li>
|
||||
|
||||
<li><a href="./WpscanOptions.html">WpscanOptions</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">URI</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<div id="public-class-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Class Methods</h3>
|
||||
|
||||
|
||||
<div id="escape-method" class="method-detail ">
|
||||
<a name="method-c-escape"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">escape</span><span
|
||||
class="method-args">(str)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="escape-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/common_helper.rb, line 79</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">str</span>)
|
||||
<span class="ruby-constant">URI</span>.<span class="ruby-identifier">encode_www_form_component</span>(<span class="ruby-identifier">str</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-string">"+"</span>, <span class="ruby-string">"%20"</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- escape-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- escape-method -->
|
||||
|
||||
|
||||
</div><!-- public-class-method-details -->
|
||||
|
||||
</div><!-- 5Buntitled-5D -->
|
||||
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||
Rdoc Generator</a> 2</small>.</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -138,6 +138,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -132,6 +132,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -130,6 +130,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -128,6 +128,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -124,6 +124,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -227,7 +229,7 @@
|
||||
<span class="ruby-node">%{
|
||||
wp-config.php~ #wp-config.php# wp-config.php.save wp-config.php.swp wp-config.php.swo wp-config.php_bak
|
||||
wp-config.bak wp-config.php.bak wp-config.save wp-config.old wp-config.php.old wp-config.php.orig
|
||||
wp-config.orig wp-config.php.original wp-config.original
|
||||
wp-config.orig wp-config.php.original wp-config.original wp-config.txt
|
||||
}</span> <span class="ruby-comment"># thanks to Feross.org for these</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- config_backup_files-source -->
|
||||
|
||||
@@ -132,6 +132,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -132,6 +132,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -279,9 +281,9 @@
|
||||
<span class="ruby-identifier">request_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
||||
|
||||
<span class="ruby-identifier">request</span>.<span class="ruby-identifier">on_complete</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:show_progress_bar</span>]
|
||||
<span class="ruby-identifier">print</span> <span class="ruby-node">"\rChecking for #{enumerate_size} total #{options[:type]}... #{(request_count * 100) / enumerate_size}% complete."</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
|
||||
<span class="ruby-identifier">print</span> <span class="ruby-node">"\rChecking for #{enumerate_size} total #{options[:type]}... #{(request_count * 100) / enumerate_size}% complete."</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:show_progress_bar</span>]
|
||||
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-constant">WpTarget</span>.<span class="ruby-identifier">valid_response_codes</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">code</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">hexdigest</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>) <span class="ruby-operator">!=</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:error_404_hash</span>]
|
||||
<span class="ruby-identifier">found</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">target</span>
|
||||
|
||||
@@ -124,6 +124,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -158,6 +158,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
774
doc/WpLoginProtection.html
Normal file
774
doc/WpLoginProtection.html
Normal file
@@ -0,0 +1,774 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
|
||||
<title>Module: WpLoginProtection</title>
|
||||
|
||||
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||
|
||||
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
</head>
|
||||
<body id="top" class="module">
|
||||
|
||||
<div id="metadata">
|
||||
<div id="home-metadata">
|
||||
<div id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./index.html#classes">Classes</a>
|
||||
<a href="./index.html#methods">Methods</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="file-metadata">
|
||||
<div id="file-list-section" class="section">
|
||||
<h3 class="section-header">In Files</h3>
|
||||
<div class="section-body">
|
||||
<ul>
|
||||
|
||||
<li><a href="./lib/wpscan/modules/wp_login_protection_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/wpscan/modules/wp_login_protection.rb">lib/wpscan/modules/wp_login_protection.rb</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<div id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-better_wp_security_url">#better_wp_security_url</a></li>
|
||||
|
||||
<li><a href="#method-i-bluetrait_event_viewer_url">#bluetrait_event_viewer_url</a></li>
|
||||
|
||||
<li><a href="#method-i-has_better_wp_security_protection-3F">#has_better_wp_security_protection?</a></li>
|
||||
|
||||
<li><a href="#method-i-has_bluetrait_event_viewer_protection-3F">#has_bluetrait_event_viewer_protection?</a></li>
|
||||
|
||||
<li><a href="#method-i-has_limit_login_attempts_protection-3F">#has_limit_login_attempts_protection?</a></li>
|
||||
|
||||
<li><a href="#method-i-has_login_lock_protection-3F">#has_login_lock_protection?</a></li>
|
||||
|
||||
<li><a href="#method-i-has_login_lockdown_protection-3F">#has_login_lockdown_protection?</a></li>
|
||||
|
||||
<li><a href="#method-i-has_login_protection-3F">#has_login_protection?</a></li>
|
||||
|
||||
<li><a href="#method-i-has_login_security_solution_protection-3F">#has_login_security_solution_protection?</a></li>
|
||||
|
||||
<li><a href="#method-i-has_simple_login_lockdown_protection-3F">#has_simple_login_lockdown_protection?</a></li>
|
||||
|
||||
<li><a href="#method-i-limit_login_attempts_url">#limit_login_attempts_url</a></li>
|
||||
|
||||
<li><a href="#method-i-login_protection_plugin">#login_protection_plugin</a></li>
|
||||
|
||||
<li><a href="#method-i-login_security_solution_url">#login_security_solution_url</a></li>
|
||||
|
||||
<li><a href="#method-i-simple_login_lockdown_url">#simple_login_lockdown_url</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
|
||||
<div id="fileindex-section" class="section project-section">
|
||||
<h3 class="section-header">Files</h3>
|
||||
<ul>
|
||||
|
||||
<li class="file"><a href="./CREDITS.html">CREDITS</a></li>
|
||||
|
||||
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
||||
|
||||
<li class="file"><a href="./README.html">README</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class/Module Index
|
||||
<span class="search-toggle"><img src="./images/find.png"
|
||||
height="16" width="16" alt="[+]"
|
||||
title="show/hide quicksearch" /></span></h3>
|
||||
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||
<fieldset>
|
||||
<legend>Quicksearch</legend>
|
||||
<input type="text" name="quicksearch" value=""
|
||||
class="quicksearch-field" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Array.html">Array</a></li>
|
||||
|
||||
<li><a href="./Browser.html">Browser</a></li>
|
||||
|
||||
<li><a href="./BruteForce.html">BruteForce</a></li>
|
||||
|
||||
<li><a href="./CacheFileStore.html">CacheFileStore</a></li>
|
||||
|
||||
<li><a href="./Exploit.html">Exploit</a></li>
|
||||
|
||||
<li><a href="./Generate_List.html">Generate_List</a></li>
|
||||
|
||||
<li><a href="./GitUpdater.html">GitUpdater</a></li>
|
||||
|
||||
<li><a href="./Malwares.html">Malwares</a></li>
|
||||
|
||||
<li><a href="./Object.html">Object</a></li>
|
||||
|
||||
<li><a href="./RpcClient.html">RpcClient</a></li>
|
||||
|
||||
<li><a href="./SvnUpdater.html">SvnUpdater</a></li>
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
<li><a href="./Vulnerable.html">Vulnerable</a></li>
|
||||
|
||||
<li><a href="./WebSite.html">WebSite</a></li>
|
||||
|
||||
<li><a href="./WpConfigBackup.html">WpConfigBackup</a></li>
|
||||
|
||||
<li><a href="./WpDetector.html">WpDetector</a></li>
|
||||
|
||||
<li><a href="./WpEnumerator.html">WpEnumerator</a></li>
|
||||
|
||||
<li><a href="./WpFullPathDisclosure.html">WpFullPathDisclosure</a></li>
|
||||
|
||||
<li><a href="./WpItem.html">WpItem</a></li>
|
||||
|
||||
<li><a href="./WpLoginProtection.html">WpLoginProtection</a></li>
|
||||
|
||||
<li><a href="./WpOptions.html">WpOptions</a></li>
|
||||
|
||||
<li><a href="./WpPlugin.html">WpPlugin</a></li>
|
||||
|
||||
<li><a href="./WpPlugins.html">WpPlugins</a></li>
|
||||
|
||||
<li><a href="./WpReadme.html">WpReadme</a></li>
|
||||
|
||||
<li><a href="./WpTarget.html">WpTarget</a></li>
|
||||
|
||||
<li><a href="./WpTheme.html">WpTheme</a></li>
|
||||
|
||||
<li><a href="./WpThemes.html">WpThemes</a></li>
|
||||
|
||||
<li><a href="./WpTimthumbs.html">WpTimthumbs</a></li>
|
||||
|
||||
<li><a href="./WpUser.html">WpUser</a></li>
|
||||
|
||||
<li><a href="./WpUsernames.html">WpUsernames</a></li>
|
||||
|
||||
<li><a href="./WpVersion.html">WpVersion</a></li>
|
||||
|
||||
<li><a href="./WpVulnerability.html">WpVulnerability</a></li>
|
||||
|
||||
<li><a href="./WpscanOptions.html">WpscanOptions</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">WpLoginProtection</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Constants -->
|
||||
<div id="constants-list" class="section">
|
||||
<h3 class="section-header">Constants</h3>
|
||||
<dl>
|
||||
|
||||
<dt><a name="LOGIN_PROTECTION_METHOD_PATTERN">LOGIN_PROTECTION_METHOD_PATTERN</a></dt>
|
||||
|
||||
<dd class="description"></dd>
|
||||
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<div id="public-instance-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="has_login_protection-3F-method" class="method-detail ">
|
||||
<a name="method-i-has_login_protection-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">has_login_protection?</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="has_login_protection-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 25</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_login_protection?</span>
|
||||
<span class="ruby-operator">!</span><span class="ruby-identifier">login_protection_plugin</span>().<span class="ruby-identifier">nil?</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- has_login_protection-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- has_login_protection-3F-method -->
|
||||
|
||||
|
||||
<div id="login_protection_plugin-method" class="method-detail ">
|
||||
<a name="method-i-login_protection_plugin"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">login_protection_plugin</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>Checks if a login protection plugin is enabled <a
|
||||
href="http://code.google.com/p/wpscan/issues/detail?id=111">code.google.com/p/wpscan/issues/detail?id=111</a>
|
||||
return a <a href="WpPlugin.html">WpPlugin</a> object or nil if no one is
|
||||
found</p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="login_protection_plugin-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 32</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">login_protection_plugin</span>
|
||||
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@login_protection_plugin</span>
|
||||
<span class="ruby-identifier">protected_methods</span>.<span class="ruby-identifier">grep</span>(<span class="ruby-constant">LOGIN_PROTECTION_METHOD_PATTERN</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">symbol_to_call</span><span class="ruby-operator">|</span>
|
||||
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">send</span>(<span class="ruby-identifier">symbol_to_call</span>)
|
||||
<span class="ruby-identifier">plugin_name</span> = <span class="ruby-identifier">symbol_to_call</span>[<span class="ruby-constant">LOGIN_PROTECTION_METHOD_PATTERN</span>, <span class="ruby-value">1</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-string">'_'</span>, <span class="ruby-string">'-'</span>)
|
||||
|
||||
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@login_protection_plugin</span> = <span class="ruby-constant">WpPlugin</span>.<span class="ruby-identifier">new</span>(
|
||||
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">plugin_name</span>,
|
||||
<span class="ruby-value">:base_url</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@uri</span>,
|
||||
<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-node">"/plugins/#{plugin_name}/"</span>,
|
||||
<span class="ruby-value">:wp_content_dir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@wp_content_dir</span>
|
||||
)
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-ivar">@login_protection_plugin</span> = <span class="ruby-keyword">nil</span>
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-ivar">@login_protection_plugin</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- login_protection_plugin-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- login_protection_plugin-method -->
|
||||
|
||||
|
||||
</div><!-- public-instance-method-details -->
|
||||
|
||||
<div id="protected-instance-method-details" class="method-section section">
|
||||
<h3 class="section-header">Protected Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="better_wp_security_url-method" class="method-detail ">
|
||||
<a name="method-i-better_wp_security_url"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">better_wp_security_url</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="better_wp_security_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 69</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">better_wp_security_url</span>
|
||||
<span class="ruby-constant">WpPlugin</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:wp_content_dir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@wp_content_dir</span>,
|
||||
<span class="ruby-value">:base_url</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@uri</span>,
|
||||
<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-string">"/plugins/better-wp-security/"</span>,
|
||||
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-string">"better-wp-security"</span>
|
||||
).<span class="ruby-identifier">get_url_without_filename</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- better_wp_security_url-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- better_wp_security_url-method -->
|
||||
|
||||
|
||||
<div id="bluetrait_event_viewer_url-method" class="method-detail ">
|
||||
<a name="method-i-bluetrait_event_viewer_url"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">bluetrait_event_viewer_url</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="bluetrait_event_viewer_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 121</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">bluetrait_event_viewer_url</span>
|
||||
<span class="ruby-constant">WpPlugin</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:wp_content_dir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@wp_content_dir</span>,
|
||||
<span class="ruby-value">:base_url</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@uri</span>,
|
||||
<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-string">"/plugins/bluetrait-event-viewer/"</span>,
|
||||
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-string">"bluetrait-event-viewer"</span>
|
||||
).<span class="ruby-identifier">get_url_without_filename</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- bluetrait_event_viewer_url-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- bluetrait_event_viewer_url-method -->
|
||||
|
||||
|
||||
<div id="has_better_wp_security_protection-3F-method" class="method-detail ">
|
||||
<a name="method-i-has_better_wp_security_protection-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">has_better_wp_security_protection?</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p><a
|
||||
href="http://wordpress.org/extend/plugins/better-wp-security/">wordpress.org/extend/plugins/better-wp-security/</a></p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="has_better_wp_security_protection-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 65</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_better_wp_security_protection?</span>
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">better_wp_security_url</span>()).<span class="ruby-identifier">code</span> <span class="ruby-operator">!=</span> <span class="ruby-value">404</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- has_better_wp_security_protection-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- has_better_wp_security_protection-3F-method -->
|
||||
|
||||
|
||||
<div id="has_bluetrait_event_viewer_protection-3F-method" class="method-detail ">
|
||||
<a name="method-i-has_bluetrait_event_viewer_protection-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">has_bluetrait_event_viewer_protection?</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p><a
|
||||
href="http://wordpress.org/extend/plugins/bluetrait-event-viewer/">wordpress.org/extend/plugins/bluetrait-event-viewer/</a></p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="has_bluetrait_event_viewer_protection-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 117</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_bluetrait_event_viewer_protection?</span>
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">bluetrait_event_viewer_url</span>()).<span class="ruby-identifier">code</span> <span class="ruby-operator">!=</span> <span class="ruby-value">404</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- has_bluetrait_event_viewer_protection-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- has_bluetrait_event_viewer_protection-3F-method -->
|
||||
|
||||
|
||||
<div id="has_limit_login_attempts_protection-3F-method" class="method-detail ">
|
||||
<a name="method-i-has_limit_login_attempts_protection-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">has_limit_login_attempts_protection?</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p><a
|
||||
href="http://wordpress.org/extend/plugins/limit-login-attempts/">wordpress.org/extend/plugins/limit-login-attempts/</a></p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="has_limit_login_attempts_protection-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 104</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_limit_login_attempts_protection?</span>
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">limit_login_attempts_url</span>()).<span class="ruby-identifier">code</span> <span class="ruby-operator">!=</span> <span class="ruby-value">404</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- has_limit_login_attempts_protection-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- has_limit_login_attempts_protection-3F-method -->
|
||||
|
||||
|
||||
<div id="has_login_lock_protection-3F-method" class="method-detail ">
|
||||
<a name="method-i-has_login_lock_protection-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">has_login_lock_protection?</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p><a
|
||||
href="http://wordpress.org/extend/plugins/login-lock/">wordpress.org/extend/plugins/login-lock/</a></p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="has_login_lock_protection-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 60</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_login_lock_protection?</span>
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">login_url</span>()).<span class="ruby-identifier">body</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">%{LOGIN LOCK}</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">false</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- has_login_lock_protection-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- has_login_lock_protection-3F-method -->
|
||||
|
||||
|
||||
<div id="has_login_lockdown_protection-3F-method" class="method-detail ">
|
||||
<a name="method-i-has_login_lockdown_protection-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">has_login_lockdown_protection?</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p>Thanks to Alip Aswalid for providing this method. <a
|
||||
href="http://wordpress.org/extend/plugins/login-lockdown/">wordpress.org/extend/plugins/login-lockdown/</a></p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="has_login_lockdown_protection-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 55</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_login_lockdown_protection?</span>
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">login_url</span>()).<span class="ruby-identifier">body</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">%{Login LockDown}</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">false</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- has_login_lockdown_protection-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- has_login_lockdown_protection-3F-method -->
|
||||
|
||||
|
||||
<div id="has_login_security_solution_protection-3F-method" class="method-detail ">
|
||||
<a name="method-i-has_login_security_solution_protection-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">has_login_security_solution_protection?</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p><a
|
||||
href="http://wordpress.org/extend/plugins/login-security-solution/">wordpress.org/extend/plugins/login-security-solution/</a></p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="has_login_security_solution_protection-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 91</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_login_security_solution_protection?</span>
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">login_security_solution_url</span>()).<span class="ruby-identifier">code</span> <span class="ruby-operator">!=</span> <span class="ruby-value">404</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- has_login_security_solution_protection-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- has_login_security_solution_protection-3F-method -->
|
||||
|
||||
|
||||
<div id="has_simple_login_lockdown_protection-3F-method" class="method-detail ">
|
||||
<a name="method-i-has_simple_login_lockdown_protection-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">has_simple_login_lockdown_protection?</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
<p><a
|
||||
href="http://wordpress.org/extend/plugins/simple-login-lockdown/">wordpress.org/extend/plugins/simple-login-lockdown/</a></p>
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="has_simple_login_lockdown_protection-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 78</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_simple_login_lockdown_protection?</span>
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">simple_login_lockdown_url</span>()).<span class="ruby-identifier">code</span> <span class="ruby-operator">!=</span> <span class="ruby-value">404</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- has_simple_login_lockdown_protection-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- has_simple_login_lockdown_protection-3F-method -->
|
||||
|
||||
|
||||
<div id="limit_login_attempts_url-method" class="method-detail ">
|
||||
<a name="method-i-limit_login_attempts_url"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">limit_login_attempts_url</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="limit_login_attempts_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 108</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">limit_login_attempts_url</span>
|
||||
<span class="ruby-constant">WpPlugin</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:wp_content_dir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@wp_content_dir</span>,
|
||||
<span class="ruby-value">:base_url</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@uri</span>,
|
||||
<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-string">"/plugins/limit-login-attempts/"</span>,
|
||||
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-string">"limit-login-attempts"</span>
|
||||
).<span class="ruby-identifier">get_url_without_filename</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- limit_login_attempts_url-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- limit_login_attempts_url-method -->
|
||||
|
||||
|
||||
<div id="login_security_solution_url-method" class="method-detail ">
|
||||
<a name="method-i-login_security_solution_url"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">login_security_solution_url</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="login_security_solution_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 95</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">login_security_solution_url</span>
|
||||
<span class="ruby-constant">WpPlugin</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:wp_content_dir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@wp_content_dir</span>,
|
||||
<span class="ruby-value">:base_url</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@uri</span>,
|
||||
<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-string">"/plugins/login-security-solution/"</span>,
|
||||
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-string">"login-security-solution"</span>
|
||||
).<span class="ruby-identifier">get_url_without_filename</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- login_security_solution_url-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- login_security_solution_url-method -->
|
||||
|
||||
|
||||
<div id="simple_login_lockdown_url-method" class="method-detail ">
|
||||
<a name="method-i-simple_login_lockdown_url"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">simple_login_lockdown_url</span><span
|
||||
class="method-args">()</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="simple_login_lockdown_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_login_protection.rb, line 82</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">simple_login_lockdown_url</span>
|
||||
<span class="ruby-constant">WpPlugin</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:wp_content_dir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@wp_content_dir</span>,
|
||||
<span class="ruby-value">:base_url</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@uri</span>,
|
||||
<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-string">"/plugins/simple-login-lockdown/"</span>,
|
||||
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-string">"simple-login-lockdown"</span>
|
||||
).<span class="ruby-identifier">get_url_without_filename</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- simple_login_lockdown_url-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- simple_login_lockdown_url-method -->
|
||||
|
||||
|
||||
</div><!-- protected-instance-method-details -->
|
||||
|
||||
</div><!-- 5Buntitled-5D -->
|
||||
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||
Rdoc Generator</a> 2</small>.</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -130,6 +130,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -134,6 +134,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -124,6 +124,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -124,6 +124,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -214,6 +214,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -355,6 +357,7 @@
|
||||
<span class="ruby-ivar">@verbose</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:verbose</span>]
|
||||
<span class="ruby-ivar">@wp_content_dir</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:wp_content_dir</span>]
|
||||
<span class="ruby-ivar">@wp_plugins_dir</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:wp_plugins_dir</span>]
|
||||
<span class="ruby-ivar">@multisite</span> = <span class="ruby-keyword">nil</span>
|
||||
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>(<span class="ruby-identifier">options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-value">:max_threads</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:threads</span>]))
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -387,7 +390,7 @@
|
||||
|
||||
<div class="method-source-code" id="valid_response_codes-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 76</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 77</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">valid_response_codes</span>
|
||||
[<span class="ruby-value">200</span>, <span class="ruby-value">403</span>, <span class="ruby-value">301</span>, <span class="ruby-value">302</span>, <span class="ruby-value">500</span>]
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -426,7 +429,7 @@
|
||||
|
||||
<div class="method-source-code" id="debug_log_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 122</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 123</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">debug_log_url</span>
|
||||
<span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-node">"#{wp_content_dir()}/debug.log"</span>).<span class="ruby-identifier">to_s</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -459,7 +462,7 @@
|
||||
|
||||
<div class="method-source-code" id="error_404_hash-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 63</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 64</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">error_404_hash</span>
|
||||
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@error_404_hash</span>
|
||||
<span class="ruby-identifier">non_existant_page</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">hexdigest</span>(<span class="ruby-identifier">rand</span>(<span class="ruby-value">9999999999</span>).<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">+</span> <span class="ruby-string">".html"</span>
|
||||
@@ -500,7 +503,7 @@
|
||||
|
||||
<div class="method-source-code" id="has_debug_log-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 116</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 117</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_debug_log?</span>
|
||||
<span class="ruby-comment"># We only get the first 700 bytes of the file to avoid loading huge file (like 2Go)</span>
|
||||
<span class="ruby-identifier">response_body</span> = <span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">debug_log_url</span>(), <span class="ruby-value">:headers</span> =<span class="ruby-operator">></span> {<span class="ruby-string">"range"</span> =<span class="ruby-operator">></span> <span class="ruby-string">"bytes=0-700"</span>}).<span class="ruby-identifier">body</span>
|
||||
@@ -535,7 +538,7 @@
|
||||
|
||||
<div class="method-source-code" id="is_multisite-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 161</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 162</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_multisite?</span>
|
||||
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@multisite</span>
|
||||
<span class="ruby-comment"># when multi site, there is no redirection or a redirect to the site itself</span>
|
||||
@@ -583,7 +586,7 @@
|
||||
|
||||
<div class="method-source-code" id="login_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 50</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 51</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">login_url</span>
|
||||
<span class="ruby-identifier">url</span> = <span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-string">"wp-login.php"</span>).<span class="ruby-identifier">to_s</span>
|
||||
|
||||
@@ -624,7 +627,7 @@
|
||||
|
||||
<div class="method-source-code" id="registration_enabled-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 139</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 140</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">registration_enabled?</span>
|
||||
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">registration_url</span>)
|
||||
<span class="ruby-comment"># redirect only on non multi sites</span>
|
||||
@@ -671,7 +674,7 @@
|
||||
|
||||
<div class="method-source-code" id="registration_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 157</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 158</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">registration_url</span>
|
||||
<span class="ruby-identifier">is_multisite?</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-string">"wp-signup.php"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-string">"wp-login.php?action=register"</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -704,7 +707,7 @@
|
||||
|
||||
<div class="method-source-code" id="search_replace_db_2_exists-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 133</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 134</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">search_replace_db_2_exists?</span>
|
||||
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">search_replace_db_2_url</span>)
|
||||
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">code</span> <span class="ruby-operator">==</span> <span class="ruby-value">200</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">body</span>[<span class="ruby-regexp">%{by interconnect}</span>]
|
||||
@@ -740,7 +743,7 @@ href="http://interconnectit.com/124/search-and-replace-for-wordpress-databases/"
|
||||
|
||||
<div class="method-source-code" id="search_replace_db_2_url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 129</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 130</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">search_replace_db_2_url</span>
|
||||
<span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-string">"searchreplacedb2.php"</span>).<span class="ruby-identifier">to_s</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -773,7 +776,7 @@ href="http://interconnectit.com/124/search-and-replace-for-wordpress-databases/"
|
||||
|
||||
<div class="method-source-code" id="theme-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 81</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 82</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">theme</span>
|
||||
<span class="ruby-constant">WpTheme</span>.<span class="ruby-identifier">find</span>(<span class="ruby-ivar">@uri</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -806,7 +809,7 @@ href="http://interconnectit.com/124/search-and-replace-for-wordpress-databases/"
|
||||
|
||||
<div class="method-source-code" id="url-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 46</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 47</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">url</span>
|
||||
<span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">to_s</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -839,7 +842,7 @@ href="http://interconnectit.com/124/search-and-replace-for-wordpress-databases/"
|
||||
|
||||
<div class="method-source-code" id="version-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 86</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 87</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">version</span>
|
||||
<span class="ruby-constant">WpVersion</span>.<span class="ruby-identifier">find</span>(<span class="ruby-ivar">@uri</span>, <span class="ruby-identifier">wp_content_dir</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -872,14 +875,14 @@ href="http://interconnectit.com/124/search-and-replace-for-wordpress-databases/"
|
||||
|
||||
<div class="method-source-code" id="wp_content_dir-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 90</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 91</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">wp_content_dir</span>
|
||||
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@wp_content_dir</span>
|
||||
<span class="ruby-identifier">index_body</span> = <span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">body</span>
|
||||
<span class="ruby-comment"># Only use the path because domain can be text or an ip</span>
|
||||
<span class="ruby-identifier">uri_path</span> = <span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">path</span>
|
||||
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">index_body</span>[<span class="ruby-node">/#{Regexp.escape(uri_path)}\/wp-content\/(?:themes|plugins)\//</span>]
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">index_body</span>[<span class="ruby-regexp">/\/wp-content\/(?:themes|plugins)\//</span>]
|
||||
<span class="ruby-ivar">@wp_content_dir</span> = <span class="ruby-string">"wp-content"</span>
|
||||
<span class="ruby-keyword">else</span>
|
||||
<span class="ruby-ivar">@wp_content_dir</span> = <span class="ruby-identifier">index_body</span>[<span class="ruby-node">/(?:href|src)\s*=\s*(?:"|').+#{Regexp.escape(uri_path)}([^"']+)\/(?:themes|plugins)\/.*(?:"|')/</span>, <span class="ruby-value">1</span>]
|
||||
@@ -916,7 +919,7 @@ href="http://interconnectit.com/124/search-and-replace-for-wordpress-databases/"
|
||||
|
||||
<div class="method-source-code" id="wp_plugins_dir-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 105</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 106</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">wp_plugins_dir</span>
|
||||
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@wp_plugins_dir</span>
|
||||
<span class="ruby-ivar">@wp_plugins_dir</span> = <span class="ruby-node">"#{wp_content_dir}/plugins"</span>
|
||||
@@ -952,7 +955,7 @@ href="http://interconnectit.com/124/search-and-replace-for-wordpress-databases/"
|
||||
|
||||
<div class="method-source-code" id="wp_plugins_dir_exists-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 112</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_target.rb, line 113</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">wp_plugins_dir_exists?</span>
|
||||
<span class="ruby-constant">Browser</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">get</span>(<span class="ruby-ivar">@uri</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">wp_plugins_dir</span>)).<span class="ruby-identifier">code</span> <span class="ruby-operator">!=</span> <span class="ruby-value">404</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
|
||||
@@ -138,6 +138,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
316
doc/WpThemes.html
Normal file
316
doc/WpThemes.html
Normal file
@@ -0,0 +1,316 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
|
||||
<title>Module: WpThemes</title>
|
||||
|
||||
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||
|
||||
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
</head>
|
||||
<body id="top" class="module">
|
||||
|
||||
<div id="metadata">
|
||||
<div id="home-metadata">
|
||||
<div id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./index.html#classes">Classes</a>
|
||||
<a href="./index.html#methods">Methods</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="file-metadata">
|
||||
<div id="file-list-section" class="section">
|
||||
<h3 class="section-header">In Files</h3>
|
||||
<div class="section-body">
|
||||
<ul>
|
||||
|
||||
<li><a href="./lib/wpscan/modules/wp_themes_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/wpscan/modules/wp_themes.rb">lib/wpscan/modules/wp_themes.rb</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<div id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-i-themes_from_aggressive_detection">#themes_from_aggressive_detection</a></li>
|
||||
|
||||
<li><a href="#method-i-themes_from_passive_detection">#themes_from_passive_detection</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
|
||||
<div id="fileindex-section" class="section project-section">
|
||||
<h3 class="section-header">Files</h3>
|
||||
<ul>
|
||||
|
||||
<li class="file"><a href="./CREDITS.html">CREDITS</a></li>
|
||||
|
||||
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
||||
|
||||
<li class="file"><a href="./README.html">README</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class/Module Index
|
||||
<span class="search-toggle"><img src="./images/find.png"
|
||||
height="16" width="16" alt="[+]"
|
||||
title="show/hide quicksearch" /></span></h3>
|
||||
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||
<fieldset>
|
||||
<legend>Quicksearch</legend>
|
||||
<input type="text" name="quicksearch" value=""
|
||||
class="quicksearch-field" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Array.html">Array</a></li>
|
||||
|
||||
<li><a href="./Browser.html">Browser</a></li>
|
||||
|
||||
<li><a href="./BruteForce.html">BruteForce</a></li>
|
||||
|
||||
<li><a href="./CacheFileStore.html">CacheFileStore</a></li>
|
||||
|
||||
<li><a href="./Exploit.html">Exploit</a></li>
|
||||
|
||||
<li><a href="./Generate_List.html">Generate_List</a></li>
|
||||
|
||||
<li><a href="./GitUpdater.html">GitUpdater</a></li>
|
||||
|
||||
<li><a href="./Malwares.html">Malwares</a></li>
|
||||
|
||||
<li><a href="./Object.html">Object</a></li>
|
||||
|
||||
<li><a href="./RpcClient.html">RpcClient</a></li>
|
||||
|
||||
<li><a href="./SvnUpdater.html">SvnUpdater</a></li>
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
<li><a href="./Vulnerable.html">Vulnerable</a></li>
|
||||
|
||||
<li><a href="./WebSite.html">WebSite</a></li>
|
||||
|
||||
<li><a href="./WpConfigBackup.html">WpConfigBackup</a></li>
|
||||
|
||||
<li><a href="./WpDetector.html">WpDetector</a></li>
|
||||
|
||||
<li><a href="./WpEnumerator.html">WpEnumerator</a></li>
|
||||
|
||||
<li><a href="./WpFullPathDisclosure.html">WpFullPathDisclosure</a></li>
|
||||
|
||||
<li><a href="./WpItem.html">WpItem</a></li>
|
||||
|
||||
<li><a href="./WpLoginProtection.html">WpLoginProtection</a></li>
|
||||
|
||||
<li><a href="./WpOptions.html">WpOptions</a></li>
|
||||
|
||||
<li><a href="./WpPlugin.html">WpPlugin</a></li>
|
||||
|
||||
<li><a href="./WpPlugins.html">WpPlugins</a></li>
|
||||
|
||||
<li><a href="./WpReadme.html">WpReadme</a></li>
|
||||
|
||||
<li><a href="./WpTarget.html">WpTarget</a></li>
|
||||
|
||||
<li><a href="./WpTheme.html">WpTheme</a></li>
|
||||
|
||||
<li><a href="./WpThemes.html">WpThemes</a></li>
|
||||
|
||||
<li><a href="./WpTimthumbs.html">WpTimthumbs</a></li>
|
||||
|
||||
<li><a href="./WpUser.html">WpUser</a></li>
|
||||
|
||||
<li><a href="./WpUsernames.html">WpUsernames</a></li>
|
||||
|
||||
<li><a href="./WpVersion.html">WpVersion</a></li>
|
||||
|
||||
<li><a href="./WpVulnerability.html">WpVulnerability</a></li>
|
||||
|
||||
<li><a href="./WpscanOptions.html">WpscanOptions</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="module">WpThemes</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<div id="public-instance-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="themes_from_aggressive_detection-method" class="method-detail ">
|
||||
<a name="method-i-themes_from_aggressive_detection"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">themes_from_aggressive_detection</span><span
|
||||
class="method-args">(options)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="themes_from_aggressive_detection-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_themes.rb, line 21</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">themes_from_aggressive_detection</span>(<span class="ruby-identifier">options</span>)
|
||||
<span class="ruby-identifier">options</span>[<span class="ruby-value">:file</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value">:file</span>] <span class="ruby-operator">||</span> <span class="ruby-node">"#{DATA_DIR}/themes.txt"</span>
|
||||
<span class="ruby-identifier">options</span>[<span class="ruby-value">:vulns_file</span>] = (<span class="ruby-identifier">options</span>[<span class="ruby-value">:vulns_file</span>] <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:vulns_file</span>] <span class="ruby-operator">!=</span> <span class="ruby-string">""</span>) <span class="ruby-operator">?</span>
|
||||
<span class="ruby-identifier">options</span>[<span class="ruby-value">:vulns_file</span>] <span class="ruby-operator">:</span> <span class="ruby-constant">DATA_DIR</span> <span class="ruby-operator">+</span> <span class="ruby-string">"/wp_theme_vulns.xml"</span>
|
||||
<span class="ruby-identifier">options</span>[<span class="ruby-value">:vulns_xpath</span>] = <span class="ruby-node">"//theme[@name='#{@name}']/vulnerability"</span>
|
||||
<span class="ruby-identifier">options</span>[<span class="ruby-value">:vulns_xpath_2</span>] = <span class="ruby-string">"//theme"</span>
|
||||
<span class="ruby-identifier">options</span>[<span class="ruby-value">:type</span>] = <span class="ruby-string">"themes"</span>
|
||||
<span class="ruby-identifier">result</span> = <span class="ruby-constant">WpDetector</span>.<span class="ruby-identifier">aggressive_detection</span>(<span class="ruby-identifier">options</span>)
|
||||
<span class="ruby-identifier">themes</span> = []
|
||||
<span class="ruby-identifier">result</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">themes</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">WpTheme</span>.<span class="ruby-identifier">new</span>(
|
||||
<span class="ruby-value">:base_url</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">base_url</span>,
|
||||
<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">path</span>,
|
||||
<span class="ruby-value">:wp_content_dir</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">wp_content_dir</span>,
|
||||
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">name</span>
|
||||
)
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">themes</span>.<span class="ruby-identifier">sort_by</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">name</span> }
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- themes_from_aggressive_detection-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- themes_from_aggressive_detection-method -->
|
||||
|
||||
|
||||
<div id="themes_from_passive_detection-method" class="method-detail ">
|
||||
<a name="method-i-themes_from_passive_detection"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">themes_from_passive_detection</span><span
|
||||
class="method-args">(options)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="themes_from_passive_detection-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/modules/wp_themes.rb, line 41</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">themes_from_passive_detection</span>(<span class="ruby-identifier">options</span>)
|
||||
<span class="ruby-identifier">themes</span> = []
|
||||
<span class="ruby-identifier">temp</span> = <span class="ruby-constant">WpDetector</span>.<span class="ruby-identifier">passive_detection</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:base_url</span>], <span class="ruby-string">"themes"</span>, <span class="ruby-identifier">options</span>[<span class="ruby-value">:wp_content_dir</span>])
|
||||
|
||||
<span class="ruby-identifier">temp</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">themes</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">WpTheme</span>.<span class="ruby-identifier">new</span>(
|
||||
<span class="ruby-value">:base_url</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">base_url</span>,
|
||||
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">name</span>,
|
||||
<span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">path</span>,
|
||||
<span class="ruby-value">:wp_content_dir</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:wp_content_dir</span>]
|
||||
)
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-identifier">themes</span>.<span class="ruby-identifier">sort_by</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">name</span> }
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- themes_from_passive_detection-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- themes_from_passive_detection-method -->
|
||||
|
||||
|
||||
</div><!-- public-instance-method-details -->
|
||||
|
||||
</div><!-- 5Buntitled-5D -->
|
||||
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||
Rdoc Generator</a> 2</small>.</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -126,6 +126,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
433
doc/WpUser.html
Normal file
433
doc/WpUser.html
Normal file
@@ -0,0 +1,433 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
|
||||
<title>Class: WpUser</title>
|
||||
|
||||
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
||||
|
||||
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
</head>
|
||||
<body id="top" class="class">
|
||||
|
||||
<div id="metadata">
|
||||
<div id="home-metadata">
|
||||
<div id="home-section" class="section">
|
||||
<h3 class="section-header">
|
||||
<a href="./index.html">Home</a>
|
||||
<a href="./index.html#classes">Classes</a>
|
||||
<a href="./index.html#methods">Methods</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="file-metadata">
|
||||
<div id="file-list-section" class="section">
|
||||
<h3 class="section-header">In Files</h3>
|
||||
<div class="section-body">
|
||||
<ul>
|
||||
|
||||
<li><a href="./lib/wpscan/wp_user_rb.html?TB_iframe=true&height=550&width=785"
|
||||
class="thickbox" title="lib/wpscan/wp_user.rb">lib/wpscan/wp_user.rb</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="class-metadata">
|
||||
|
||||
<!-- Parent Class -->
|
||||
<div id="parent-class-section" class="section">
|
||||
<h3 class="section-header">Parent</h3>
|
||||
|
||||
<p class="link"><a href="Object.html">Object</a></p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Method Quickref -->
|
||||
<div id="method-list-section" class="section">
|
||||
<h3 class="section-header">Methods</h3>
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="#method-c-new">::new</a></li>
|
||||
|
||||
<li><a href="#method-i-3C-3D-3E">#<=></a></li>
|
||||
|
||||
<li><a href="#method-i-3D-3D-3D">#===</a></li>
|
||||
|
||||
<li><a href="#method-i-eql-3F">#eql?</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="project-metadata">
|
||||
|
||||
|
||||
<div id="fileindex-section" class="section project-section">
|
||||
<h3 class="section-header">Files</h3>
|
||||
<ul>
|
||||
|
||||
<li class="file"><a href="./CREDITS.html">CREDITS</a></li>
|
||||
|
||||
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
||||
|
||||
<li class="file"><a href="./README.html">README</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="classindex-section" class="section project-section">
|
||||
<h3 class="section-header">Class/Module Index
|
||||
<span class="search-toggle"><img src="./images/find.png"
|
||||
height="16" width="16" alt="[+]"
|
||||
title="show/hide quicksearch" /></span></h3>
|
||||
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
||||
<fieldset>
|
||||
<legend>Quicksearch</legend>
|
||||
<input type="text" name="quicksearch" value=""
|
||||
class="quicksearch-field" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<ul class="link-list">
|
||||
|
||||
<li><a href="./Array.html">Array</a></li>
|
||||
|
||||
<li><a href="./Browser.html">Browser</a></li>
|
||||
|
||||
<li><a href="./BruteForce.html">BruteForce</a></li>
|
||||
|
||||
<li><a href="./CacheFileStore.html">CacheFileStore</a></li>
|
||||
|
||||
<li><a href="./Exploit.html">Exploit</a></li>
|
||||
|
||||
<li><a href="./Generate_List.html">Generate_List</a></li>
|
||||
|
||||
<li><a href="./GitUpdater.html">GitUpdater</a></li>
|
||||
|
||||
<li><a href="./Malwares.html">Malwares</a></li>
|
||||
|
||||
<li><a href="./Object.html">Object</a></li>
|
||||
|
||||
<li><a href="./RpcClient.html">RpcClient</a></li>
|
||||
|
||||
<li><a href="./SvnUpdater.html">SvnUpdater</a></li>
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
<li><a href="./Vulnerable.html">Vulnerable</a></li>
|
||||
|
||||
<li><a href="./WebSite.html">WebSite</a></li>
|
||||
|
||||
<li><a href="./WpConfigBackup.html">WpConfigBackup</a></li>
|
||||
|
||||
<li><a href="./WpDetector.html">WpDetector</a></li>
|
||||
|
||||
<li><a href="./WpEnumerator.html">WpEnumerator</a></li>
|
||||
|
||||
<li><a href="./WpFullPathDisclosure.html">WpFullPathDisclosure</a></li>
|
||||
|
||||
<li><a href="./WpItem.html">WpItem</a></li>
|
||||
|
||||
<li><a href="./WpLoginProtection.html">WpLoginProtection</a></li>
|
||||
|
||||
<li><a href="./WpOptions.html">WpOptions</a></li>
|
||||
|
||||
<li><a href="./WpPlugin.html">WpPlugin</a></li>
|
||||
|
||||
<li><a href="./WpPlugins.html">WpPlugins</a></li>
|
||||
|
||||
<li><a href="./WpReadme.html">WpReadme</a></li>
|
||||
|
||||
<li><a href="./WpTarget.html">WpTarget</a></li>
|
||||
|
||||
<li><a href="./WpTheme.html">WpTheme</a></li>
|
||||
|
||||
<li><a href="./WpThemes.html">WpThemes</a></li>
|
||||
|
||||
<li><a href="./WpTimthumbs.html">WpTimthumbs</a></li>
|
||||
|
||||
<li><a href="./WpUser.html">WpUser</a></li>
|
||||
|
||||
<li><a href="./WpUsernames.html">WpUsernames</a></li>
|
||||
|
||||
<li><a href="./WpVersion.html">WpVersion</a></li>
|
||||
|
||||
<li><a href="./WpVulnerability.html">WpVulnerability</a></li>
|
||||
|
||||
<li><a href="./WpscanOptions.html">WpscanOptions</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="documentation">
|
||||
<h1 class="class">WpUser</h1>
|
||||
|
||||
<div id="description" class="description">
|
||||
|
||||
</div><!-- description -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="5Buntitled-5D" class="documentation-section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Attributes -->
|
||||
<div id="attribute-method-details" class="method-section section">
|
||||
<h3 class="section-header">Attributes</h3>
|
||||
|
||||
|
||||
<div id="id-attribute-method" class="method-detail">
|
||||
<a name="id"></a>
|
||||
|
||||
<a name="id="></a>
|
||||
|
||||
<div class="method-heading attribute-method-heading">
|
||||
<span class="method-name">id</span><span
|
||||
class="attribute-access-type">[RW]</span>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="name-attribute-method" class="method-detail">
|
||||
<a name="name"></a>
|
||||
|
||||
<a name="name="></a>
|
||||
|
||||
<div class="method-heading attribute-method-heading">
|
||||
<span class="method-name">name</span><span
|
||||
class="attribute-access-type">[RW]</span>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="nickname-attribute-method" class="method-detail">
|
||||
<a name="nickname"></a>
|
||||
|
||||
<a name="nickname="></a>
|
||||
|
||||
<div class="method-heading attribute-method-heading">
|
||||
<span class="method-name">nickname</span><span
|
||||
class="attribute-access-type">[RW]</span>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- attribute-method-details -->
|
||||
|
||||
|
||||
<!-- Methods -->
|
||||
|
||||
<div id="public-class-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Class Methods</h3>
|
||||
|
||||
|
||||
<div id="new-method" class="method-detail ">
|
||||
<a name="method-c-new"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">new</span><span
|
||||
class="method-args">(name, id, nickname)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="new-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_user.rb, line 22</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">nickname</span>)
|
||||
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">:</span> <span class="ruby-string">"empty"</span>
|
||||
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">:</span> <span class="ruby-string">"empty"</span>
|
||||
<span class="ruby-ivar">@nickname</span> = <span class="ruby-identifier">nickname</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">nickname</span> <span class="ruby-operator">:</span> <span class="ruby-string">"empty"</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- new-method -->
|
||||
|
||||
|
||||
</div><!-- public-class-method-details -->
|
||||
|
||||
<div id="public-instance-method-details" class="method-section section">
|
||||
<h3 class="section-header">Public Instance Methods</h3>
|
||||
|
||||
|
||||
<div id="3C-3D-3E-method" class="method-detail ">
|
||||
<a name="method-i-3C-3D-3E"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name"><=></span><span
|
||||
class="method-args">(item)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="3C-3D-3E-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_user.rb, line 28</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">item</span>)
|
||||
<span class="ruby-identifier">item</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator"><=></span> <span class="ruby-ivar">@name</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- 3C-3D-3E-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- 3C-3D-3E-method -->
|
||||
|
||||
|
||||
<div id="3D-3D-3D-method" class="method-detail ">
|
||||
<a name="method-i-3D-3D-3D"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">===</span><span
|
||||
class="method-args">(item)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="3D-3D-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_user.rb, line 32</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-operator">===</span>(<span class="ruby-identifier">item</span>)
|
||||
<span class="ruby-identifier">item</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">===</span> <span class="ruby-ivar">@name</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">===</span> <span class="ruby-ivar">@id</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">nickname</span> <span class="ruby-operator">===</span> <span class="ruby-ivar">@nickname</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- 3D-3D-3D-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- 3D-3D-3D-method -->
|
||||
|
||||
|
||||
<div id="eql-3F-method" class="method-detail ">
|
||||
<a name="method-i-eql-3F"></a>
|
||||
|
||||
|
||||
<div class="method-heading">
|
||||
<span class="method-name">eql?</span><span
|
||||
class="method-args">(item)</span>
|
||||
<span class="method-click-advice">click to toggle source</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="method-description">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-source-code" id="eql-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wp_user.rb, line 36</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">item</span>)
|
||||
<span class="ruby-identifier">item</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">===</span> <span class="ruby-ivar">@name</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">===</span> <span class="ruby-ivar">@id</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">nickname</span> <span class="ruby-operator">===</span> <span class="ruby-ivar">@nickname</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- eql-3F-source -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- eql-3F-method -->
|
||||
|
||||
|
||||
</div><!-- public-instance-method-details -->
|
||||
|
||||
</div><!-- 5Buntitled-5D -->
|
||||
|
||||
|
||||
</div><!-- documentation -->
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
||||
Rdoc Generator</a> 2</small>.</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -132,6 +132,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -146,6 +146,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -130,6 +130,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
|
||||
@@ -164,6 +164,8 @@
|
||||
|
||||
<li><a href="./Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li><a href="./URI.html">URI</a></li>
|
||||
|
||||
<li><a href="./Updater.html">Updater</a></li>
|
||||
|
||||
<li><a href="./UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -276,7 +278,7 @@ href="WpscanOptions.html">WpscanOptions</a></p>
|
||||
|
||||
<div class="method-source-code" id="load_from_arguments-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 129</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 131</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_from_arguments</span>
|
||||
<span class="ruby-identifier">wpscan_options</span> = <span class="ruby-constant">WpscanOptions</span>.<span class="ruby-identifier">new</span>
|
||||
|
||||
@@ -319,7 +321,9 @@ href="WpscanOptions.html">WpscanOptions</a></p>
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 47</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
|
||||
|
||||
<span class="ruby-constant">ACCESSOR_OPTIONS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">option</span><span class="ruby-operator">|</span>
|
||||
<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">"@#{option}"</span>, <span class="ruby-keyword">nil</span>)
|
||||
<span class="ruby-keyword">end</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
</div><!-- new-source -->
|
||||
|
||||
@@ -359,7 +363,7 @@ any remaining ‘-’ by ‘_’</p>
|
||||
|
||||
<div class="method-source-code" id="clean_option-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 217</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 219</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">clean_option</span>(<span class="ruby-identifier">option</span>)
|
||||
<span class="ruby-identifier">cleaned_option</span> = <span class="ruby-identifier">option</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/^--?/</span>, <span class="ruby-string">''</span>)
|
||||
<span class="ruby-identifier">cleaned_option</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/-/</span>, <span class="ruby-string">'_'</span>)
|
||||
@@ -394,7 +398,7 @@ any remaining ‘-’ by ‘_’</p>
|
||||
|
||||
<div class="method-source-code" id="get_opt_long-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 189</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 191</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_opt_long</span>
|
||||
<span class="ruby-constant">GetoptLong</span>.<span class="ruby-identifier">new</span>(
|
||||
[<span class="ruby-string">"--url"</span>, <span class="ruby-string">"-u"</span>, <span class="ruby-constant">GetoptLong</span><span class="ruby-operator">::</span><span class="ruby-constant">REQUIRED_ARGUMENT</span>],
|
||||
@@ -442,7 +446,7 @@ any remaining ‘-’ by ‘_’</p>
|
||||
|
||||
<div class="method-source-code" id="is_long_option-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 208</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 210</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">is_long_option?</span>(<span class="ruby-identifier">option</span>)
|
||||
<span class="ruby-constant">ACCESSOR_OPTIONS</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value">:"#{WpscanOptions.clean_option(option)}"</span>)
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -475,7 +479,7 @@ any remaining ‘-’ by ‘_’</p>
|
||||
|
||||
<div class="method-source-code" id="option_to_instance_variable_setter-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 222</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 224</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">option_to_instance_variable_setter</span>(<span class="ruby-identifier">option</span>)
|
||||
<span class="ruby-identifier">cleaned_option</span> = <span class="ruby-constant">WpscanOptions</span>.<span class="ruby-identifier">clean_option</span>(<span class="ruby-identifier">option</span>)
|
||||
<span class="ruby-identifier">option_syms</span> = <span class="ruby-constant">ACCESSOR_OPTIONS</span>.<span class="ruby-identifier">grep</span>(<span class="ruby-node">%{^#{cleaned_option}}</span>)
|
||||
@@ -517,7 +521,7 @@ any remaining ‘-’ by ‘_’</p>
|
||||
|
||||
<div class="method-source-code" id="enumerate_only_vulnerable_plugins-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 85</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 87</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">enumerate_only_vulnerable_plugins=</span>(<span class="ruby-identifier">enumerate_only_vulnerable_plugins</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">enumerate_only_vulnerable_plugins</span> <span class="ruby-operator">===</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">and</span> <span class="ruby-ivar">@enumerate_plugins</span> <span class="ruby-operator">===</span> <span class="ruby-keyword">true</span>
|
||||
<span class="ruby-identifier">raise</span> <span class="ruby-string">"You can't enumerate plugins and only vulnerable plugins at the same time, please choose only one"</span>
|
||||
@@ -554,7 +558,7 @@ any remaining ‘-’ by ‘_’</p>
|
||||
|
||||
<div class="method-source-code" id="enumerate_only_vulnerable_themes-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 101</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 103</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">enumerate_only_vulnerable_themes=</span>(<span class="ruby-identifier">enumerate_only_vulnerable_themes</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">enumerate_only_vulnerable_themes</span> <span class="ruby-operator">===</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">and</span> <span class="ruby-ivar">@enumerate_themes</span> <span class="ruby-operator">===</span> <span class="ruby-keyword">true</span>
|
||||
<span class="ruby-identifier">raise</span> <span class="ruby-string">"You can't enumerate themes and only vulnerable themes at the same time, please choose only one"</span>
|
||||
@@ -595,7 +599,7 @@ href="http://1-10">u</a> will enumerate usernames from 1 to 10</p>
|
||||
|
||||
<div class="method-source-code" id="enumerate_options_from_string-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 164</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 166</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">enumerate_options_from_string</span>(<span class="ruby-identifier">value</span>)
|
||||
<span class="ruby-comment"># Usage of self is mandatory because there are overridden setters</span>
|
||||
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">enumerate_only_vulnerable_plugins</span> = <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/p!/</span>
|
||||
@@ -647,7 +651,7 @@ href="http://1-10">u</a> will enumerate usernames from 1 to 10</p>
|
||||
|
||||
<div class="method-source-code" id="enumerate_plugins-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 77</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 79</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">enumerate_plugins=</span>(<span class="ruby-identifier">enumerate_plugins</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">enumerate_plugins</span> <span class="ruby-operator">===</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">and</span> <span class="ruby-ivar">@enumerate_only_vulnerable_plugins</span> <span class="ruby-operator">===</span> <span class="ruby-keyword">true</span>
|
||||
<span class="ruby-identifier">raise</span> <span class="ruby-string">"You can't enumerate plugins and only vulnerable plugins at the same time, please choose only one"</span>
|
||||
@@ -684,7 +688,7 @@ href="http://1-10">u</a> will enumerate usernames from 1 to 10</p>
|
||||
|
||||
<div class="method-source-code" id="enumerate_themes-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 93</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 95</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">enumerate_themes=</span>(<span class="ruby-identifier">enumerate_themes</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">enumerate_themes</span> <span class="ruby-operator">===</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">and</span> <span class="ruby-ivar">@enumerate_only_vulnerable_themes</span> <span class="ruby-operator">===</span> <span class="ruby-keyword">true</span>
|
||||
<span class="ruby-identifier">raise</span> <span class="ruby-string">"You can't enumerate themes and only vulnerable themes at the same time, please choose only one"</span>
|
||||
@@ -721,7 +725,7 @@ href="http://1-10">u</a> will enumerate usernames from 1 to 10</p>
|
||||
|
||||
<div class="method-source-code" id="has_options-3F-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 109</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 111</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">has_options?</span>
|
||||
<span class="ruby-operator">!</span><span class="ruby-identifier">to_h</span>.<span class="ruby-identifier">empty?</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -754,7 +758,7 @@ href="http://1-10">u</a> will enumerate usernames from 1 to 10</p>
|
||||
|
||||
<div class="method-source-code" id="proxy-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 69</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 71</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">proxy=</span>(<span class="ruby-identifier">proxy</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-identifier">proxy</span>.<span class="ruby-identifier">index</span>(<span class="ruby-string">':'</span>) <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
|
||||
<span class="ruby-identifier">raise</span> <span class="ruby-string">"Invalid proxy format. Should be host:port."</span>
|
||||
@@ -792,7 +796,7 @@ value</p>
|
||||
|
||||
<div class="method-source-code" id="set_option_from_cli-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 143</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 145</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_option_from_cli</span>(<span class="ruby-identifier">cli_option</span>, <span class="ruby-identifier">cli_value</span>)
|
||||
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-constant">WpscanOptions</span>.<span class="ruby-identifier">is_long_option?</span>(<span class="ruby-identifier">cli_option</span>)
|
||||
@@ -838,7 +842,7 @@ value</p>
|
||||
|
||||
<div class="method-source-code" id="threads-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 57</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 59</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">threads=</span>(<span class="ruby-identifier">threads</span>)
|
||||
<span class="ruby-ivar">@threads</span> = <span class="ruby-identifier">threads</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Integer</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">threads</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">threads</span>.<span class="ruby-identifier">to_i</span>
|
||||
<span class="ruby-keyword">end</span></pre>
|
||||
@@ -871,7 +875,7 @@ value</p>
|
||||
|
||||
<div class="method-source-code" id="to_h-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 114</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 116</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_h</span>
|
||||
<span class="ruby-identifier">options</span> = {}
|
||||
|
||||
@@ -913,7 +917,7 @@ value</p>
|
||||
|
||||
<div class="method-source-code" id="url-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 51</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 53</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">url=</span>(<span class="ruby-identifier">url</span>)
|
||||
<span class="ruby-identifier">raise</span> <span class="ruby-string">"Empty URL given"</span> <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">url</span>
|
||||
|
||||
@@ -948,7 +952,7 @@ value</p>
|
||||
|
||||
<div class="method-source-code" id="wordlist-3D-source">
|
||||
<pre>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 61</span>
|
||||
<span class="ruby-comment"># File lib/wpscan/wpscan_options.rb, line 63</span>
|
||||
<span class="ruby-keyword">def</span> <span class="ruby-identifier">wordlist=</span>(<span class="ruby-identifier">wordlist</span>)
|
||||
<span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">wordlist</span>)
|
||||
<span class="ruby-ivar">@wordlist</span> = <span class="ruby-identifier">wordlist</span>
|
||||
|
||||
@@ -1,43 +1,43 @@
|
||||
Mon, 24 Sep 2012 23:03:20 +0200
|
||||
./CREDITS Mon, 17 Sep 2012 20:18:24 +0200
|
||||
./Gemfile Sat, 22 Sep 2012 00:14:07 +0200
|
||||
./lib/browser.rb Sat, 22 Sep 2012 15:51:15 +0200
|
||||
./lib/cache_file_store.rb Sat, 22 Sep 2012 15:00:03 +0200
|
||||
./lib/common_helper.rb Sat, 22 Sep 2012 16:08:50 +0200
|
||||
./lib/environment.rb Sat, 22 Sep 2012 09:22:22 +0200
|
||||
./lib/updater/git_updater.rb Sat, 15 Sep 2012 08:00:23 +0200
|
||||
./lib/updater/svn_updater.rb Sat, 22 Sep 2012 15:04:12 +0200
|
||||
./lib/updater/updater.rb Sat, 15 Sep 2012 08:00:40 +0200
|
||||
./lib/updater/updater_factory.rb Sat, 15 Sep 2012 08:00:46 +0200
|
||||
./lib/wpscan/exploit.rb Fri, 21 Sep 2012 23:23:55 +0200
|
||||
./lib/wpscan/modules/brute_force.rb Sat, 22 Sep 2012 00:10:17 +0200
|
||||
./lib/wpscan/modules/malwares.rb Sat, 22 Sep 2012 15:01:32 +0200
|
||||
./lib/wpscan/modules/web_site.rb Sat, 22 Sep 2012 16:18:55 +0200
|
||||
./lib/wpscan/modules/wp_config_backup.rb Sat, 22 Sep 2012 15:01:32 +0200
|
||||
./lib/wpscan/modules/wp_full_path_disclosure.rb Sat, 15 Sep 2012 08:01:17 +0200
|
||||
./lib/wpscan/modules/wp_login_protection.rb Sun, 23 Sep 2012 19:38:40 +0200
|
||||
./lib/wpscan/modules/wp_plugins.rb Sun, 23 Sep 2012 20:20:17 +0200
|
||||
./lib/wpscan/modules/wp_readme.rb Sat, 15 Sep 2012 08:01:52 +0200
|
||||
./lib/wpscan/modules/wp_themes.rb Sun, 23 Sep 2012 19:41:17 +0200
|
||||
./lib/wpscan/modules/wp_timthumbs.rb Sun, 23 Sep 2012 19:40:38 +0200
|
||||
./lib/wpscan/modules/wp_usernames.rb Sat, 22 Sep 2012 15:01:32 +0200
|
||||
./lib/wpscan/msfrpc_client.rb Fri, 21 Sep 2012 23:32:27 +0200
|
||||
./lib/wpscan/vulnerable.rb Sat, 22 Sep 2012 21:23:01 +0200
|
||||
./lib/wpscan/wp_detector.rb Sun, 23 Sep 2012 19:40:56 +0200
|
||||
./lib/wpscan/wp_enumerator.rb Sun, 23 Sep 2012 22:46:23 +0200
|
||||
./lib/wpscan/wp_item.rb Sun, 23 Sep 2012 21:47:56 +0200
|
||||
./lib/wpscan/wp_options.rb Sun, 23 Sep 2012 19:35:16 +0200
|
||||
./lib/wpscan/wp_plugin.rb Sun, 23 Sep 2012 19:59:17 +0200
|
||||
./lib/wpscan/wp_target.rb Mon, 24 Sep 2012 22:32:05 +0200
|
||||
./lib/wpscan/wp_theme.rb Sun, 23 Sep 2012 19:56:18 +0200
|
||||
./lib/wpscan/wp_user.rb Sat, 22 Sep 2012 16:12:25 +0200
|
||||
./lib/wpscan/wp_version.rb Mon, 24 Sep 2012 18:06:00 +0200
|
||||
./lib/wpscan/wp_vulnerability.rb Sat, 22 Sep 2012 16:11:58 +0200
|
||||
./lib/wpscan/wpscan_helper.rb Sun, 23 Sep 2012 23:14:35 +0200
|
||||
./lib/wpscan/wpscan_options.rb Sat, 22 Sep 2012 15:01:32 +0200
|
||||
./lib/wpstools/generate_list.rb Sat, 22 Sep 2012 16:10:07 +0200
|
||||
./lib/wpstools/parse_svn.rb Sat, 22 Sep 2012 16:10:30 +0200
|
||||
./lib/wpstools/wpstools_helper.rb Sat, 22 Sep 2012 15:00:03 +0200
|
||||
./README Thu, 13 Sep 2012 22:54:08 +0200
|
||||
./wpscan.rb Mon, 24 Sep 2012 22:53:35 +0200
|
||||
./wpstools.rb Sat, 22 Sep 2012 14:59:30 +0200
|
||||
Tue, 23 Oct 2012 18:39:03 +0200
|
||||
./lib/environment.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/updater/updater.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/updater/svn_updater.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/updater/git_updater.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/updater/updater_factory.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/cache_file_store.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/browser.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpstools/parse_svn.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpstools/wpstools_helper.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpstools/generate_list.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_user.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/malwares.rb Tue, 23 Oct 2012 16:21:49 +0200
|
||||
./lib/wpscan/modules/wp_full_path_disclosure.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/wp_config_backup.rb Tue, 23 Oct 2012 16:18:23 +0200
|
||||
./lib/wpscan/modules/wp_themes.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/web_site.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/wp_plugins.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/brute_force.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/wp_readme.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/wp_usernames.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/wp_login_protection.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/modules/wp_timthumbs.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_enumerator.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_item.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/vulnerable.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_options.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_theme.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wpscan_helper.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_vulnerability.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/msfrpc_client.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_detector.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/exploit.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_plugin.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_version.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./lib/wpscan/wp_target.rb Tue, 23 Oct 2012 16:19:38 +0200
|
||||
./lib/wpscan/wpscan_options.rb Tue, 23 Oct 2012 15:45:42 +0200
|
||||
./lib/common_helper.rb Tue, 23 Oct 2012 18:38:13 +0200
|
||||
./README Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./Gemfile Tue, 23 Oct 2012 15:34:39 +0200
|
||||
./wpscan.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./wpstools.rb Tue, 23 Oct 2012 12:20:01 +0200
|
||||
./CREDITS Tue, 23 Oct 2012 12:20:01 +0200
|
||||
|
||||
@@ -66,6 +66,8 @@
|
||||
|
||||
<li class="class"><a href="Svn_Parser.html">Svn_Parser</a></li>
|
||||
|
||||
<li class="module"><a href="URI.html">URI</a></li>
|
||||
|
||||
<li class="class"><a href="Updater.html">Updater</a></li>
|
||||
|
||||
<li class="class"><a href="UpdaterFactory.html">UpdaterFactory</a></li>
|
||||
@@ -129,6 +131,8 @@
|
||||
|
||||
<li><a href="WpEnumerator.html#method-c-enumerate">::enumerate — WpEnumerator</a></li>
|
||||
|
||||
<li><a href="URI.html#method-c-escape">::escape — URI</a></li>
|
||||
|
||||
<li><a href="WpTheme.html#method-c-find">::find — WpTheme</a></li>
|
||||
|
||||
<li><a href="WpVersion.html#method-c-find">::find — WpVersion</a></li>
|
||||
@@ -167,9 +171,13 @@
|
||||
|
||||
<li><a href="Malwares.html#method-c-malwares_file">::malwares_file — Malwares</a></li>
|
||||
|
||||
<li><a href="WpPlugin.html#method-c-new">::new — WpPlugin</a></li>
|
||||
<li><a href="WpscanOptions.html#method-c-new">::new — WpscanOptions</a></li>
|
||||
|
||||
<li><a href="Generate_List.html#method-c-new">::new — Generate_List</a></li>
|
||||
<li><a href="RpcClient.html#method-c-new">::new — RpcClient</a></li>
|
||||
|
||||
<li><a href="WpVulnerability.html#method-c-new">::new — WpVulnerability</a></li>
|
||||
|
||||
<li><a href="Svn_Parser.html#method-c-new">::new — Svn_Parser</a></li>
|
||||
|
||||
<li><a href="WpTarget.html#method-c-new">::new — WpTarget</a></li>
|
||||
|
||||
@@ -177,24 +185,20 @@
|
||||
|
||||
<li><a href="Exploit.html#method-c-new">::new — Exploit</a></li>
|
||||
|
||||
<li><a href="WpUser.html#method-c-new">::new — WpUser</a></li>
|
||||
|
||||
<li><a href="Svn_Parser.html#method-c-new">::new — Svn_Parser</a></li>
|
||||
|
||||
<li><a href="WpscanOptions.html#method-c-new">::new — WpscanOptions</a></li>
|
||||
|
||||
<li><a href="WpVulnerability.html#method-c-new">::new — WpVulnerability</a></li>
|
||||
|
||||
<li><a href="Updater.html#method-c-new">::new — Updater</a></li>
|
||||
|
||||
<li><a href="RpcClient.html#method-c-new">::new — RpcClient</a></li>
|
||||
|
||||
<li><a href="WpTheme.html#method-c-new">::new — WpTheme</a></li>
|
||||
|
||||
<li><a href="Generate_List.html#method-c-new">::new — Generate_List</a></li>
|
||||
|
||||
<li><a href="WpItem.html#method-c-new">::new — WpItem</a></li>
|
||||
|
||||
<li><a href="WpPlugin.html#method-c-new">::new — WpPlugin</a></li>
|
||||
|
||||
<li><a href="WpVersion.html#method-c-new">::new — WpVersion</a></li>
|
||||
|
||||
<li><a href="WpUser.html#method-c-new">::new — WpUser</a></li>
|
||||
|
||||
<li><a href="Updater.html#method-c-new">::new — Updater</a></li>
|
||||
|
||||
<li><a href="WpscanOptions.html#method-c-option_to_instance_variable_setter">::option_to_instance_variable_setter — WpscanOptions</a></li>
|
||||
|
||||
<li><a href="WpDetector.html#method-c-passive_detection">::passive_detection — WpDetector</a></li>
|
||||
@@ -337,10 +341,10 @@
|
||||
|
||||
<li><a href="WpscanOptions.html#method-i-has_options-3F">#has_options? — WpscanOptions</a></li>
|
||||
|
||||
<li><a href="WpItem.html#method-i-has_readme-3F">#has_readme? — WpItem</a></li>
|
||||
|
||||
<li><a href="WpReadme.html#method-i-has_readme-3F">#has_readme? — WpReadme</a></li>
|
||||
|
||||
<li><a href="WpItem.html#method-i-has_readme-3F">#has_readme? — WpItem</a></li>
|
||||
|
||||
<li><a href="WpLoginProtection.html#method-i-has_simple_login_lockdown_protection-3F">#has_simple_login_lockdown_protection? — WpLoginProtection</a></li>
|
||||
|
||||
<li><a href="WpTimthumbs.html#method-i-has_timthumbs-3F">#has_timthumbs? — WpTimthumbs</a></li>
|
||||
@@ -373,12 +377,12 @@
|
||||
|
||||
<li><a href="Browser.html#method-i-load_config">#load_config — Browser</a></li>
|
||||
|
||||
<li><a href="Updater.html#method-i-local_revision_number">#local_revision_number — Updater</a></li>
|
||||
|
||||
<li><a href="SvnUpdater.html#method-i-local_revision_number">#local_revision_number — SvnUpdater</a></li>
|
||||
|
||||
<li><a href="GitUpdater.html#method-i-local_revision_number">#local_revision_number — GitUpdater</a></li>
|
||||
|
||||
<li><a href="Updater.html#method-i-local_revision_number">#local_revision_number — Updater</a></li>
|
||||
|
||||
<li><a href="RpcClient.html#method-i-login">#login — RpcClient</a></li>
|
||||
|
||||
<li><a href="WpLoginProtection.html#method-i-login_protection_plugin">#login_protection_plugin — WpLoginProtection</a></li>
|
||||
@@ -397,10 +401,10 @@
|
||||
|
||||
<li><a href="Exploit.html#method-i-meterpreter_read">#meterpreter_read — Exploit</a></li>
|
||||
|
||||
<li><a href="RpcClient.html#method-i-meterpreter_write">#meterpreter_write — RpcClient</a></li>
|
||||
|
||||
<li><a href="Exploit.html#method-i-meterpreter_write">#meterpreter_write — Exploit</a></li>
|
||||
|
||||
<li><a href="RpcClient.html#method-i-meterpreter_write">#meterpreter_write — RpcClient</a></li>
|
||||
|
||||
<li><a href="Svn_Parser.html#method-i-parse">#parse — Svn_Parser</a></li>
|
||||
|
||||
<li><a href="WpPlugins.html#method-i-plugins_from_aggressive_detection">#plugins_from_aggressive_detection — WpPlugins</a></li>
|
||||
@@ -419,10 +423,10 @@
|
||||
|
||||
<li><a href="Exploit.html#method-i-read_shell">#read_shell — Exploit</a></li>
|
||||
|
||||
<li><a href="WpItem.html#method-i-readme_url">#readme_url — WpItem</a></li>
|
||||
|
||||
<li><a href="WpReadme.html#method-i-readme_url">#readme_url — WpReadme</a></li>
|
||||
|
||||
<li><a href="WpItem.html#method-i-readme_url">#readme_url — WpItem</a></li>
|
||||
|
||||
<li><a href="Object.html#method-i-red">#red — Object</a></li>
|
||||
|
||||
<li><a href="WebSite.html#method-i-redirection">#redirection — WebSite</a></li>
|
||||
@@ -445,10 +449,10 @@
|
||||
|
||||
<li><a href="Exploit.html#method-i-session_count">#session_count — Exploit</a></li>
|
||||
|
||||
<li><a href="Exploit.html#method-i-sessions">#sessions — Exploit</a></li>
|
||||
|
||||
<li><a href="RpcClient.html#method-i-sessions">#sessions — RpcClient</a></li>
|
||||
|
||||
<li><a href="Exploit.html#method-i-sessions">#sessions — Exploit</a></li>
|
||||
|
||||
<li><a href="WpscanOptions.html#method-i-set_option_from_cli">#set_option_from_cli — WpscanOptions</a></li>
|
||||
|
||||
<li><a href="WpLoginProtection.html#method-i-simple_login_lockdown_url">#simple_login_lockdown_url — WpLoginProtection</a></li>
|
||||
@@ -471,12 +475,12 @@
|
||||
|
||||
<li><a href="WpItem.html#method-i-to_s">#to_s — WpItem</a></li>
|
||||
|
||||
<li><a href="GitUpdater.html#method-i-update">#update — GitUpdater</a></li>
|
||||
|
||||
<li><a href="Updater.html#method-i-update">#update — Updater</a></li>
|
||||
|
||||
<li><a href="SvnUpdater.html#method-i-update">#update — SvnUpdater</a></li>
|
||||
|
||||
<li><a href="GitUpdater.html#method-i-update">#update — GitUpdater</a></li>
|
||||
|
||||
<li><a href="WpTarget.html#method-i-url">#url — WpTarget</a></li>
|
||||
|
||||
<li><a href="WpscanOptions.html#method-i-url-3D">#url= — WpscanOptions</a></li>
|
||||
@@ -505,10 +509,10 @@
|
||||
|
||||
<li><a href="CacheFileStore.html#method-i-write_entry">#write_entry — CacheFileStore</a></li>
|
||||
|
||||
<li><a href="RpcClient.html#method-i-write_shell">#write_shell — RpcClient</a></li>
|
||||
|
||||
<li><a href="Exploit.html#method-i-write_shell">#write_shell — Exploit</a></li>
|
||||
|
||||
<li><a href="RpcClient.html#method-i-write_shell">#write_shell — RpcClient</a></li>
|
||||
|
||||
<li><a href="WebSite.html#method-i-xmlrpc_url">#xmlrpc_url — WebSite</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 15:51:15 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 15:00:03 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 16:08:50 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 18:38:13 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 09:22:22 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-15 08:00:23 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 15:04:12 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-15 08:00:46 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-15 08:00:40 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-21 23:23:55 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 00:10:17 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 15:01:32 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 16:21:49 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 16:18:55 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 15:01:32 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 16:18:23 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-15 08:01:17 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
52
doc/lib/wpscan/modules/wp_login_protection_rb.html
Normal file
52
doc/lib/wpscan/modules/wp_login_protection_rb.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
|
||||
<title>File: wp_login_protection.rb [RDoc Documentation]</title>
|
||||
|
||||
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
|
||||
|
||||
<script src="../../../js/jquery.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../../js/quicksearch.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../../js/darkfish.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
</head>
|
||||
|
||||
<body class="file file-popup">
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
<dd class="requires">
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div id="documentation">
|
||||
|
||||
<div class="description">
|
||||
<h2>Description</h2>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-23 20:20:17 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-15 08:01:52 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
52
doc/lib/wpscan/modules/wp_themes_rb.html
Normal file
52
doc/lib/wpscan/modules/wp_themes_rb.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
|
||||
<title>File: wp_themes.rb [RDoc Documentation]</title>
|
||||
|
||||
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
|
||||
|
||||
<script src="../../../js/jquery.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../../js/quicksearch.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../../js/darkfish.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
</head>
|
||||
|
||||
<body class="file file-popup">
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
<dd class="requires">
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div id="documentation">
|
||||
|
||||
<div class="description">
|
||||
<h2>Description</h2>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-23 19:40:38 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 15:01:32 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-21 23:32:27 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 21:23:01 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-23 19:40:56 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-23 22:46:23 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
52
doc/lib/wpscan/wp_item_rb.html
Normal file
52
doc/lib/wpscan/wp_item_rb.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
|
||||
<title>File: wp_item.rb [RDoc Documentation]</title>
|
||||
|
||||
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||
|
||||
<script src="../../js/jquery.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../js/darkfish.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
</head>
|
||||
|
||||
<body class="file file-popup">
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
<dd class="requires">
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div id="documentation">
|
||||
|
||||
<div class="description">
|
||||
<h2>Description</h2>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-23 19:35:16 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-23 19:59:17 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-24 22:32:05 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 16:19:38 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-23 19:56:18 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
52
doc/lib/wpscan/wp_user_rb.html
Normal file
52
doc/lib/wpscan/wp_user_rb.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
|
||||
<title>File: wp_user.rb [RDoc Documentation]</title>
|
||||
|
||||
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
||||
|
||||
<script src="../../js/jquery.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../js/quicksearch.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
<script src="../../js/darkfish.js" type="text/javascript"
|
||||
charset="utf-8"></script>
|
||||
</head>
|
||||
|
||||
<body class="file file-popup">
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
<dd class="requires">
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div id="documentation">
|
||||
|
||||
<div class="description">
|
||||
<h2>Description</h2>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-24 18:06:00 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 16:11:58 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-23 23:14:35 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 15:01:32 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 15:45:42 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 16:10:07 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 16:10:30 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 15:00:03 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-24 22:53:35 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div id="metadata">
|
||||
<dl>
|
||||
<dt class="modified-date">Last Modified</dt>
|
||||
<dd class="modified-date">2012-09-22 14:59:30 +0200</dd>
|
||||
<dd class="modified-date">2012-10-23 12:20:01 +0200</dd>
|
||||
|
||||
|
||||
<dt class="requires">Requires</dt>
|
||||
|
||||
@@ -74,11 +74,13 @@ end
|
||||
|
||||
# Since ruby 1.9.2, URI::escape is obsolete
|
||||
# See http://rosettacode.org/wiki/URL_encoding#Ruby and http://www.ruby-forum.com/topic/207489
|
||||
if RUBY_VERSION >= "1.9.2"
|
||||
module URI
|
||||
def self.escape(str)
|
||||
URI.encode_www_form_component(str).gsub("+", "%20")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if RUBY_VERSION < "1.9"
|
||||
class Array
|
||||
|
||||
@@ -25,7 +25,11 @@ describe "WpscanOptions" do
|
||||
end
|
||||
|
||||
describe "#initialize" do
|
||||
|
||||
it "should set all options to nil" do
|
||||
WpscanOptions::ACCESSOR_OPTIONS.each do |option|
|
||||
@wpscan_options.send(option).should === nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "#url=" do
|
||||
|
||||
Reference in New Issue
Block a user