Fixes set_template_default_winpe_dll

This commit is contained in:
Martin Sutovsky
2026-02-06 11:44:39 +01:00
parent 1abdaf22f0
commit d64f0efcf5
+2 -2
View File
@@ -87,7 +87,7 @@ class Msf::Util::EXE::Windows::Common
# @param arch The architecture, as one the predefined constants.
# @param size [Integer] The size of the payload.
# @param flavor [Nil,String] An optional DLL flavor, one of 'mixed_mode' or 'dccw_gdiplus'
private_class_method def set_template_default_winpe_dll(opts, arch, size, flavor: nil)
def set_template_default_winpe_dll(opts, arch, size, flavor: nil)
return if opts[:template].present?
# dynamic size upgrading is only available when MSF selects the template because there's currently no way to
@@ -818,4 +818,4 @@ payload:
end
res
end
end
end