rapid7/metasploit-framework

View on GitHub
modules/auxiliary/scanner/msmail/shared/src/msmail/msmail.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function HarvestInternalDomain has 68 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func HarvestInternalDomain(host string, outputDomain bool) string {
    if outputDomain {
        module.LogInfo("Attempting to harvest internal domain:")
    }
    url1 := "https://" + host + "/ews"
Severity: Minor
Found in modules/auxiliary/scanner/msmail/shared/src/msmail/msmail.go - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

        } else if WebRequestCodeResponse(url5) == 401 {
            urlToHarvest = url5
        } else if WebRequestCodeResponse(url6) == 401 {
            urlToHarvest = url6
        } else {
    Severity: Major
    Found in modules/auxiliary/scanner/msmail/shared/src/msmail/msmail.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status