Skip to content

Commit 0efa9ee

Browse files
committed
Allow to stop monitoring without specifying folder
1 parent e023622 commit 0efa9ee

File tree

1 file changed

+6
-3
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi

1 file changed

+6
-3
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi/clipboard.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,14 @@ def cmd_clipboard_monitor_stop(*args)
388388
}
389389

390390

391-
if download_path.nil?
392-
print_error("You need to specify download directory.")
391+
if download_path.nil? && (download_images || download_files)
392+
#allow user to stop monitoring if they don't wish to download anything
393+
client.extapi.clipboard.monitor_stop({
394+
:dump => dump_data,
395+
})
396+
print_good("Clipboard monitor stopped without downloading data. Specify destination folder to download loot.")
393397
return true
394398
end
395-
396399

397400
dump = client.extapi.clipboard.monitor_stop({
398401
:dump => dump_data,

0 commit comments

Comments
 (0)