Fix the cve_2022_26923_certifried module after the datastore option changes #20283
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #20249.
The
cve_2022_26923_certifriedmodule needed to be updated to account for the datastore option name created in #19606. The fix simply deregisters the new option names, which keeps the original behavior for this module and maintains consistency between the documentation and the datastore options.Users can still use the
USERNAME,PASSWORD, andDOMAINoptions, which will be used for both SMB and LDAP authentication. This is possible because these options are declared as fallbacks for both protocols.This also fixes an option key value when calling
#delete_account, which is now different after the changes mentioned above.Verification
List the steps needed to make sure this thing works
msfconsoleuse admin/dcerpc/cve_2022_26923_certifriedshow optionsLDAPUsername,LDAPPasswordandLDAPDomainoptions are not there.run verbose=true rhosts=<remote host> username=<username> password=<password> domain=<domain> dc_name=<DC hostname> ca=<CA name>