Check for INTERFACE or SMAC in dtp setup

bug/bundler_fix
Jon Hart 2014-11-10 10:14:47 -08:00
parent 8511dc4131
commit 7ed11ffd52
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,13 @@ class Metasploit3 < Msf::Auxiliary
deregister_options('RHOST', 'PCAPFILE')
end
def setup
super
unless datastore['SMAC'] || datastore['INTERFACE']
raise ArgumentError, 'Must specify SMAC or INTERFACE'
end
end
def build_dtp_frame
p = PacketFu::EthPacket.new
p.eth_daddr = '01:00:0c:cc:cc:cc'