We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 282c7eb commit 6fd82adCopy full SHA for 6fd82ad
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb
@@ -243,15 +243,27 @@ def cmd_mv(*args)
243
print_line("Usage: mv oldfile newfile")
244
return true
245
end
246
-
247
client.fs.file.mv(args[0],args[1])
248
249
250
251
252
alias :cmd_move :cmd_mv
253
alias :cmd_rename :cmd_mv
254
+ #
+ # Move source to destination
255
256
+ def cmd_cp(*args)
257
+ if (args.length < 2)
258
+ print_line("Usage: cp oldfile newfile")
259
+ return true
260
+ end
261
+ client.fs.file.cp(args[0],args[1])
262
263
264
+
265
+ alias :cmd_copy :cmd_cp
266
267
268
def cmd_download_help
269
print_line("Usage: download [options] src1 src2 src3 ... destination")
0 commit comments