Remove code related to unused search cmd options
parent
ca7b10af39
commit
89d86b1f48
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue