remove unnecessary parens and better comments
removes unnecessary parens (and yes I confirmed they are properly paired), and adds some comments regarding this as not being an ideal solution, but rather a stopgapunstable
parent
6de50b7cb5
commit
2eef83453d
|
@ -299,10 +299,11 @@ module Msf::Post::File
|
|||
end
|
||||
|
||||
#
|
||||
# Rename a remote file
|
||||
# Rename a remote file. This is a stopgap until a proper API version is added.
|
||||
#
|
||||
def rename_file(new_file, old_file)
|
||||
write_file(new_file, (read_file(old_file)))
|
||||
#TODO: this is not ideal as the file contents are sent to meterp server and back to the client
|
||||
write_file(new_file, read_file(old_file))
|
||||
rm_f(old_file)
|
||||
end
|
||||
alias :move_file :rename_file
|
||||
|
|
Loading…
Reference in New Issue