Add long option for cert.

GSoC/Meterpreter_Web_Console
James Barnett 2018-01-23 17:10:10 -06:00
parent d10cd2d92a
commit bfcb7f2e50
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ module Msf
port = args.shift port = args.shift
when '-s', '--ssl' when '-s', '--ssl'
protocol = "https" protocol = "https"
when '-c' when '-c', '--cert'
https_opts[:cert] = args.shift https_opts[:cert] = args.shift
when '--skip-verify' when '--skip-verify'
https_opts[:skip_verify] = true https_opts[:skip_verify] = true
@ -138,7 +138,7 @@ module Msf
print_line " -h, --help Show this help information." print_line " -h, --help Show this help information."
print_line " -p <port> The port the data service is listening on. Default is 80." print_line " -p <port> The port the data service is listening on. Default is 80."
print_line " -s, --ssl Enable SSL. Required for HTTPS data services." print_line " -s, --ssl Enable SSL. Required for HTTPS data services."
print_line " -c Certificate file matching the server's certificate. Needed when using self-signed SSL cert." print_line " -c, --cert Certificate file matching the server's certificate. Needed when using self-signed SSL cert."
print_line " --skip-verify Skip validating authenticity of server's certificate. NOT RECOMMENDED." print_line " --skip-verify Skip validating authenticity of server's certificate. NOT RECOMMENDED."
print_line print_line
end end