class

Wafalyzer::Settings

Inherits Reference / Object

Class methods

default_user_agent

Default User-Agent string, used when no other was given and the use_random_user_agent? is set to false.

Source
default_user_agent=(default_user_agent : String)

Default User-Agent string, used when no other was given and the use_random_user_agent? is set to false.

Source
disable_ssl_verification=(disable_ssl_verification : Bool)

Setting it to true will disable SSL verification

Source
disable_ssl_verification?

Setting it to true will disable SSL verification

Source
fallback_requests_count

No. of additional iterations (after 1st failed request).

NOTE: Setting it to nil is equivalent to using payloads.size, i.e. there will as many request as available payloads.

Source
fallback_requests_count=(fallback_requests_count : Int32 | Nil)

No. of additional iterations (after 1st failed request).

NOTE: Setting it to nil is equivalent to using payloads.size, i.e. there will as many request as available payloads.

Source
payloads

Array of parameter payloads, injected for fallback requests.

Source
payloads=(payloads : Array(String))

Array of parameter payloads, injected for fallback requests.

Source
redirection_limit

Maximum number of subsequent redirections.

Source
redirection_limit=(redirection_limit : Int32)

Maximum number of subsequent redirections.

Source
timeout

Timeout being used for requests.

Source
timeout=(timeout : Time::Span | Nil)

Timeout being used for requests.

Source
use_random_user_agent=(use_random_user_agent : Bool)

Setting it to true will make user_agent property pick a random User-Agent string from the user_agents array.

Source
use_random_user_agent?

Setting it to true will make user_agent property pick a random User-Agent string from the user_agents array.

Source
user_agent

Returns User-Agent string, sampled from user_agents when the use_random_user_agent? is set to true, or default_user_agent otherwise.

Source
user_agents

Array of User-Agent http header strings, used in cases when the use_random_user_agent? is being set to true.

Source
user_agents=(user_agents : Array(String))

Array of User-Agent http header strings, used in cases when the use_random_user_agent? is being set to true.

Source