// SetResponseObjectVirusTotal takes the VirusTotal reponse object from HybridAnalysis and formats it accroding to our return object struct with translations.
}elseifjsonResponse.Scanners[0].Status=="malicious"{//If malicious set response to risky.
VirusTotal.EN.Status="Risk"
VirusTotal.EN.Content=fmt.Sprintf("%d / %d Antivirus agents has detected this URL/Domain as malicious",jsonResponse.Scanners[0].Positives,jsonResponse.Scanners[0].Total)
// SetResponseObjectAlienVault takes the UrlScanio response from HybridAnalysis and formats it accroding to our return object struct with translations.
ifjsonResponse.Scanners[1].Status=="clean"||jsonResponse.Scanners[1].Status=="no-classification"||jsonResponse.Scanners[1].Status=="no-result"{//Incase of any of these outputs set to safe.
urlscanio.EN.Status="Safe"
urlscanio.EN.Content=fmt.Sprintf("%s has no information that indicates this URL is malicious",jsonResponse.Scanners[1].Name)
urlscanio.NO.Status="Trygg"
urlscanio.NO.Content=fmt.Sprintf("%s har ingen informasjon som tilsier at denne URL'en er skadelig.",jsonResponse.Scanners[1].Name)
ifResponses.FrontendResponse[i].EN.Status=="Risk"{//Set default risk string if malicious
Responses.EN.Result="This file hash has been marked as malicious by atleast one of our threat intelligence sources, if this file is on the machine we reccomend to delete it and run a full antivirus scan of the machine."
Responses.NO.Result="Denne filhashen har blitt markert som ondsinnet av minst en av våre trusseletteretningskilder, hvis du har denne filen på datamaskinen anbefaler vi å slette filen og kjøre en full antivirus skann av maskinen."
}
}
ifResponses.EN.Result==""{
ifResponses.EN.Result==""{//Set default safe string if for loop has not set it as malicious
Responses.EN.Result="We do not have any intelligence indicating that this file is malicious."
Responses.NO.Result="Vi har ingen informasjon som tilsier at denne filen er ondsinnet"