We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ed840 commit 292087cCopy full SHA for 292087c
tools/msftidy.rb
@@ -610,6 +610,15 @@ def check_print_debug
610
end
611
612
613
+ # Check for modules registering the DEBUG datastore option
614
+ #
615
+ # @see https://github.com/rapid7/metasploit-framework/issues/3816
616
+ def check_datastore_debug
617
+ if @source =~ /Opt.*\.new\('(?i)DEBUG(?-i)'/
618
+ error('Please don\'t register a DEBUG datastore option, it has an special meaning and is used for development')
619
+ end
620
621
+
622
private
623
624
def load_file(file)
@@ -660,6 +669,7 @@ def run_checks(full_filepath)
660
669
tidy.check_udp_sock_get
661
670
tidy.check_invalid_url_scheme
662
671
tidy.check_print_debug
672
+ tidy.check_datastore_debug
663
673
return tidy
664
674
665
675
0 commit comments