modules/auxiliary/scanner/msmail/shared/src/msmail/msmail.go
Function HarvestInternalDomain
has 68 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func HarvestInternalDomain(host string, outputDomain bool) string {
if outputDomain {
module.LogInfo("Attempting to harvest internal domain:")
}
url1 := "https://" + host + "/ews"
Avoid deeply nested control flow statements. Open
Open
} else if WebRequestCodeResponse(url5) == 401 {
urlToHarvest = url5
} else if WebRequestCodeResponse(url6) == 401 {
urlToHarvest = url6
} else {