Skip to content

Commit

Permalink
Land #18403, Fix FileDropper to properly clone string variables befor…
Browse files Browse the repository at this point in the history
…e storing them
  • Loading branch information
adfoster-r7 authored Oct 25, 2023
2 parents a503152 + 0b7a1bf commit 93645c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
@dropped_files += files.map(&:dup)
end

def allow_no_cleanup
Expand All @@ -56,7 +56,7 @@ def allow_no_cleanup
# exploiting).
# @return [void]
def register_dirs_for_cleanup(*dirs)
@dropped_dirs += dirs
@dropped_dirs += dirs.map(&:dup)
end

# Singular versions
Expand Down

0 comments on commit 93645c2

Please sign in to comment.