Module: Ronin::DB::CLI::Printing
- Defined in:
- lib/ronin/db/cli/printing.rb
Overview
Helper methods for printing Ronin::DB records.
Instance Method Summary collapse
-
#record_type(record) ⇒ String?
Maps a record to a human readable display name.
Instance Method Details
#record_type(record) ⇒ String?
Maps a record to a human readable display name.
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/ronin/db/cli/printing.rb', line 45 def record_type(record) case record when HostName then 'host' when IPAddress then 'IP' when MACAddress then 'MAC' when Port then 'port' when Service then 'service' when OpenPort then 'open port' end end |