Minor bugfix
parent
1fed50c96a
commit
2d9e8e09e6
|
@ -94,12 +94,12 @@ class Metasploit3 < Msf::Post
|
||||||
vpn_name = datastore['VPN_CONNECTION']
|
vpn_name = datastore['VPN_CONNECTION']
|
||||||
if up
|
if up
|
||||||
header = "Connecting to VPN: #{vpn_name}"
|
header = "Connecting to VPN: #{vpn_name}"
|
||||||
connection_state = 'STR_CONNECTED'
|
connection_state = STR_CONNECTED
|
||||||
connection_unnecessary = " #{vpn_name} already connected"
|
connection_unnecessary = "#{vpn_name} already connected"
|
||||||
else
|
else
|
||||||
header = "Disconnecting from VPN: #{vpn_name}"
|
header = "Disconnecting from VPN: #{vpn_name}"
|
||||||
connection_state = 'STR_DISCONNECTED'
|
connection_state = STR_DISCONNECTED
|
||||||
connection_unnecessary = " #{vpn_name} already disconnected"
|
connection_unnecessary = "#{vpn_name} already disconnected"
|
||||||
end
|
end
|
||||||
|
|
||||||
print_status(header)
|
print_status(header)
|
||||||
|
@ -119,7 +119,7 @@ class Metasploit3 < Msf::Post
|
||||||
end
|
end
|
||||||
|
|
||||||
if identifier.nil?
|
if identifier.nil?
|
||||||
print_error(" #{vpn_name} not found")
|
print_error("#{vpn_name} not found")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue