Method: Arachni::Parser#headers
- Defined in:
- lib/arachni/parser.rb
#headers ⇒ Hash
Note:
It’s more of a placeholder method, it doesn’t actually analyze anything. It’s a long shot that any of these will be vulnerable but better be safe than sorry.
Returns List of valid auditable HTTP header fields.
134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/arachni/parser.rb', line 134 def headers @headers ||= { 'Accept' => 'text/html,application/xhtml+xml,application' + '/xml;q=0.9,*/*;q=0.8', 'Accept-Charset' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'From' => @options. || '', 'User-Agent' => @options.http.user_agent || '', 'Referer' => @url, 'Pragma' => 'no-cache' }.map { |k, v| Header.new( url: @url, inputs: { k => v } ) }.freeze end |