Class: HomographicSpoofing::Detector::Rule::Idn::Digits

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

Overview

  1. of Google Chrome IDN policy

Instance Method Summary collapse

Instance Method Details

#attack_detected?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/homographic_spoofing/detector/rule/idn/digits.rb', line 3

def attack_detected?
  contains_digit_lookalike? && contains_only_digits_or_digit_lookalike?
end