Module: CMSScanner::Target::Server::IIS
- Defined in:
- lib/cms_scanner/target/server/iis.rb
Overview
Some IIS specific implementation
Instance Method Summary collapse
-
#directory_listing?(path = nil, params = {}) ⇒ Boolean
True if url(path) has the directory listing enabled, false otherwise.
-
#server(_path = nil, _params = {}) ⇒ Symbol
:IIS.
Instance Method Details
#directory_listing?(path = nil, params = {}) ⇒ Boolean
Returns true if url(path) has the directory listing enabled, false otherwise.
21 22 23 24 25 |
# File 'lib/cms_scanner/target/server/iis.rb', line 21 def directory_listing?(path = nil, params = {}) res = NS::Browser.get(url(path), params) res.code == 200 && res.body =~ %r{<H1>#{uri.host} - /} ? true : false end |
#server(_path = nil, _params = {}) ⇒ Symbol
Returns :IIS.
12 13 14 |
# File 'lib/cms_scanner/target/server/iis.rb', line 12 def server(_path = nil, _params = {}) :IIS end |