-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Add Module Search to MSFRPC interface #8606
Conversation
Neat to see this. Looking forward to this getting landed. |
@busterb I'm getting slightly different results between the two searches From RPC:
From console:
|
The RPC interface isn't pushing everything through Rex::table but is giving the raw hash values on purpose, since that's better programmatically, so sort order and presentation are expected to be different. I'm seeing 9 results in both, and haven't actually identified any different module results after some eyeballing. While they are using the same search function at the high level, but beware: msfrpcd doesn't appear to actually find your database.yml file and won't use the database without some hacking. Try instead loading the msfrpc plugin to ensure the database is available. I think there might be additional differences between the database and non-database search, but that's also the same story for the CLI. If you still don't see it doing database stuff from that point of view, we may have a weird scope issue. |
land's bcook's module search rpc work
Release NotesModule search capability has been added to the remote RPC interface. This capability allows you to search msfrpc as you would msfconsole. |
@Chiggins and @bcoles noticed that we are missing module search from MSFRPC. This refactors the search code so it is available from the framework object, and refactors the command dispatcher to use it, which simplifies that code greatly. It then adds 'module.search' to the MSFRPC interface.
Verification
List the steps needed to make sure this thing works
msfrpcd
andmsfrpc
msfrpc
, run `rpc.call("module.search", "monkey")msfconsole
search monkey
Note that this only adds 18 lines of code outside of spec removal :)