Skip to content

Commit

Permalink
Use #dup instead of #clone
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelafuente-r7 committed Oct 17, 2023
1 parent 2232877 commit 5f438f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/file_dropper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def initialize(info = {})
# exploiting).
# @return [void]
def register_files_for_cleanup(*files)
@dropped_files += files.map(&:clone)
@dropped_files += files.map(&:dup)
end

def allow_no_cleanup
Expand Down

0 comments on commit 5f438f7

Please sign in to comment.