Ignore case when use tab to complete

GSoC/Meterpreter_Web_Console
Green-m 2018-06-01 07:37:23 -04:00
parent 71a1e2ad9c
commit cfb3c4d3ad
1 changed files with 2 additions and 2 deletions

View File

@ -380,7 +380,7 @@ module DispatcherShell
# Verify that our search string is a valid regex
begin
Regexp.compile(str)
Regexp.compile(str,Regexp::IGNORECASE)
rescue RegexpError
str = Regexp.escape(str)
end
@ -390,7 +390,7 @@ module DispatcherShell
# Match based on the partial word
items.find_all { |e|
e =~ /^#{str}/
e =~ /^#{str}/i
# Prepend the rest of the command (or it all gets replaced!)
}.map { |e|
tab_words.dup.push(e).join(' ')