Skip to content

Commit a07656f

Browse files
committed
Land rapid7#3536, msftidy INFO messages aren't blockers
2 parents 8733dcb + 58558e8 commit a07656f

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

modules/exploits/windows/smb/psexec.rb

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33
# Current source: https://github.com/rapid7/metasploit-framework
44
##
55

6-
7-
=begin
8-
Windows XP systems that are not part of a domain default to treating all
9-
network logons as if they were Guest. This prevents SMB relay attacks from
10-
gaining administrative access to these systems. This setting can be found
11-
under:
12-
13-
Local Security Settings >
14-
Local Policies >
15-
Security Options >
16-
Network Access: Sharing and security model for local accounts
17-
=end
6+
# Windows XP systems that are not part of a domain default to treating all
7+
# network logons as if they were Guest. This prevents SMB relay attacks from
8+
# gaining administrative access to these systems. This setting can be found
9+
# under:
10+
#
11+
# Local Security Settings >
12+
# Local Policies >
13+
# Security Options >
14+
# Network Access: Sharing and security model for local accounts
1815

1916
require 'msf/core'
2017

tools/dev/pre-commit-hook.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def merge_error_message
6464
msftidy_output= %x[ #{cmd} ]
6565
puts "#{fname} - msftidy check passed" if msftidy_output.empty?
6666
msftidy_output.each_line do |line|
67-
valid = false
67+
valid = false unless line['INFO']
6868
puts line
6969
end
7070
end

0 commit comments

Comments
 (0)