Ejemplo n.º 1
0
 private string CasePythonString(HtmlmthCase htmlmthCase)
 {
     if ((ScriptEncodingServerHost == null || ScriptEncodingServerPort == null) && htmlmthCase.CaseImplementations.Any(x => x.ToLower().Contains("evasions.html.encoded_script")))
     {
         throw new Exception("ScriptingEncodingServerHost and ScriptingEncodingServerPort must be set if the evasion 'evasions.html.encoded_script' is used");
     }
     return(string.Format(PythonStringTemplate, htmlmthCase.Casename, string.Join(", ", htmlmthCase.CaseImplementations)));
 }
Ejemplo n.º 2
0
        public void SetEvasions(HtmlmthBaseline baseline, IEnumerable <string> evasions)
        {
            var c = new HtmlmthCase(baseline.Host, baseline.Path, Utils.RandomString(10), evasions);

            Cases.Add(c);
        }