Exemplo n.º 1
0
 private void SetMethodToHttpGet(Options opts = Options.NONE)
 {
     if (!HTTPUtils.ValidateURL(exfilDestination))
     {
         throw new System.Web.HttpException();
     }
     else
     {
         sender = new HttpGetSender();
     }
 }
Exemplo n.º 2
0
 private void SetMethodToDnsQuery(Options opts = Options.NONE)
 {
     IPAddress.Parse(exfilDestination);  //thorw error if no good
     exfilDestination = HTTPUtils.GetDomainFromURL(exfilDestination);
     sender           = new DnsSender(DNS_EXFIL_DOMAIN);
 }