class Wafalyzer::Settings

Defined in:

wafalyzer/settings.cr

Class Method Summary

Class Method Detail

def self.default_user_agent : String #

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


[View source]
def self.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.


[View source]
def self.disable_ssl_verification=(disable_ssl_verification : Bool) #

Setting it to true will disable SSL verification


[View source]
def self.disable_ssl_verification? #

Setting it to true will disable SSL verification


[View source]
def self.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.


[View source]
def self.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.


[View source]
def self.payloads : Array(String) #

Array of parameter payloads, injected for fallback requests.


[View source]
def self.payloads=(payloads : Array(String)) #

Array of parameter payloads, injected for fallback requests.


[View source]
def self.redirection_limit #

Maximum number of subsequent redirections.


[View source]
def self.redirection_limit=(redirection_limit : Int32) #

Maximum number of subsequent redirections.


[View source]
def self.timeout : Time::Span | Nil #

Timeout being used for requests.


[View source]
def self.timeout=(timeout : Time::Span | Nil) #

Timeout being used for requests.


[View source]
def self.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.


[View source]
def self.use_random_user_agent? #

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


[View source]
def self.user_agent : String #

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


[View source]
def self.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.


[View source]
def self.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.


[View source]