Skip to content

Commit eb46b09

Browse files
committed
Timeout condition change
1 parent b882639 commit eb46b09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/post/windows/manage/pptp_tunnel.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def initialize(info={})
1616
super( update_info( info,
1717
'Name' => 'Windows Manage Remote Point-to-Point Tunneling Protocol',
1818
'Description' => %q{
19-
This module iniciates a PPTP connection to a remote machine (VPN server). Once the
19+
This module initiates a PPTP connection to a remote machine (VPN server). Once the
2020
tunnel is created we can use it to force the victim traffic to go through the server getting
2121
a man in the middle attack. Be sure to allow forwarding and masquerading in the server},
2222
'License' => MSF_LICENSE,
@@ -45,7 +45,7 @@ def run
4545
disable_network_wizard if sysinfo["OS"] =~ /Windows 7|Vista|2008/
4646

4747
pbk = create_pbk(datastore['MIM'],datastore['PBK_NAME'])
48-
to = (datastore['TIMEOUT'].zero?) ? 60 : datastore['TIMEOUT']
48+
to = (datastore['TIMEOUT'] <= 0 ) ? 60 : datastore['TIMEOUT']
4949
begin
5050
::Timeout.timeout(to) do
5151
run_rasdial(pbk,datastore['USERNAME'],datastore['PASSWORD'],datastore['CONNECTION_NAME'],datastore['RHOST'],datastore['PBK_NAME'])

0 commit comments

Comments
 (0)