diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb index 272b4fc6c2..038e35a54d 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb @@ -146,7 +146,7 @@ class Console::CommandDispatcher::Stdapi::Fs return end - globs.each do |glob| + globs.uniq.each do |glob| files += client.fs.file.search(root, glob, recurse) end