Skip to content

Commit a36c6d2

Browse files
committed
Lands rapid7#1730, adds a VERBOSE option checker
Also removes VERBOSE options from extant modules. There were only 5 of them, and one was a commented option.
2 parents be39079 + 29101ba commit a36c6d2

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

modules/auxiliary/scanner/http/squiz_matrix_user_enum.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def initialize(info={})
4444
OptString.new('URI', [true, 'The path to users Squiz Matrix installation', '/']),
4545
OptInt.new('ASSETBEGIN', [ true, "Asset ID to start at", 1]),
4646
OptInt.new('ASSETEND', [ true, "Asset ID to stop at", 100]),
47-
OptBool.new('VERBOSE', [ true, "Display all attempts", true ]),
4847
], self.class)
4948
end
5049

modules/auxiliary/spoof/arp/arp_poisoning.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def initialize
3737
OptString.new('INTERFACE', [false, 'The name of the interface']),
3838
OptBool.new( 'BIDIRECTIONAL', [true, 'Spoof also the source with the dest',false]),
3939
OptBool.new( 'AUTO_ADD', [true, 'Auto add new host when discovered by the listener',false]),
40-
#OptBool.new( 'VERBOSE', [true, 'Display more output on screen',false]),
4140
OptBool.new( 'LISTENER', [true, 'Use an additionnal thread that will listen to arp request and try to relply as fast as possible', true])
4241
], self.class)
4342

modules/exploits/windows/email/ms10_045_outlook_ref_resolve.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ def initialize(info = {})
6767
[false, 'Message Class value', 'IPM.Document.txtfile']),
6868
OptString.new('EXTENSION',
6969
[false, 'The extension used in the fake file name', 'jpg']),
70-
OptString.new('VERBOSE',
71-
[ false, 'Display verbose information', "true"]),
7270
#
7371
# WebDAV options
7472
#

modules/exploits/windows/http/sap_mgmt_con_osexec_payload.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def initialize(info = {})
5656
register_options(
5757
[
5858
Opt::RPORT(50013),
59-
OptBool.new('VERBOSE', [ false, 'Enable verbose output', false ]),
6059
OptString.new('URI', [false, 'Path to the SAP Management Console ', '/']),
6160
OptString.new('USERNAME', [true, 'Username to use', '']),
6261
OptString.new('PASSWORD', [true, 'Password to use', '']),

modules/post/windows/manage/mssql_local_auth_bypass.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ def initialize(info={})
4141
OptString.new('DB_USERNAME', [true, 'New sysadmin login', '']),
4242
OptString.new('DB_PASSWORD', [true, 'Password for new sysadmin login', '']),
4343
OptString.new('INSTANCE', [false, 'Name of target SQL Server instance', '']),
44-
OptBool.new('REMOVE_LOGIN', [false, 'Remove DB_USERNAME login from database', 'false']),
45-
OptBool.new('VERBOSE', [false, 'Set how verbose the output should be', 'false']),
44+
OptBool.new('REMOVE_LOGIN', [false, 'Remove DB_USERNAME login from database', 'false'])
4645
], self.class)
4746
end
4847

tools/msftidy.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ def check_old_keywords
145145
end
146146
end
147147

148+
def check_verbose_option
149+
if @source =~ /Opt(Bool|String).new\([[:space:]]*('|")VERBOSE('|")[[:space:]]*,[[:space:]]*\[[[:space:]]*/
150+
warn("VERBOSE Option is already part of advanced settings, no need to add it manually.")
151+
end
152+
end
153+
148154
def check_badchars
149155
badchars = %Q|&<=>|
150156

@@ -390,6 +396,7 @@ def run_checks(f_rel)
390396
tidy = Msftidy.new(f_rel)
391397
tidy.check_ref_identifiers
392398
tidy.check_old_keywords
399+
tidy.check_verbose_option
393400
tidy.check_badchars
394401
tidy.check_extname
395402
tidy.test_old_rubies(f_rel)

0 commit comments

Comments
 (0)