-
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
Error while running command openvas_connect: uninitialized constant OpenVASOMP::OMPConnectionError #18958
Comments
I think this PR here should resolve your issue if you wanted to give it a quick test |
Hi, Thanks for the response :-) I manually edited my openvas.rb file with your line 189 change from #18959 msf6 > openvas_connect msfconsole msfconsole 127.0.0.1 9392 Call stack: |
ah, damn alright, thanks for dropping the stacktrace, was hoping I could get away without setting it up, I'll have a crack at fixing it when I get but feel free to throw up a PR if you wanna have a crack at fixing it yourself |
no worries - I'm learning to code currently (very much a beginner)... this is all a bit new to me |
Ah ok so @Isodoro I did a little more digging and it looks like that's a pretty old unmaintained gem we're using https://rubygems.org/gems/openvas-omp the issue seems to lie in the gem itself rather than in framework itself so I'm afraid getting this working would be more effort than I would have expected |
Hi - Thanks for looking! Appreciated. Completely understand - I tried a few things but nowhere near your level of expertise. I'd probably pull the "load openvas" option away from the next release btw. Appears that the gvm-cli tools would be the way to move forward with this, however time consuming just for the sake of this automation. Quick question: Do you know if the Nessus integration works? if you want to close this ticket off feel free :-) |
Steps to reproduce
Sorry... me again! :-)
I might be being a muppet but I can't get Metasploit to connect to OpenVAS.
All the forum stuff I've searched for has been older versions etc.
This is a fresh 2024 build with spec as follows:
Linux kali 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
OpenVAS 22.7.9
gvm-libs 22.7.3
How'd you do it?
Were you following a specific guide/tutorial or reading documentation?
The OpenVAS build was followed from: https://www.kali.org/tools/gvm/
Both products work fine independently.
If yes link the guide/tutorial or documentation you were following here, otherwise you may omit this section.
Expected behavior
What should happen?
msf should connect to the OpenVAS app
Current behavior
What happens instead?
Now when I try to connect to 9392 with an admin account I created (tried admin as well) I get the following:
I also tried the local IP (192.168.x.x)
Metasploit version
msf6 > version
Framework: 6.3.55-dev
Console : 6.3.55-dev
Additional Information
In terms of ports LISTENING on the host:
For awareness on what is installed on the host:
The openvas settings:
The text was updated successfully, but these errors were encountered: