Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Menú Mostrar Mensajes

Mensajes - david_domh

#81
Plugins para RaptorCache / Re:Ayuda, con 3 Plugin..
Octubre 24, 2013, 02:47:14 AM
para que se vea màs elegante los còdigos : click en el signo numeral luego poner al lado de code=cpp



entonces aparecerà asi :

Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o seniat.gob.ve.so seniat.gob.ve.cpp
// regex
// http.*\.seniat\.gob\.ve.*(\.gif|\.jpg|\.png|\.swf)

string get_filename(string url) {
       vector<string> resultado;
       if (url.find("?") != string::npos) {
           stringexplode(url, "?", &resultado);
           stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
           return resultado.at(resultado.size()-1);          
       } else {
           stringexplode(url, "/", &resultado);
           return resultado.at(resultado.size()-1);
       }
}

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".seniat.gob.ve") != string::npos)
  ) {
   
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "seniat";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}



Saludos
Buenos aportes
#82
te falto ponerle 2 extensiones amigo el de pdf y exe ya que hay descargas de formularios y aplicativos
el plugin serìa asi entonces :

Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"

using namespace std;

// use this line to compile
// g++ -I. -fPIC -shared -g -o rionegro.gov.ar.so rionegro.gov.ar.cpp
// Regex
// http.*\.rionegro\.gov\.ar.*(\.swf|\.jpg|\.png|\.gif|\.pdf|\.exe)

string dominiotxt="Rionegro.gov.ar";     
string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
        resposta r;       
               
  if ( (url.find("rionegro.gov.ar/") != string::npos)
     ) {
      r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;
         r.domain = dominiotxt;       
      } else {
         r.match = false;
      }
   }
   else
   {
      r.match = false;
   }
   return r;
}


Saludos

David M.

Buen aporte zeronett a seguir aportando mas plugins.................
#83
Plugins para ThunderCache 3.1.2 / Re:no cachea plugin
Octubre 24, 2013, 02:12:09 AM
este plugin hace cache a la pagina web, probado y testeado ok.

Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"

using namespace std;
   
// use this line to compile
// g++ -I. -fPIC -shared -g -o softwarelibre.gob.ve.so softwarelibre.gob.ve.cpp
// regex
// http.*\.softwarelibre\.gob\.ve.*(\.jpg|\.png|\.gif|\.swf|\.bmp)

string dominiotxt="Canaima.softwarelibre.gob.ve";    
string get_filename(string url) {
     vector<string> resultado;
               if (url.find("?") != string::npos) {
                       stringexplode(url, "?", &resultado);
                       stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);          
               } else {
                       stringexplode(url, "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
               }
   }

extern "C" resposta getmatch(const string url) {
       resposta r;    

   if ( (url.find(".softwarelibre.gob.ve/") != string::npos) and
    ((url.find(".jpg")!= string::npos) or
    (url.find(".png") != string::npos) or
    (url.find(".gif") != string::npos) or
    (url.find(".swf") != string::npos) or        
    (url.find(".bmp")!= string::npos))  
      ) {
                 
          r.file = get_filename(url);
               if (!r.file.empty()) {
                       r.match = true;
                      r.domain = dominiotxt;
               } else {
                       r.match = false;
               }
       } else {
               r.match = false;
       }
       return r;
}


Saludos
David M.
Nota :
Faltarìa otro para los .iso y los .md5 su  Host:descargas.canaima.softwarelibre.gob.ve
no se porque,  pero no desea hacerle proxy a los .iso
a ver si alguien lo intenta.............................
#84
Plugins para ThunderCache 3.1.2 / Re:no cachea plugin
Octubre 23, 2013, 09:20:54 PM
lo hice a la volada el plugin mas tarde te paso el plugin corregido, pero que es lo que no cachea las descargas o la pagina?


Saludos


David M.
#85
Plugins para ThunderCache 3.1.2 / Re:no cachea plugin
Octubre 23, 2013, 04:23:04 PM
Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o canaima.softwarelibre.gob.ve.so canaima.softwarelibre.gob.ve.cpp
// regex
// http.*\.canaima.softwarelibre\.gob\.ve.*(\.jpg|\.png|\.gif|\.swf|\.jpg|\.bmp|\.iso|\.rar|\.zip|\.exe)

string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".canaima.softwarelibre.gob.ve/") != string::npos)
) {

       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;
         r.domain = "canaima.softwarelibre/Descargas";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;
   }
   return r;
}
#86
Plugins para ThunderCache 3.1.2 / Re:no cachea plugin
Octubre 23, 2013, 04:12:50 PM
tu lo hiciste mal ya que para compilar te votarìa error :

// use this line to compile
// g++ -I. -fPIC -shared -g -o canaima.softwarelibre.gob.ve.so canaima.softwarelibre.gob.ve.cpp
// regex
// http.*\.vit\.gob\.ve.*(\.jpg|\.png|\.gif)


serìa asi , veo que tambien de esta web salen descargas en .iso , zip :
Código (cpp) [Seleccionar]
// use this line to compile
// g++ -I. -fPIC -shared -g -o canaima.softwarelibre.gob.ve.so canaima.softwarelibre.gob.ve.cpp
// regex
// http.*\.canaima.softwarelibre\.gob\.ve.*(\.jpg|\.png|\.gif|\.swf|\.jpg|\.bmp|\.iso|\.rar|\.zip|\.exe)

intenta crear de nuevo el plugin

Saludos
David M.
#87
Plugins para RaptorCache / Re:Listado de plugins
Octubre 23, 2013, 02:49:29 PM
ya lo intente hoy dia y no hace cache, al igual como algunas paginas por ahi que tampoco se puede

David M.


Saludos
#88
el amigo firecold desea estos archivos porfas màndenselo ya que yo sigo trabajando con thunder y no con raptor


report.php, repext.php, repdate.php, repdreq.php, reptot.php

fast

Saludos


David M.
#89
Plugins para RaptorCache / Re:Listado de plugins
Octubre 23, 2013, 10:06:59 AM
a ver freedarwin,  el intento vale la pena


vk.me
vimple.ru


si lo haces funcionar los plugins seria genial

David M
#90
buena la pagina y el plugin


Aseguir aportando muchachos
David M
#91
Plugins para ThunderCache 3.1.2 / Mas plugins
Octubre 19, 2013, 01:17:59 PM
Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o aclst.com.so aclst.com.cpp
// regex
// http.*\.aclst\.com.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".aclst.com/") != string::npos)
   ) {
     
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "youtube-mp3.org";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;
   }
   return r;
}



Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o apple.com.so apple.com.cpp
// regex
// http.*\.apple\.com.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3|\.exe)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".apple.com/") != string::npos)
   ) {
     
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "itunes/apple.com";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;   
   }
   return r;   
}


Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o bearshare.com.so bearshare.com.cpp
// regex
// http.*\.bearshare\.com.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3|\.exe)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".bearshare.com/") != string::npos)
   ) {
     
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "bearshare.com/Music-Mp3";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;   
   }
   return r;   
}


Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o force-download.com.so force-download.com.cpp
// regex
// http.*\.force-download\.com.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".force-download.com/") != string::npos)
   ) {
     
       r.file = get_filename(url); 
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "force-download.com";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;
   }
   return r;   
}



Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o freemake.com.so freemake.com.cpp
// regex
// http.*\.freemake\.com.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".freemake.com/") != string::npos)
   ) {
     
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "freemake.com";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;
   }
   return r;   
}



Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o horizondatasys.com.so horizondatasys.com.cpp
// regex
// http.*\.horizondatasys\.com.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3|\.exe)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".horizondatasys.com/") != string::npos)
   ) {
     
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "horizondatasys.com";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;     
   }
   return r;   
}



Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o livefilestore.com.so livefilestore.com.cpp
// regex
// http.*\.livefilestore\.com.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".livefilestore.com/") != string::npos)
   ) {
     
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "mp3xd.com";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;
   }
   return r;   
}


Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o mp3jam.org.so mp3jam.org.cpp
// regex
// http.*\.mp3jam\.com.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3|\.exe)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".mp3jam.org/") != string::npos)
   ) {
     
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "mp3jam.org";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;
   }
   return r;   
}



Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o mp3rocket.me.so mp3rocket.me.cpp
// regex
// http.*\.mp3rocket\.me.*(\.swf|\.jpg|\.png|\.gif|\.rar|\.zip|\.mp4|\.mp3|\.exe)


string get_filename(string url) {
      vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
                }
    }

extern "C" resposta getmatch(const string url) {
    resposta r;   

if ( (url.find(".mp3rocket.me/") != string::npos)
   ) {
     
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;         
         r.domain = "mp3rocket.me/Music-Mp3";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;   
   }
   return r;   
}


Saludos a toda la gente

#92
aca si hace full cache todos los videos de esta pagina muy visitada por mi

Código (cpp) [Seleccionar]
#include <iostream>
   #include <cstring>
   #include <vector>
   #include "../utils.cpp"
   
   // g++ -I. -fPIC -shared -g -o uefa.com.so uefa.com.cpp
   // regex
   // http.*\.uefa\.com.*(\.jpg|\.png|\.gif|\.mp3|\.swf|\.flv|\.exe|\.rar|\.zip|\.wav|\.mp4|\.m4v|\.x-m4v)
   
   string get_filename(string url) {
                   vector<string> resultado;
                   if (url.find("?") != string::npos) {
                           stringexplode(url, "?", &resultado);
                           stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                           return resultado.at(resultado.size()-1);          
                   } else {
                           stringexplode(url, "/", &resultado);
                           return resultado.at(resultado.size()-1);
                   }
   }
   
   extern "C" resposta getmatch(const string url) {
       resposta r;
   
           if ( (url.find(".uefa.com/") != string::npos) and
           ( (url.find(".jpg") != string::npos) or
           (url.find(".png") != string::npos) or
           (url.find(".gif")!= string::npos) or
           (url.find(".mp3")!= string::npos) or
           (url.find(".swf")!= string::npos) or
           (url.find(".flv")!= string::npos) or
           (url.find(".exe")!= string::npos) or
           (url.find(".rar")!= string::npos) or
           (url.find(".zip")!= string::npos) or
           (url.find(".wav")!= string::npos) or
           (url.find(".mp4")!= string::npos) or
           (url.find(".m4v")!= string::npos) or
           (url.find(".x-m4v")!= string::npos))
           ){
                 
               r.file = get_filename(url);
                   if (!r.file.empty()) {
                           r.match = true;
                           r.domain = "Uefa-Videos";
                   } else {
                           r.match = false;
                   }
           } else {
                   r.match = false;
           }
           return r;
   }



David M.
#93
para mañana sabado al mediodia voy a poner 10 plugins de paginas xxx



David M.


Saludos
#94
Todo lo referente a autocad y sus herramientas

Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o autodesk.com.so autodesk.com.cpp
// regex
// http.*\.autodesk\.com.*(\.swf|\.jpg|\.png|\.gif|\.exe|\.rar|\.zip|\.mp4|\.mp3)


string get_filename(string url) {
     vector<string> resultado;
               if (url.find("?") != string::npos) {
                       stringexplode(url, "?", &resultado);
                       stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);          
               } else {
                       stringexplode(url, "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
               }
   }

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".autodesk.com/") != string::npos)
  ) {
     
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "Autodesk.com";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}


Todo lo referente corel draw programa de diseño grafico y utilitarios
Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o corel.com.so corel.com.cpp
// regex
// http.*\.corel\.com.*(\.swf|\.jpg|\.png|\.gif|\.exe|\.rar|\.zip|\.mp4|\.mp3)


string get_filename(string url) {
     vector<string> resultado;
               if (url.find("?") != string::npos) {
                       stringexplode(url, "?", &resultado);
                       stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);          
               } else {
                       stringexplode(url, "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
               }
   }

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".corel.com/") != string::npos)
  ) {
     
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "Corel_Draw";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}


Estos dos plugins hacen cache a los que personalmente considero el mejor lugar para conseguir toda clase de drivers


Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o helpdrivers.com.so helpdrivers.com.cpp
// regex
// http.*\.helpdrivers\.com.*(\.swf|\.jpg|\.png|\.gif|\.exe|\.rar|\.zip)


string get_filename(string url) {
     vector<string> resultado;
               if (url.find("?") != string::npos) {
                       stringexplode(url, "?", &resultado);
                       stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);          
               } else {
                       stringexplode(url, "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
               }
   }

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".helpdrivers.com/") != string::npos)
  ) {
     
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "Helpdrivers.com/Descargas";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}



Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o solodrivers.com.so solodrivers.com.cpp
// regex
// http.*\.solodrivers\.com.*(\.swf|\.jpg|\.png|\.gif|\.exe|\.rar|\.zip)


string get_filename(string url) {
     vector<string> resultado;
               if (url.find("?") != string::npos) {
                       stringexplode(url, "?", &resultado);
                       stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);          
               } else {
                       stringexplode(url, "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
               }
   }

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".solodrivers.com/") != string::npos)
  ) {
     
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "solodrivers.com/Descargas";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}



Servidores que alojan sus videos : peru.com  /  comercio.pe

Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o peru.com.so peru.com.cpp
// regex
// http.*\.peru\.com.*(\.flv|\.mp4|\.x-flv|\.swf)

string get_filename(string url) {
       vector<string> resultado;
       if (url.find("?") != string::npos) {
           stringexplode(url, "?", &resultado);
           stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
           return resultado.at(resultado.size()-4) + "_" + resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1);          
       } else {
           stringexplode(url, "/", &resultado);
           return resultado.at(resultado.size()-4) + "_" + resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1); ;
       }
}

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".peru.com/") != string::npos)
  ) {
   
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "Peru.com-Videos";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}



Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o sambatech.com.br.so sambatech.com.br.cpp
// regex
// http.*\.sambatech\.com\.br.*(\.flv|\.mp4|\.x-flv|\.swf)

string get_filename(string url) {
       vector<string> resultado;
       if (url.find("?") != string::npos) {
           stringexplode(url, "?", &resultado);
           stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
           return resultado.at(resultado.size()-4) + "_" + resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1);          
       } else {
           stringexplode(url, "/", &resultado);
           return resultado.at(resultado.size()-4) + "_" + resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1); ;
       }
}

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".sambatech.com.br/") != string::npos)
  ) {
   
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "Comercio.pe/peru.com-Videos2";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}


Esta pagina muy conocida por alojar videos y .gif graciosos y peculiares muy utilizada ùltimamente


Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o tumblr.com.so tumblr.com.cpp
// regex
// http.*\.tumblr\.com.*(\.swf|\.jpg|\.png|\.gif|\.exe|\.rar|\.zip|\.flv)


string get_filename(string url) {
     vector<string> resultado;
               if (url.find("?") != string::npos) {
                       stringexplode(url, "?", &resultado);
                       stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);          
               } else {
                       stringexplode(url, "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
               }
   }

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".tumblr.com/") != string::npos)
  ) {
     
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "tumblr.com";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}



Web de descargas de .mp3

Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o mp3buscador.com.so mp3buscador.com.cpp
// regex
// http.*\.mp3buscador\.com.*(\.swf|\.jpg|\.png|\.gif|\.exe|\.rar|\.zip|\.mp4|\.mp3)


string get_filename(string url) {
     vector<string> resultado;
               if (url.find("?") != string::npos) {
                       stringexplode(url, "?", &resultado);
                       stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);          
               } else {
                       stringexplode(url, "/", &resultado);
                       return resultado.at(resultado.size()-3)+"_"+resultado.at(resultado.size()-2)+"_"+resultado.at(resultado.size()-1);
               }
   }

extern "C" resposta getmatch(const string url) {
   resposta r;  

if ( (url.find(".mp3buscador.com/") != string::npos)
  ) {
     
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;        
        r.domain = "mp3buscador.com";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}


Saludos

David M.
#95
Plugins de Antivirus / Re:Plugin Avast
Octubre 18, 2013, 09:12:20 AM
Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"

using namespace std;

// use this line to compile
// g++ -I. -fPIC -shared -g -o avast.com.so avast.com.cpp
// Regex
// http.*\.avast\.com.*(\.def|\.vpu|\.vpaa|\.stamp|\.vpx|\.exe)

bool in_array(const string &needle, const vector< string > &haystack) {

        int max = haystack.size();
        if (max == 0) return false;
        for (int iii = 0; iii < max; iii++) {
                   if (regex_match(haystack[iii], needle) != "") {
                           return true;
                }
        }
        return false;
}

string get_filename(string url) {
                vector<string> resultado;
                if (url.find("?") != string::npos) {
                        stringexplode(url, "?", &resultado);
                        stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                        return resultado.at(resultado.size()-1);           
                } else {
                        stringexplode(url, "/", &resultado);
                        return resultado.at(resultado.size()-1);
                }
}

extern "C" resposta getmatch(const string url) {
        resposta r;
               
        vector<string> black_list;
        black_list.push_back ("servers.def.vpx");
        black_list.push_back ("prod-ais.vpx");
               
        if ((url.find(".avast.com/") != string::npos) and (in_array(url, black_list) == false)
                ) {
                r.file = get_filename(url);
                if (!r.file.empty()) {
                        r.match = true;
                        r.domain = "avast";
                } else {
                        r.match = false;
                }
        } else {
                r.match = false;
        }
        return r;
}


Le añadì solo al final del regex .exe para que cachee el instalador que ahora lo descarga del mismo servidor de avast


Saludos

David M
#96
Plugins de juegos / Re:Plugin Axeso5 Audition fallando
Octubre 18, 2013, 08:54:42 AM
el plugin de audition por el momento se soluciona para todas las actualizaciones que haiga borrando la base de datos anterior
por el momento es la ùnica manera muchachos; estoy viendo a que se debe eso ya que el plugin esta bien hecho pero parece que hay algo por ahi que tenemos que poner en la white list para que funcione, eso toma tiempo , y la espera bien vale la pena.

Nota: Borrar /thunder/Audition-Online
                 /thunder/Axexo5_Juegos_Online

esas 2 carpetas y el plugin funcionarà normal, hasta que haya otra actualizaciòn y hacer lo mismo para que funcione

Saludos

David M.
#97
los 9 plugins estan totalmente testeados y funcionando perfectamente

y al plugin de akamaihd esta agregado unas lineas mas para que haga cache a los videos de foxsportsla
http://www.alterserv.com/foros/index.php?topic=947.0


Saludos



David M.

Lima - Perù
#98
Por cierto aca hay 9 plugins mas si les interesa son de xxx
http://www.alterserv.com/foros/index.php?topic=946.0
http://www.alterserv.com/foros/index.php?topic=945.0

Saludos a toda la gente


David M.
#99
creo que play utiliza ip publica si es asi no se podria hacer plugins

yo ya me tope con varios servidores que alojan videos ,etc y la mayoria son ip publica como el de play

Request URL:http://192.96.205.163:182/d/k3awirnslhzeh6kdrjrkdcynubnqogswjqfiepn6x5dilfpwk5qy5tv6/Brave-Heart-LAT-muxed.mp4
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:es-ES,es;q=0.8
Connection:keep-alive
Host:192.96.205.163:182


Saludos

David M.


Creo que en raptor se podrà hacer plugins con ip publica o no, alguien sabe de eso?



#100
Código (cpp) [Seleccionar]
    #include <iostream>
    #include <cstring>
    #include <vector>
    #include "../utils.cpp"
     
    // use this line to compile
    // g++ -I. -fPIC -shared -g -o akamaihd.net.so akamaihd.net.cpp
    // regex
    // http.*\.akamaihd\.net.*(\.jpg|\.png|\.swf|\.mp3|\.f4f|\.flv|\.mp4)
       
    string dominiotxt="z-cdn_akamaihd";
    string get_filename(string url) {
            vector<string> resultado;
            if (url.find("?") != string::npos) {
                stringexplode(url, "?", &resultado);
                stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                return resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1);         
            } else {
                stringexplode(url, "/", &resultado);
                return resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1); ;
            }
    }
     
    extern "C" resposta getmatch(const string url) {
        resposta r;
     
       if ( (url.find("/shockwave/") != string::npos)
           ) {
        dominiotxt="z-cdn_akamaihd_city2";
        }
        if ((url.find("/farm2/")!= string::npos)
           ) {
        dominiotxt="z-cdn_akamaihd_farm2";
        }
        if ( (url.find("/slingo/")!= string::npos)
           ) {
        dominiotxt="z-cdn_akamaihd_slingo";
        }
       if ( (url.find("dchoc1")!= string::npos)
           ) {
        dominiotxt="z-cdn_akamaihd/galaxy";
        }
        if ( (url.find("/cooking/") != string::npos)
           ) {
        dominiotxt="z-cdn_akamaihd_cheff";
        }
        if ( (url.find("fbcdn") != string::npos)
           ) {
        dominiotxt="z-cdn_akamaihd_img";
        }
        if ( (url.find("/video/") != string::npos) and ( (url.find(".mp4") != string::npos) or (url.find(".flv") == string::npos) )
           ) {
        dominiotxt="FoxSportsLA/Videos";
        }
        if ( (url.find(".akamaihd.net") != string::npos)
           ) {
                   
                r.file = get_filename(url);
                    if (!r.file.empty()) {
                            r.match = true;
                           r.domain = dominiotxt;
                    } else {
                            r.match = false;
                    }
            } else {
                    r.match = false;
            }
            return r;
    }


ahora si hace cache a los videos de foxsportsla.com


David M.