Skip to content

Commit ab4a416

Browse files
author
Brent Cook
committed
comment out duplicate keys that can only be used for reference
ruby is ignoring all but the second instances, and 2.2 still throws a warning
1 parent cf913e5 commit ab4a416

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/msf/core/post/windows/ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module LDAP
6868
0x02 => 'LDAP_PROTOCOL_ERROR',
6969
0x0a => 'LDAP_REFERRAL',
7070
0x61 => 'LDAP_REFERRAL_LIMIT_EXCEEDED',
71-
0x09 => 'LDAP_REFERRAL_V2',
71+
# 0x09 => 'LDAP_REFERRAL_V2', alias for LDAP_PARTIAL_RESULTS
7272
0x46 => 'LDAP_RESULTS_TOO_LARGE',
7373
0x51 => 'LDAP_SERVER_DOWN',
7474
0x04 => 'LDAP_SIZELIMIT_EXCEEDED',

lib/rex/proto/smb/exceptions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ module Exceptions
88
class Error < ::RuntimeError
99

1010
@@errors = {
11-
0x00000000 => "STATUS_SUCCESS",
11+
# 0x00000000 => "STATUS_SUCCESS",
1212
0x00000000 => "STATUS_WAIT_0",
1313
0x00000001 => "STATUS_WAIT_1",
1414
0x00000002 => "STATUS_WAIT_2",
1515
0x00000003 => "STATUS_WAIT_3",
1616
0x0000003F => "STATUS_WAIT_63",
17-
0x00000080 => "STATUS_ABANDONED",
17+
# 0x00000080 => "STATUS_ABANDONED",
1818
0x00000080 => "STATUS_ABANDONED_WAIT_0",
1919
0x000000BF => "STATUS_ABANDONED_WAIT_63",
2020
0x000000C0 => "STATUS_USER_APC",

0 commit comments

Comments
 (0)