-
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
Ensure identify hashes helper is accessible to modules #17872
Ensure identify hashes helper is accessible to modules #17872
Conversation
dff1640
to
8e2169e
Compare
@@ -212,7 +210,7 @@ def pillage(ldif, base_dn) | |||
ltype.gsub!(/ /, '_') | |||
ltype.gsub!(/,/, '.') | |||
ltype.gsub!(/(ou=|fn=|cn=|o=|dc=|c=)/i, '') | |||
ltype.gsub!(/[^a-z0-9._\-]+/i, '') | |||
ltype.gsub!(/[^a-z0-9._-]+/i, '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated automated rubocop change
== modules/auxiliary/gather/ldap_hashdump.rb ==
C:213: 28: [Correctable] Style/RedundantRegexpEscape: Redundant escape inside regexp literal
1 file inspected, 1 offense detected, 1 offense autocorrectable
modules/auxiliary/gather/ldap_hashdump.rb - [ERROR] Rubocop failed. Please run rubocop -a modules/auxiliary/gather/ldap_hashdump.rb and verify all issues are resolved
@@ -333,3 +333,6 @@ def finalize_loader(loader) | |||
autoload :RubySMB, 'ruby_smb' | |||
|
|||
require 'rexml/document' | |||
|
|||
# XXX: Should be removed once the `lib/metasploit` folder is loaded by Zeitwerk | |||
require 'metasploit/framework/hashes' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will probably look something like:
diff --git a/lib/msf_autoload.rb b/lib/msf_autoload.rb
index 7bb1da35af..0b697e6ae0 100644
--- a/lib/msf_autoload.rb
+++ b/lib/msf_autoload.rb
@@ -298,6 +298,7 @@ class MsfAutoload
[
{ path: "#{__dir__}/msf/", namespace: Msf },
{ path: "#{__dir__}/rex/", namespace: Rex },
+ { path: "#{__dir__}/metasploit/", namespace: Metasploit }
]
end
But it would require more testing/fixing than the cycles currently available
Fixed my issue with certifried will land
|
Release NotesFixes a crash when modules relied on a hash identifying method that wasn't always available. This method is now available as expected and modules will no longer crash. |
Fixes a crash when modules relied on a hash identifying method that wasn't always available. This method is now available as expected and modules will no longer crash.
Spotted as part of #17353 (comment)
Verification
Ensure the hashes helper is available from within Metasploit console: