Skip to content

Commit

Permalink
Set correct order of user-agent param to match order on README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarAkaElvis committed Oct 24, 2024
1 parent 0fe16c7 commit 40cf299
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions evil-winrm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ def arguments
$ssl = true
options[:port] = '5986'
end
opts.on('-a', '--user-agent USERAGENT', 'Specify connection user-agent (default Microsoft WinRM Client)') do |val|
options[:user_agent] = val
end
opts.on('-c', '--pub-key PUBLIC_KEY_PATH', 'Local path to public key certificate') do |val|
options[:pub_key] = val
end
Expand Down Expand Up @@ -237,6 +234,9 @@ def arguments
options[:password] = "00000000000000000000000000000000:#{val}"
end
opts.on('-P', '--port PORT', 'Remote host port (default 5985)') { |val| options[:port] = val }
opts.on('-a', '--user-agent USERAGENT', 'Specify connection user-agent (default Microsoft WinRM Client)') do |val|
options[:user_agent] = val
end
opts.on('-V', '--version', 'Show version') do |_val|
puts("v#{VERSION}")
custom_exit(0, false)
Expand Down

0 comments on commit 40cf299

Please sign in to comment.