Skip to content

Commit b1a7e77

Browse files
committed
Correct domain controller server type constants
The should be specified in hex as BAKCTRL is 16, not 10. CTRL should be 8. See documentation for NetServerEnum.
1 parent 57395de commit b1a7e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module NetAPI
88
MAX_PREFERRED_LENGTH = -1
99
SV_TYPE_ALL = 0xFFFFFFFF
1010
SV_TYPE_DOMAIN_ENUM = 0x80000000
11-
SV_TYPE_DOMAIN_BAKCTRL = 10
12-
SV_TYPE_DOMAIN_CTRL = 4
11+
SV_TYPE_DOMAIN_BAKCTRL = 0x00000010
12+
SV_TYPE_DOMAIN_CTRL = 0x00000008
1313

1414
ERROR_ACCESS_DENIED = 5
1515
ERROR_NOT_ENOUGH_MEMORY = 8

0 commit comments

Comments
 (0)