From 9caabfd5866a61363d762ebfb42482998bda14e8 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Fri, 19 Jul 2013 21:51:04 +0200 Subject: [PATCH] docs --- doc_yard/WpTarget/InterestingHeaders.html | 323 ++++++++++++++++++++++ 1 file changed, 323 insertions(+) create mode 100644 doc_yard/WpTarget/InterestingHeaders.html diff --git a/doc_yard/WpTarget/InterestingHeaders.html b/doc_yard/WpTarget/InterestingHeaders.html new file mode 100644 index 00000000..809c25a5 --- /dev/null +++ b/doc_yard/WpTarget/InterestingHeaders.html @@ -0,0 +1,323 @@ + + + + + + Module: WpTarget::InterestingHeaders + + — Documentation by YARD 0.8.5.2 + + + + + + + + + + + + + + + + + + + + + +

Module: WpTarget::InterestingHeaders + + + +

+ +
+ + + + + + + +
Included in:
+
WpTarget
+ + + +
Defined in:
+
lib/wpscan/wp_target/interesting_headers.rb
+ +
+
+ + + + + + + + + +

+ Class Method Summary + (collapse) +

+ + + +

+ Instance Method Summary + (collapse) +

+ + + + + + +
+

Class Method Details

+ + +
+

+ + + (Object) known_headers (protected) + + + + + +

+
+ +

Array

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + + + + + +
    +

    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
+
+
+ +
+ +
+ + + + + \ No newline at end of file