From 71a01e17f17787e9a65ae9ec1193625841d7813a Mon Sep 17 00:00:00 2001 From: kris <> Date: Sat, 20 Dec 2008 07:31:47 +0000 Subject: [PATCH] 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 --- msfrpc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/msfrpc b/msfrpc index 905f8319a9..6b4ddefe50 100755 --- a/msfrpc +++ b/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