mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
changing host selection option -h to -a to avoid collision with help -h
git-svn-id: file:///home/svn/framework3/trunk@6031 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
1cbc6d925b
commit
71a01e17f1
6
msfrpc
6
msfrpc
@ -13,7 +13,7 @@ require 'rex/ui'
|
||||
|
||||
# Declare the argument parser for msfrpc
|
||||
arguments = Rex::Parser::Arguments.new(
|
||||
"-h" => [ true, "Connect to this IP address" ],
|
||||
"-a" => [ true, "Connect to this IP address" ],
|
||||
"-p" => [ true, "Connect to the specified port instead of 55553" ],
|
||||
"-U" => [ true, "Specify the username to access msfrpcd" ],
|
||||
"-P" => [ true, "Specify the password to access msfrpcd" ],
|
||||
@ -29,7 +29,7 @@ opts = {
|
||||
# Parse command line arguments.
|
||||
arguments.parse(ARGV) { |opt, idx, val|
|
||||
case opt
|
||||
when "-h"
|
||||
when "-a"
|
||||
opts['ServerHost'] = val
|
||||
when "-S"
|
||||
opts['SSL'] = false
|
||||
@ -47,7 +47,7 @@ arguments.parse(ARGV) { |opt, idx, val|
|
||||
|
||||
|
||||
if(not opts['ServerHost'])
|
||||
$stderr.puts "[*] Error: a server IP must be specified (-h)"
|
||||
$stderr.puts "[*] Error: a server IP must be specified (-a)"
|
||||
$stderr.puts arguments.usage
|
||||
exit(0)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user