Skip to content

Fix annoying bug for payload cached size#21290

Merged
adfoster-r7 merged 2 commits intorapid7:masterfrom
dledda-r7:fix/payload-cached-size-debug
Apr 14, 2026
Merged

Fix annoying bug for payload cached size#21290
adfoster-r7 merged 2 commits intorapid7:masterfrom
dledda-r7:fix/payload-cached-size-debug

Conversation

@dledda-r7
Copy link
Copy Markdown
Contributor

This fix a bug for the tool: bundle exec tools/modules/update_payload_cached_sizes.rb

if you have (like me) the MeterpreterDebugBuild set to true in your metasploit configuration, the cachedsize fetched will be the one of meterpreter.<arch>.debug.dll rather than meterpreter.<arch>.dll. this will force to fetch the correct dll binary.

  • Ensures that for modules with refname matching meterpreter_, the MeterpreterDebugBuild option is explicitly set to false by default in the options hash.

Verification

do bundle exec tools/modules/update_payload_cached_sizes.rb

with both MeterpreterDebugBuild set to false and true

without this fix, the cached size should change, with the fix it will not.

Comment thread lib/msf/util/payload_cached_size.rb Outdated
Added 'MeterpreterDebugBuild' option to payload options.
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Metasploit Kanban Apr 14, 2026
@adfoster-r7 adfoster-r7 merged commit d2f350f into rapid7:master Apr 14, 2026
18 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Metasploit Kanban Apr 14, 2026
@adfoster-r7 adfoster-r7 added the rn-no-release-notes no release notes label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rn-no-release-notes no release notes

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants