to try (all) no longer contains username used for scanning
1 parent 1a7ccc9 commit 2e6a41ca9a2cd81b6a21bcfae04db9ffa3f37739
root authored on 27 Aug 2021
Showing 5 changed files
View
LdapUsrEnum-linux-386
Not supported
View
LdapUsrEnum-linux-amd64
Not supported
View
LdapUsrEnum-windows-386.exe
Not supported
View
LdapUsrEnum-windows-amd64.exe
Not supported
View
6
LdapUsrEnum.go
toTry := ""
for i := 0; i < len(foundUsers); i++ {
if lockedUsers[foundUsers[i]] == 0{ // account not locked
if disabledUsers[foundUsers[i]] == 0{ // account not disabled
toTry += ", "+foundUsers[i]
if foundUsers[i] != mainUser{ // account not one used for scanning
toTry += ", "+foundUsers[i]
}
}
}
}
toTry = toTry[2:] // remove first ","
Buy Me A Coffee