Skip to content

Commit 58558e8

Browse files
author
Tod Beardsley
committed
Allow INFO msftidy messages
INFO level messages should not block commits or be complained about on merges. They should merely inform the user.
1 parent 5fa639c commit 58558e8

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)