Skip to content

Commit

Permalink
Land #6426, enable_rdp typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wvu committed Jan 5, 2016
2 parents 938cc2e + 30a866a commit 9f1ceb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/post/windows/manage/enable_rdp.rb
Expand Up @@ -31,8 +31,8 @@ def initialize(info={})
OptString.new('USERNAME', [ false, 'The username of the user to create.' ]),
OptString.new('PASSWORD', [ false, 'Password for the user created.' ]),
OptBool.new( 'ENABLE', [ false, 'Enable the RDP Service and Firewall Exception.', true]),
OptBool.new( 'FORDWARD', [ false, 'Forward remote port 3389 to local Port.', false]),
OptInt.new( 'LPORT', [ false, 'Local port to fordward remote connection.', 3389])
OptBool.new( 'FORWARD', [ false, 'Forward remote port 3389 to local Port.', false]),
OptInt.new( 'LPORT', [ false, 'Local port to forward remote connection.', 3389])
], self.class)
end

Expand All @@ -56,7 +56,7 @@ def run
print_error("Insufficient privileges, account was not be created.")
end
end
if datastore['FORDWARD']
if datastore['FORWARD']
print_status("Starting the port forwarding at local port #{datastore['LPORT']}")
client.run_cmd("portfwd add -L 0.0.0.0 -l #{datastore['LPORT']} -p 3389 -r 127.0.0.1")
end
Expand Down

0 comments on commit 9f1ceb4

Please sign in to comment.