Skip to content

Commit 8672c52

Browse files
authored
Merge pull request rapid7#20619 from adfoster-r7/future-proof-peinject-method-override
Future proof peinject method override
2 parents 55bb277 + edd536b commit 8672c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload/windows/pe_inject.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def self.assert_compatible(pe, arch)
4444
end
4545
end
4646

47-
def valid?(value, check_empty: nil, datastore: nil)
47+
def valid?(value, **kwargs)
4848
return false unless super
4949
return false unless value && File.file?(File.expand_path(value)) # no memory: locations
5050

0 commit comments

Comments
 (0)