Fix ldap query over 1000 results
parent
0b7756f3f6
commit
5e282156bb
|
@ -43,7 +43,7 @@ class NXCModule:
|
||||||
context.log.success("Attempting to enumerate objects with an applied policy...")
|
context.log.success("Attempting to enumerate objects with an applied policy...")
|
||||||
|
|
||||||
# Who do they apply to?
|
# Who do they apply to?
|
||||||
resp=connection.ldapConnection.search(searchBase=base_creator(self.__domain), searchFilter="(objectclass=*)",attributes=["DistinguishedName","msDS-PSOApplied"])
|
resp=connection.search(searchFilter="(objectclass=*)",attributes=["DistinguishedName","msDS-PSOApplied"])
|
||||||
for i in resp:
|
for i in resp:
|
||||||
if isinstance(i, ldapasn1_impacket.SearchResultEntry) is not True:
|
if isinstance(i, ldapasn1_impacket.SearchResultEntry) is not True:
|
||||||
continue
|
continue
|
||||||
|
@ -65,7 +65,7 @@ class NXCModule:
|
||||||
|
|
||||||
# Let"s find out even more details!
|
# Let"s find out even more details!
|
||||||
context.log.success("Attempting to enumerate details...\n")
|
context.log.success("Attempting to enumerate details...\n")
|
||||||
resp=connection.ldapConnection.search(searchBase=base_creator(self.__domain), searchFilter="(objectclass=msDS-PasswordSettings)",
|
resp=connection.search(searchFilter="(objectclass=msDS-PasswordSettings)",
|
||||||
attributes=["name", "msds-lockoutthreshold", "msds-psoappliesto", "msds-minimumpasswordlength",
|
attributes=["name", "msds-lockoutthreshold", "msds-psoappliesto", "msds-minimumpasswordlength",
|
||||||
"msds-passwordhistorylength", "msds-lockoutobservationwindow", "msds-lockoutduration",
|
"msds-passwordhistorylength", "msds-lockoutobservationwindow", "msds-lockoutduration",
|
||||||
"msds-passwordsettingsprecedence", "msds-passwordcomplexityenabled", "Description",
|
"msds-passwordsettingsprecedence", "msds-passwordcomplexityenabled", "Description",
|
||||||
|
|
Loading…
Reference in New Issue