Lucene search
K

VyOS Configuration Importer

🗓️ 28 Sep 2020 17:40:56Reported by h00dieType 
metasploit
 metasploit
🔗 www.rapid7.com👁 19 Views

VyOS Configuration Importer module for Metasploit framework to import VyOS device configuratio

Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Auxiliary
  include Msf::Auxiliary::VYOS

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'VyOS Configuration Importer',
        'Description' => %q{
          This module imports a VyOS device configuration.
        },
        'License' => MSF_LICENSE,
        'Author' => [ 'h00die' ],
        'Notes' => {
          'Stability' => [CRASH_SAFE],
          'SideEffects' => [],
          'Reliability' => []
        }
      )
    )

    register_options(
      [
        OptPath.new('CONFIG', [true, 'Path to configuration to import']),
        Opt::RHOST(),
        Opt::RPORT(22)
      ]
    )
  end

  def run
    unless ::File.exist?(datastore['CONFIG'])
      fail_with Failure::BadConfig, "VyOS config file #{datastore['CONFIG']} does not exist!"
    end
    vyos_config = ::File.open(datastore['CONFIG'], 'rb')
    print_status('Importing config')
    vyos_config_eater(datastore['RHOSTS'], datastore['RPORT'], vyos_config.read)
    print_good('Config import successful')
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation