Single char args netenum

bug/bundler_fix
Josh Hale 2017-08-06 18:07:34 -05:00
parent b2005e761d
commit 6b46becf4e
1 changed files with 15 additions and 15 deletions

View File

@ -15,13 +15,13 @@
@@exec_opts = Rex::Parser::Arguments.new(
"-h" => [ false, "Help menu." ],
"-r" => [ true, "The target address range or CIDR identifier" ],
"-ps" => [ false, "To Perform Ping Sweep on IP Range" ],
"-rl" => [ false, "To Perform DNS Reverse Lookup on IP Range" ],
"-fl" => [ false, "To Perform DNS Forward Lookup on host list and domain" ],
"-hl" => [ true, "File with Host List for DNS Forward Lookup" ],
"-p" => [ false, "To Perform Ping Sweep on IP Range" ],
"-l" => [ false, "To Perform DNS Reverse Lookup on IP Range" ],
"-f" => [ false, "To Perform DNS Forward Lookup on host list and domain" ],
"-H" => [ true, "File with Host List for DNS Forward Lookup" ],
"-d" => [ true, "Domain Name for DNS Forward Lookup" ],
"-st" => [ false, "To Perform DNS lookup of MX and NS records for a domain" ],
"-sr" => [ false, "To Perform Service Record DNS lookup for a domain" ]
"-x" => [ false, "To Perform DNS lookup of MX and NS records for a domain" ],
"-s" => [ false, "To Perform Service Record DNS lookup for a domain" ]
)
session = client
host,port = session.session_host, session.session_port
@ -285,19 +285,19 @@ srvrc = nil
# Parsing of Options
@@exec_opts.parse(args) { |opt, idx, val|
case opt
when "-sr"
when "-s"
srvrc = 1
when "-rl"
when "-l"
rvrslkp = 1
when "-fl"
when "-f"
frdlkp = 1
when "-ps"
when "-p"
pngsp = 1
when "-st"
when "-x"
stdlkp = 1
when "-d"
dom = val
when "-hl"
when "-H"
hostlist = val
when "-r"
range = val
@ -354,9 +354,9 @@ if client.platform == 'windows'
else
print("Network Enumerator Meterpreter Script\n" +
"Usage:\n" +
"\tnetenum -r <value> (-ps | -rl)\n" +
"\tnetenum -d <value> (-st | -sr)\n" +
"\tnetenum -d <value> -lh <value> -fl\n" +
"\tnetenum -r <value> (-p | -l)\n" +
"\tnetenum -d <value> (-x | -s)\n" +
"\tnetenum -d <value> -H <value> -fl\n" +
@@exec_opts.usage)
end
else