When unable to determine destination MAC, vprint and return false
Fixes #6006. ~20 related modules are affected by this defect and by this "fix"bug/bundler_fix
parent
c85913fd12
commit
b508625957
|
@ -242,7 +242,8 @@ module Msf
|
|||
dev ||= datastore['INTERFACE']
|
||||
dst_mac, src_mac = lookup_eth(dhost, dev)
|
||||
if dst_mac == nil and not bcast
|
||||
raise RuntimeError, 'Unable to determine the destination MAC and bcast is false'
|
||||
vprint_error("Unable to determine the destination MAC for #{dhost} on #{dev} and bcast is false")
|
||||
return false
|
||||
end
|
||||
inject_eth(:payload => payload, :eth_daddr => dst_mac, :eth_saddr => src_mac)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue