mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00
Only enumerate the local directory if it exists
This commit is contained in:
parent
826b13e184
commit
ff2459e08b
@ -84,6 +84,8 @@ module MetasploitPayloads
|
|||||||
end
|
end
|
||||||
|
|
||||||
root_dirs.each do |dir|
|
root_dirs.each do |dir|
|
||||||
|
next unless ::File.directory?(dir)
|
||||||
|
|
||||||
# Merge in any that don't already exist in the collection.
|
# Merge in any that don't already exist in the collection.
|
||||||
meterpreter_enum_ext(dir, binary_suffix).each do |e|
|
meterpreter_enum_ext(dir, binary_suffix).each do |e|
|
||||||
extensions.push(e) unless extensions.include?(e)
|
extensions.push(e) unless extensions.include?(e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user