@@ -134,7 +134,7 @@ def cmd_clipboard_set_text(*args)
134134 #
135135 @@monitor_start_opts = Rex ::Parser ::Arguments . new (
136136 '-h' => [ false , 'Help banner' ] ,
137- '--no-capture ' => [ true , 'Do not capture image content when monitoring' ]
137+ '--no-images ' => [ true , 'Do not capture image content when monitoring' ]
138138 )
139139
140140 #
@@ -160,7 +160,7 @@ def cmd_clipboard_monitor_start(*args)
160160
161161 @@monitor_start_opts . parse ( args ) do |opt , _idx , _val |
162162 case opt
163- when '--no-capture '
163+ when '--no-images '
164164 capture_images = false
165165 when '-h'
166166 print_clipboard_monitor_start_usage
@@ -279,7 +279,7 @@ def cmd_clipboard_monitor_resume(*args)
279279 '-h' => [ false , 'Help banner' ] ,
280280 '--no-images' => [ false , "Indicate if captured image data shouldn't be downloaded" ] ,
281281 '--no-files' => [ false , "Indicate if captured file data shouldn't be downloaded" ] ,
282- '-p ' => [ false , 'Purge the contents of the monitor once dumped' ] ,
282+ '--no-purge ' => [ false , "Indicate if the contents of the monitor shouldn't be purged once dumped" ] ,
283283 '-d' => [ true , 'Download non-text content to the specified folder' ] ,
284284 '--force' => [ false , 'Force overwriting existing files' ]
285285 )
@@ -289,7 +289,7 @@ def cmd_clipboard_monitor_resume(*args)
289289 #
290290 def print_clipboard_monitor_dump_usage
291291 print (
292- "\n Usage: clipboard_monitor_dump [-p] [- d downloaddir] [-h]\n \n " +
292+ "\n Usage: clipboard_monitor_dump [-d downloaddir] [-h]\n \n " +
293293 "Dump the capture clipboard contents to the local machine..\n \n " +
294294 @@monitor_dump_opts . usage + "\n "
295295 )
@@ -299,7 +299,7 @@ def print_clipboard_monitor_dump_usage
299299 # Dump the clipboard monitor contents to the local machine.
300300 #
301301 def cmd_clipboard_monitor_dump ( *args )
302- purge = false
302+ purge = true
303303 download_images = true
304304 download_files = true
305305 download_path = nil
@@ -313,8 +313,8 @@ def cmd_clipboard_monitor_dump(*args)
313313 download_images = false
314314 when '--no-files'
315315 download_files = false
316- when '-p '
317- purge = true
316+ when '--no-purge '
317+ purge = false
318318 when '--force'
319319 force_overwrite = true
320320 when '-h'
@@ -335,10 +335,12 @@ def cmd_clipboard_monitor_dump(*args)
335335 } )
336336
337337 res = parse_dump ( dump , download_images , download_files , download_path , force_overwrite : force_overwrite )
338+ print_good ( 'Clipboard monitor dumped' )
339+
338340 if !res && purge
339341 client . extapi . clipboard . monitor_purge
342+ print_good ( 'Captured clipboard contents purged successfully' )
340343 end
341- print_good ( 'Clipboard monitor dumped' )
342344 end
343345
344346 #
0 commit comments