Msf::Post::File.append_file: Append not overwrite on *nix shell sessions
This commit is contained in:
@@ -540,7 +540,7 @@ module Msf::Post::File
|
||||
return _win_bin_append_file(file_name, data)
|
||||
end
|
||||
else
|
||||
return _write_file_unix_shell(file_name, data)
|
||||
return _append_file_unix_shell(file_name, data)
|
||||
end
|
||||
end
|
||||
true
|
||||
@@ -909,6 +909,17 @@ protected
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# Append +data+ to the remote file +file_name+.
|
||||
#
|
||||
# You should never call this method directly. Instead, call {#append_file}
|
||||
# which will call this method if it is appropriate for the given session.
|
||||
#
|
||||
# @return [void]
|
||||
def _append_file_unix_shell(file_name, data)
|
||||
_write_file_unix_shell(file_name, data, true)
|
||||
end
|
||||
|
||||
#
|
||||
# Write +data+ to the remote file +file_name+.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user