Module: WpTarget::InterestingHeaders
- Included in:
- WpTarget
- Defined in:
- lib/wpscan/wp_target/interesting_headers.rb
Class Method Summary (collapse)
-
+ (Object) known_headers
protected
Array.
Instance Method Summary (collapse)
-
- (Object) interesting_headers
Checks for interesting headers.
Class Method Details
+ (Object) known_headers (protected)
Array
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/wpscan/wp_target/interesting_headers.rb', line 19 def self.known_headers %w{ Location Date Content-Type Content-Length Connection Etag Expires Last-Modified Pragma Vary Cache-Control } end |
Instance Method Details
- (Object) interesting_headers
Checks for interesting headers
7 8 9 10 11 12 13 14 |
# File 'lib/wpscan/wp_target/interesting_headers.rb', line 7 def interesting_headers response = Browser.head(@uri.to_s) headers = response.headers InterestingHeaders.known_headers.each do |h| headers.delete(h) end headers.to_a.compact.sort end |