Exemplo n.º 1
0
        private string VTFileReport(string hash)
        {
            string resourceString = "https://www.virustotal.com/vtapi/v2/file/report?" +
                                    "apikey=" + VTKey + "&resource=" + hash + "&allinfo=1";
            var restClient = new RestClientInterface(
                endpoint: resourceString,
                method: HttpVerb.GET);

            var results = restClient.MakeRequest();

            return(results);
            // This will format and indent the JSON results nicely
            // dynamic x = Newtonsoft.Json.JsonConvert.DeserializeObject(results);
            // return Newtonsoft.Json.JsonConvert.SerializeObject(x, formatting: Newtonsoft.Json.Formatting.Indented);
        }