Remove code related to unused search cmd options

GSoC/Meterpreter_Web_Console
Matthew Kienow 2018-04-29 23:16:30 -04:00
parent ca7b10af39
commit 89d86b1f48
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 2 additions and 15 deletions

View File

@ -448,22 +448,16 @@ module Msf
return
end
match = ''
match = ''
search_term = nil
output_file = nil
@@search_opts.parse(args) { |opt, idx, val|
case opt
when "-t"
print_error("Deprecated option. Use type:#{val} instead")
cmd_search_help
return
when "-S", "--search"
when "-S"
search_term = val
when "-h"
cmd_search_help
return
when "-S"
search_term = val
when '-o'
output_file = val
else
@ -504,13 +498,6 @@ module Msf
return @@search_opts.fmt.keys
end
case (words[-1])
when "-r"
return RankingName.sort.map{|r| r[1]}
when "-t"
return %w{auxiliary encoder exploit nop payload post}
end
[]
end