File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/auxiliary/spoof/cisco Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def initialize(info = {})
17
17
'Description' => %q{
18
18
This module forges DTP packets to initialize a trunk port.
19
19
} ,
20
- 'Author' => [ 'Spencer McIntyre <zerosteiner [at] gmail.com> ' ] ,
20
+ 'Author' => [ 'Spencer McIntyre' ] ,
21
21
'License' => MSF_LICENSE ,
22
22
'Actions' =>
23
23
[
@@ -54,15 +54,15 @@ def is_mac?(mac)
54
54
55
55
def smac
56
56
@spoof_mac ||= datastore [ 'SMAC' ]
57
- @spoof_mac ||= get_mac ( interface ) if netifaces_implemented?
57
+ @spoof_mac ||= get_mac ( datastore [ 'INTERFACE' ] ) if netifaces_implemented?
58
58
return @spoof_mac
59
59
end
60
60
61
61
def run
62
62
unless smac ( )
63
63
print_error 'Source MAC (SMAC) should be defined'
64
64
else
65
- unless is_mac? smac ( )
65
+ unless is_mac? smac
66
66
print_error "Source MAC (SMAC) `#{ smac } ' is badly formatted."
67
67
else
68
68
print_status "Starting DTP spoofing service..."
You can’t perform that action at this time.
0 commit comments