class Wafalyzer::Settings
- Wafalyzer::Settings
- Reference
- Object
Defined in:
wafalyzer/settings.crClass Method Summary
-
.default_user_agent : String
Default
User-Agentstring, used when no other was given and the.use_random_user_agent?is set tofalse. -
.default_user_agent=(default_user_agent : String)
Default
User-Agentstring, used when no other was given and the.use_random_user_agent?is set tofalse. -
.disable_ssl_verification=(disable_ssl_verification : Bool)
Setting it to
truewill disable SSL verification -
.disable_ssl_verification?
Setting it to
truewill disable SSL verification -
.fallback_requests_count : Int32 | Nil
No.
-
.fallback_requests_count=(fallback_requests_count : Int32 | Nil)
No.
-
.payloads : Array(String)
Array of parameter payloads, injected for fallback requests.
-
.payloads=(payloads : Array(String))
Array of parameter payloads, injected for fallback requests.
-
.redirection_limit
Maximum number of subsequent redirections.
-
.redirection_limit=(redirection_limit : Int32)
Maximum number of subsequent redirections.
-
.timeout : Time::Span | Nil
Timeout being used for requests.
-
.timeout=(timeout : Time::Span | Nil)
Timeout being used for requests.
-
.use_random_user_agent=(use_random_user_agent : Bool)
Setting it to
truewill make.user_agentproperty pick a randomUser-Agentstring from the.user_agentsarray. -
.use_random_user_agent?
Setting it to
truewill make.user_agentproperty pick a randomUser-Agentstring from the.user_agentsarray. -
.user_agent : String
Returns
User-Agentstring, sampled from.user_agentswhen the.use_random_user_agent?is set totrue, or.default_user_agentotherwise. -
.user_agents : Array(String)
Array of
User-Agenthttp header strings, used in cases when the.use_random_user_agent?is being set totrue. -
.user_agents=(user_agents : Array(String))
Array of
User-Agenthttp header strings, used in cases when the.use_random_user_agent?is being set totrue.
Class Method Detail
Default User-Agent string, used when no other was given and the
.use_random_user_agent? is set to false.
Default User-Agent string, used when no other was given and the
.use_random_user_agent? is set to false.
Setting it to true will disable SSL verification
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.
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.
Array of parameter payloads, injected for fallback requests.
Setting it to true will make .user_agent property pick a random
User-Agent string from the .user_agents array.
Setting it to true will make .user_agent property pick a random
User-Agent string from the .user_agents array.
Returns User-Agent string, sampled from .user_agents when the
.use_random_user_agent? is set to true, or .default_user_agent
otherwise.
Array of User-Agent http header strings, used in cases when the
.use_random_user_agent? is being set to true.
Array of User-Agent http header strings, used in cases when the
.use_random_user_agent? is being set to true.