Fix server/pxexploit datastore

bug/bundler_fix
William Vu 2015-02-11 12:12:39 -06:00
parent 1ced9a2dd7
commit 9e717084af
1 changed files with 7 additions and 8 deletions

View File

@ -38,12 +38,17 @@ class Metasploit3 < Msf::Auxiliary
[
'Service'
],
'DefaultAction' => 'Service'
'DefaultAction' => 'Service',
'DefaultOptions' => {
'FILENAME' => 'update1',
'SERVEONCE' => true # once they reboot; don't infect again - you'll kill them!
}
)
register_advanced_options(
[
OptString.new('TFTPROOT', [ false, 'The TFTP root directory to serve files from' ]),
OptString.new('TFTPROOT', [ false, 'The TFTP root directory to serve files from',
File.join(Msf::Config.data_directory, 'exploits', 'pxexploit')]),
OptString.new('SRVHOST', [ false, 'The IP of the DHCP server' ]),
OptString.new('NETMASK', [ false, 'The netmask of the local subnet', '255.255.255.0' ]),
OptString.new('DHCPIPSTART', [ false, 'The first IP to give out' ]),
@ -52,12 +57,6 @@ class Metasploit3 < Msf::Auxiliary
end
def run
if not datastore['TFTPROOT']
datastore['TFTPROOT'] = File.join(Msf::Config.data_directory, 'exploits', 'pxexploit')
end
datastore['FILENAME'] = "update1"
datastore['SERVEONCE'] = true # once they reboot; don't infect again - you'll kill them!
print_status("Starting TFTP server...")
@tftp = Rex::Proto::TFTP::Server.new
@tftp.set_tftproot(datastore['TFTPROOT'])