Class: HomographicSpoofing::Detector::Rule::Local::DotAtomText

Inherits:
Base
  • Object
show all
Defined in:
lib/homographic_spoofing/detector/rule/local/dot_atom_text.rb

Overview

Instance Method Summary collapse

Instance Method Details

#attack_detected?Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
9
# File 'lib/homographic_spoofing/detector/rule/local/dot_atom_text.rb', line 3

def attack_detected?
  if invalid_dot_sequence?
    true
  elsif label_no_dots.present?
    !valid_start_sequence? || contains_invalid_char?
  end
end