-
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
bombardment of warning: URI.unescape is obsolete on terminal #13294
Comments
This issue is caused by using Ruby 2.7 - and does not occur with Ruby 2.6. A code fix is required in Metasploit's codebase to remove this warning message for Ruby 2.7 A workaround is to downgrade your Ruby version to 2.6, or there are some documented work arounds for Ruby 2.7 warnings within #12809 |
Going to close this issue as @adfoster-r7 has determined that Ruby 2.7 is the reason these errors appear and Metasploit currently doesn't support Ruby 2.7. Work is ongoing to add support in for Ruby 2.7 however. If you feel this issue was closed in error @netship02, feel free to comment below and ping me or @adfoster-r7 and one of us should be around to answer any questions. |
iam using ruby2.6.6 but still facing the same error |
@athul4554 Which module are you using? I don't have enough details right now to replicate your issue. |
I was using metasploit ... To gather information from another system .... But when the target system connects to my kalilinux these warning are coming ...I don't know why ... I have downgrade the ruby to 2.6.6 but now bundler error is occuring when using msfconsole |
@gwillcox-r7 It's an error that occurs when using Ruby 2.7 with any module that makes calls to the Ruby This isn't an issue that can be fixed by an end user, other than changing their Ruby version or suppressing warnings. There's more context on the Ruby specifics here I'll reopen this ticket and assign it to myself until the functionality is fixed 👍 |
So there is nothing I can do now as a user right? |
@athul4554 See @afoster-r7's response above, specifically this line:
So you can temporarily fix it by switching Ruby versions, but otherwise no, this is something @afoster-r7 or one of his team members will need to fix. |
Thankyou for your quick response |
This issue is now fixed in version 5.0.87 of Metasploit |
How do i update to 5.0.87 please ? Do I have to compile from source code? |
Metasploit updates are available through the usual update channels. If you're using Metasploit from the git repository, you can simply If you've installed Metasploit using an operating system package manager, you'll need to wait until the package maintainer pushes an updated package.
|
I ran into the same problem and resolved it by executing the following:
Source: https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers |
Workaround:
|
@thewb This should be fixed with the latest Metasploit version |
Steps to reproduce
How'd you do it?
This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.
Expected behavior
Session should be created without lot of warnings
Current behavior
Terminal output is filled with
"/opt/metasploit/lib/rex/proto/http/request.rb:79: warning: URI.unescape is obsolete"
warrings
You might also want to check the last ~1k lines of
/opt/metasploit/apps/pro/engine/config/logs/framework.log
or~/.msf4/logs/framework.log
for relevant stack tracesSystem stuff
blackarch installation
Ruby version : ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
Metasploit version
Framework: 5.0.83-dev
Console : 5.0.83-dev
Get this with the
version
command in msfconsole (orgit log -1 --pretty=oneline
for a source install).I installed Metasploit with:
black arch installation
Ruby version : ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
OS
What OS are you running Metasploit on?
Blackarch
The text was updated successfully, but these errors were encountered: