class Crowbar::Mutators::HomoglyphMutator

Overview

Replaces ASCII letters with visually identical or confusable Unicode homoglyphs (Cyrillic, Greek, Fullwidth)

Defined in:

crowbar/mutators/text.cr

Constant Summary

HOMOGLYPHS = {97_u8 => "а", 99_u8 => "с", 101_u8 => "е", 105_u8 => "і", 106_u8 => "ј", 111_u8 => "о", 112_u8 => "р", 115_u8 => "ѕ", 120_u8 => "х", 121_u8 => "у", 65_u8 => "А", 66_u8 => "В", 69_u8 => "Е", 72_u8 => "Н", 79_u8 => "О", 80_u8 => "Р", 84_u8 => "Т", 88_u8 => "Х"}

Instance Method Summary

Instance methods inherited from class Crowbar::Mutator

adjust_score(delta : Int32) adjust_score, aliases : Array(String) aliases, description : String description, effective_weight : Float64 effective_weight, mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32) mutate, name : String name, score : Int32 score, score=(score : Int32) score=, weight : Float64 weight, weight=(weight : Float64) weight=

Constructor methods inherited from class Crowbar::Mutator

new(weight : Float64 = 1.0) new

Instance Method Detail

def description : String #

def mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32) #

def name : String #