-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reload_all doesn't load payloads when msfconsole started with --defer-module-loads flag #4973
Comments
A payload is a module. |
But this looks like a real bug. |
So we sort of have a workaround for you, just do:
And that'll work. However we actually did reproduce the problem. @limhoff-r7 This is a loading issue (all modules are reloaded except for payloads), thoughts? |
Ok so here's how much I know about the problem. So when you do this:
At one point you will hit #demand_load_modules, probably by framework.payloads.each_module, which can be triggered by "show payloads" when you use an exploit (but other commands like set payload can cause the same failure too). Anyways, in #demand_load_modules, it's doing this check: if (mod == Msf::SymbolicModule) When we do --defer-module-loads and then reload_all again, the modules aren't Msf::SymbolicModule objects, instead they are Another side-effect of this is that at some point framework.payloads is completely cleared. For example:
framework.payloads.each_module from the above example should not be empty. |
i have problem how can i fix ? |
Wrong place to be asking that question. |
Thanks for your contribution to Metasploit Framework! We've looked at this issue, and unfortunately we do not currently have the bandwidth to prioritize this issue. We've labeled this as |
Platform/Version information:
For example the following command leads to the '[-] Exploit failed: A payload has not been selected.' error:
The text was updated successfully, but these errors were encountered: