From 5bd38af8d61c23b72992bf91418be5cd1c7e6c7c Mon Sep 17 00:00:00 2001 From: Rich Whitcroft Date: Wed, 15 Feb 2017 19:22:39 -0500 Subject: [PATCH] fix rm to handle multiple files --- .../meterpreter/ui/console/command_dispatcher/stdapi/fs.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 4fdd0e0a23..a827ad1941 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 @@ -309,15 +309,15 @@ class Console::CommandDispatcher::Stdapi::Fs end # - # Delete the specified file. + # Delete the specified file(s). # def cmd_rm(*args) if (args.length == 0) - print_line("Usage: rm file") + print_line("Usage: rm file1 [file2...]") return true end - client.fs.file.rm(args[0]) + args.each { |f| client.fs.file.rm(f) } return true end