Class: PhisherPhinder::WhoisEmailExtractor
- Inherits:
-
Object
- Object
- PhisherPhinder::WhoisEmailExtractor
- Defined in:
- lib/phisher_phinder/whois_email_extractor.rb
Instance Method Summary collapse
Instance Method Details
#abuse_contact_emails(contents) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/phisher_phinder/whois_email_extractor.rb', line 5 def abuse_contact_emails(contents) if contents =~ /OrgAbuseEmail/ contents.scan(/OrgAbuseEmail:\s+(\S+)/).flatten.uniq elsif contents =~ /Abuse contact for .+? is '([^']+)'/ [$1] elsif contents =~ /Registrar Abuse Contact Email:\s+([\S]+)/ [$1] elsif contents =~ /(abuse@[\S]+)/ [$1] else [] end end |