##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::DHCPServer
include Msf::Auxiliary::Report
def initialize
super(
'Name' => 'DHCP Server',
'Description' => %q{
This module provides a DHCP service
},
'Author' => [ 'scriptjunkie', '[email protected]' ],
'License' => MSF_LICENSE,
'Actions' =>
[
[ 'Service', 'Description' => 'Run DHCP server' ]
],
'PassiveActions' =>
[
'Service'
],
'DefaultAction' => 'Service'
)
end
def run
@dhcp = Rex::Proto::DHCP::Server.new(datastore)
print_status("Starting DHCP server...")
@dhcp.start
add_socket(@dhcp.sock)
# Wait for finish..
while @dhcp.thread.alive?
select(nil, nil, nil, 2)
end
print_status("Stopping DHCP server...")
@dhcp.stop
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