From 5f438f729d12db0c334169909e929fd59a509be9 Mon Sep 17 00:00:00 2001 From: Christophe De La Fuente Date: Tue, 17 Oct 2023 12:19:03 +0200 Subject: [PATCH] Use #dup instead of #clone --- lib/msf/core/exploit/file_dropper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/exploit/file_dropper.rb b/lib/msf/core/exploit/file_dropper.rb index cb947b6a6e82..642e12f204d2 100644 --- a/lib/msf/core/exploit/file_dropper.rb +++ b/lib/msf/core/exploit/file_dropper.rb @@ -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