Sha256: 5b02ba67e982c048ca567aea8bfac83ec0adcaac9b129f38f1ddc62bb350afbb
Contents?: true
Size: 449 Bytes
Versions: 5
Compression:
Stored size: 449 Bytes
Contents
# frozen_string_literal: true module Mihari class ReverseDnsName < ActiveRecord::Base belongs_to :artifact class << self # # Build reverse DNS names # # @param [String] ip # # @return [Array<Mihari::ReverseDnsName>] # def build_by_ip(ip) res = Enrichers::Shodan.query(ip) return if res.nil? res.hostnames.map { |name| new(name: name) } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems