Class: Arachni::Parser::Element::Cookie
- Inherits:
-
Base
- Object
- Element::Auditable
- Base
- Arachni::Parser::Element::Cookie
- Defined in:
- lib/arachni/parser/elements.rb
Instance Attribute Summary
Attributes inherited from Base
#action, #auditable, #method, #orig, #raw, #url
Attributes inherited from Element::Auditable
Instance Method Summary collapse
- #http_request(url, opts) ⇒ Object
-
#initialize(url, raw = {}) ⇒ Cookie
constructor
A new instance of Cookie.
- #simple ⇒ Object
- #type ⇒ Object
Methods inherited from Base
Methods inherited from Element::Auditable
#audit, #audit_id, #auditor, #debug?, #get_auditor, #get_status_str, #info, #injection_sets, #override_instance_scope!, #override_instance_scope?, #print_debug, #print_error, #print_status, reset, restrict_to_elements!, #skip?, #submit
Methods included from Module::Utilities
#exception_jail, #get_path, #hash_keys_to_str, #normalize_url, #read_file, #seed, #uri_decode, #uri_encode, #uri_parse, #uri_parser, #url_sanitize
Constructor Details
#initialize(url, raw = {}) ⇒ Cookie
Returns a new instance of Cookie.
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/arachni/parser/elements.rb', line 248 def initialize( url, raw = {} ) super( url, raw ) @action = @url @method = 'cookie' if @raw['name'] @auditable = { @raw['name'] => @raw['value'] } else @auditable = @raw end @simple = @auditable.dup @auditable.reject! { || Options.instance..include?( ) } @orig = @auditable.deep_clone @orig.freeze end |