@@ -25,7 +25,7 @@ class Console::CommandDispatcher::Stdapi::Fs
25
25
@@download_opts = Rex ::Parser ::Arguments . new (
26
26
"-h" => [ false , "Help banner." ] ,
27
27
"-c" => [ false , "Resume getting a partially-downloaded file." ] ,
28
- "-l" => [ true , "Set the limit of retries (0 unlimits)." ] ,
28
+ "-l" => [ true , "Set the limit of retries (0 unlimits)." ] ,
29
29
"-r" => [ false , "Download recursively." ] ,
30
30
"-t" => [ false , "Timestamp downloaded files." ] )
31
31
#
@@ -39,7 +39,7 @@ class Console::CommandDispatcher::Stdapi::Fs
39
39
#
40
40
@@ls_opts = Rex ::Parser ::Arguments . new (
41
41
"-h" => [ false , "Help banner." ] ,
42
- "-S" => [ true , "Search string." ] ,
42
+ "-S" => [ true , "Search string." ] ,
43
43
"-t" => [ false , "Sort by time" ] ,
44
44
"-s" => [ false , "Sort by size" ] ,
45
45
"-r" => [ false , "Reverse sort order" ] ,
@@ -66,7 +66,7 @@ def commands
66
66
'mkdir' => 'Make directory' ,
67
67
'pwd' => 'Print working directory' ,
68
68
'rm' => 'Delete the specified file' ,
69
- 'mv' => 'Move source to destination' ,
69
+ 'mv' => 'Move source to destination' ,
70
70
'rmdir' => 'Remove directory' ,
71
71
'search' => 'Search for files' ,
72
72
'upload' => 'Upload a file or directory' ,
@@ -341,7 +341,7 @@ def cmd_download(*args)
341
341
continue = false
342
342
tries = false
343
343
tries_no = 0
344
- opts = { }
344
+ opts = { }
345
345
346
346
@@download_opts . parse ( args ) { |opt , idx , val |
347
347
case opt
@@ -408,7 +408,6 @@ def cmd_download(*args)
408
408
dest_path = src_path . tr ( src_separator , ::File ::SEPARATOR )
409
409
410
410
client . fs . file . download ( dest_path , src_path , opts ) do |step , src , dst |
411
- puts step
412
411
print_status ( "#{ step . ljust ( 11 ) } : #{ src } -> #{ dst } " )
413
412
client . framework . events . on_session_download ( client , src , dest ) if msf_loaded?
414
413
end
0 commit comments