Skip to content

Commit deea66b

Browse files
committed
Landing rapid7#1871 - fix an undefined variable bug in the DTP module
2 parents 085b943 + 3857507 commit deea66b

File tree

1 file changed

+3
-3
lines changed
  • modules/auxiliary/spoof/cisco

1 file changed

+3
-3
lines changed

modules/auxiliary/spoof/cisco/dtp.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(info = {})
1717
'Description' => %q{
1818
This module forges DTP packets to initialize a trunk port.
1919
},
20-
'Author' => [ 'Spencer McIntyre <zerosteiner [at] gmail.com>' ],
20+
'Author' => [ 'Spencer McIntyre' ],
2121
'License' => MSF_LICENSE,
2222
'Actions' =>
2323
[
@@ -54,15 +54,15 @@ def is_mac?(mac)
5454

5555
def smac
5656
@spoof_mac ||= datastore['SMAC']
57-
@spoof_mac ||= get_mac(interface) if netifaces_implemented?
57+
@spoof_mac ||= get_mac(datastore['INTERFACE']) if netifaces_implemented?
5858
return @spoof_mac
5959
end
6060

6161
def run
6262
unless smac()
6363
print_error 'Source MAC (SMAC) should be defined'
6464
else
65-
unless is_mac? smac()
65+
unless is_mac? smac
6666
print_error "Source MAC (SMAC) `#{smac}' is badly formatted."
6767
else
6868
print_status "Starting DTP spoofing service..."

0 commit comments

Comments
 (0)