-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
An error with message "undefined method `search_modules' for Msf::WebServices:Module" when call REST API #18472
Comments
You should be able to stop and start the server for it to pick up the latest code changes 👍 |
Hi! This issue has been left open with no activity for a while now. We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
Hi! This issue has been left open with no activity for a while now. We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
Steps to reproduce
How'd you do it?
GET /api/v1/modules
Were you following a specific guide/tutorial or reading documentation?
Yes, I was following this docs https://docs.metasploit.com/docs/using-metasploit/advanced/metasploit-web-service.html
Expected behavior
It should return modules matching keywords with appropriate metadata.
Current behavior
It returned an error with message: "There was an error completing the module search: undefined method `search_modules' for Msf::WebServices:Module" and code 500
Metasploit version
Framework Version: 6.3.39-dev-
Additional Information
I updated to the latest version but my issue is still present.
Suggestion
"I found this API calling the method
Msf::WebServices.search_modules()
(in file/framework/lib/msf/core/web_services/servlet/module_search_servlet.rb
line 21), but this methodsearch_modules()
is not defined in moduleMsf::WebServices
. I thinksearch_modules()
might be mothod in moduleMsf::WebServices::ModuleSearch
(because the methodsearch_modules
() is defined in moduleMsf::WebServices::ModuleSearch
in the fileframework/lib/msf/core/web_services/module_search.rb
line 3)".I have modified the source code, but I don't know how to rebuild it. It would be great if you could provide a guide for me to edit the code and rebuild the project on my own.
The text was updated successfully, but these errors were encountered: