Menú principal
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

Temas - david_domh

#1
Firewall & NAT / Utilizar Export
Diciembre 05, 2013, 12:12:20 AM
Código (cpp) [Seleccionar]
/ip firewall mangle export file=Poner Nombre
/ip proxy access export file=Poner Nombre
/ ip firewall filter export file=Poner Nombre
/queue tree export file=Poner Nombre


sirve para exportar nuestras reglas a un block de notas
#2
Ojala les sirva estos videitos que me ayudaron bastante ami en mis comienzos para config Mikrotik


https://mega.co.nz/#!wYxlgaDT!YZxcQVd41c2NbfQZHJ_sfxO7EEd5ZwxqzFORDzgz_o0



Saludos

David M.
#3
Firewall & NAT / Redreccionar puertos a Rb Mikrotik Admin
Diciembre 04, 2013, 11:35:09 PM
Si por ejemplo tuvieramos un RB750 balanceando varias lineas de internet, y un RB450G administrador manejando a los clientes, para dedicar todos los puertos de una linea al RB administrador.

En el RB750:
Código (cpp) [Seleccionar]
/ip firewall nat
add chain=dstnat in-interface=pppoe-out3 action=dst-nat to-address=192.168.5.2




En este caso le estamos diciendo al RB750, que todo tenga destino pppoe-out3, que lo envie al IP 192.168.5.2,
obviamente este IP es WAN IP de nuestro RB450G administrador. Luego de esto, se pueden hacer las redirecciones necesarias a los clientes del RB450G.


David M.
#4
Firewall & NAT / Limitar los P2P
Diciembre 04, 2013, 11:29:20 PM
limitar los p2p

primero marcando el trafico de los P2P:
Código (cpp) [Seleccionar]
/ip firewall mangle add chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn

/ip firewall mangle add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p


Luego asignándole un prioridad baja y ademas asignándole muy poco ancho de banda (64kbps) de nuestro total de 1 mega:

Código (cpp) [Seleccionar]
/queue tree add parent=2 RED LAN packet-mark=p2p limit-at=3000 max-limit=64000 priority=8

/queue tree add parent=2 RED LAN packet-mark=p2p limit-at=3000 max-limit=64000 priority=8



Saludos

David M

Personalmente recomiendo estas reglas en una red que solo se utilize para navegaciòn Web, ya que hay algunos juegos q utilizan la tecnologia p2p (punto a punto ) y puede ocasionar lag en aquellos juegos online como por ejemplo los de softnyx
#5
Firewall & NAT / instalar winbox en Rb Mikrotik
Diciembre 04, 2013, 11:25:31 PM
alguna vez les a pasado que se vuela el sistema operativo de mikrotik = Winbox??????????????


este video muestra como utilizar Netinstall para darle soluciòn


https://mega.co.nz/#!xBpWjCJD!QOLNEhHRFB6eLMJ2mxuPqyAvp24cb3M08pD_RvvCqyc


David M.

Saludos
#6
Firewall & NAT / Poner Hora / Fecha actual en Mikrotik
Diciembre 04, 2013, 10:46:53 AM
Código (cpp) [Seleccionar]
/system ntp client
set enabled=yes mode=unicast primary-ntp=200.189.40.8 secondary-ntp=\
   200.59.8.234


/system clock
set time-zone-name=America/Lima
/system clock manual
set dst-delta=+00:00 dst-end="jan/01/1970 00:00:00" dst-start=\
   "jan/01/1970 00:00:00" time-zone=+00:00
#7
Firewall & NAT / DAR PRORIDAD A Rakion - SoftnyX
Diciembre 04, 2013, 10:45:30 AM
Código (CPP) [Seleccionar]
ip firewall mangle
add action=mark-packet chain=prerouting disabled=no dst-port=\
    1100-1399,2300-2399,40706-40737,50817,8500 new-packet-mark=rakion \
    passthrough=yes protocol=tcp



/queue tree

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=rakion packet-mark=rakion parent=global-total priority=2 \
    queue=default
#8
Firewall & NAT / Limitar youtube a 1Mb
Diciembre 04, 2013, 10:43:25 AM
Estas reglas en Mikrotik Limitan al youtube a 1Mb , asi no satura la red

Código (cpp) [Seleccionar]
/ip firewall mangle
add action=mark-connection chain=prerouting comment=Youtube content=youtube disabled=no new-connection-mark=youtube_in  passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=youtube_in disabled=no new-packet-mark=youtube_in passthrough=no

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=1M name=youtube_down packet-mark=youtube_in parent=global-in priority=1 queue=default
#9
Firewall & NAT / Bloqueo de Porn II
Diciembre 04, 2013, 10:21:06 AM
Código (cpp) [Seleccionar]
/ip proxy
set enabled=yes
set src-address=0.0.0.0
set port=8080
set parent-proxy=0.0.0.0
set parent-proxy-port=0
set cache-administrator="webmaster"
set max-cache-size=none
set cache-on-disk=no
set max-client-connections=600
set max-server-connections=600
set max-fresh-time=3d
set always-from-cache=no
set cache-hit-dscp=4
set serialize-connections=no



Código (cpp) [Seleccionar]
/ip firewall nat
add chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080


Código (cpp) [Seleccionar]
/ip firewall filter
add chain=input in-interface=ether2 protocol=tcp dst-port=8080 action=drop


#10
https://mega.co.nz/#!5IwTzLRY!MGCdsG_4i4cHqqZWx-U90Bn690FAZSnZDmi3oJXeLjA


Fijense en el minuto 7 como la pelicula se corre hasta el ultimo minuto yluego de unos minutos mas la peli se cuelga y se corrompe

Ayuda Porfavor


David M.

Saludos a todos y de antemano se agradece su ayuda
#11


este es el log amigo firecold
https://mega.co.nz/#!NU5llSzZ!ehsBAgvmQhBW483Bok--Y2bou55ngvz5DrOtx-dcHW4

para asì concluir con este plugin que a dado mucho problema


Saludos



David_domh
#12
Plugins para ThunderCache 3.1.2 / Mis plugins a postear
Octubre 28, 2013, 12:25:00 PM
#13
Ni bien termina el testeo lo estarè posteando este plugin que me lo pideron



David M

Saludos
#14
Plugins para ThunderCache 3.1.2 / Combat Arms Plugin
Octubre 25, 2013, 07:46:58 PM
Código (cpp) [Seleccionar]
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"

using namespace std;
   
   // g++ -I. -fPIC -shared -g -o nexoneu.com.so nexoneu.com.cpp
   // regex
   // http.*\.nexoneu\.com.*(\.jpg|\.png|\.gif|\.mp3|\.swf|\.jpeg|\.mp4|\.exe|\.rar|\.zip|\.flv|\.rez)
 
   string dominiotxt="Combat-Arms";
   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("/Game/") != string::npos)
      ) {
   dominiotxt="Combat-Arms/Updates";
   }              
   if ( (url.find(".nexoneu.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(".jpeg") != string::npos) or
    (url.find(".mp4") != string::npos) or
    (url.find(".exe") != string::npos) or
    (url.find(".rar") != string::npos) or
    (url.find(".zip") != string::npos) or
    (url.find(".flv") != string::npos) or
    (url.find(".rez")!= 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;
   }


Me pidieron este plugin ya esta testeado y funcionando full perfectamente


David M.


Saludos a todos
y a seguir aportando plugins
#15
Código (cpp) [Seleccionar]
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include "../utils.cpp"

using namespace std;
     
    // g++ -I. -fPIC -shared -g -o nvidia.com.so nvidia.com.cpp
    // regex
    // http.*\.nvidia\.com.*(\.jpg|\.png|\.gif|\.mp3|\.swf|\.jpeg|\.mp4|\.exe|\.rar|\.zip)


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()-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;

vector<string> black_list;
black_list.push_back ("confirmation.php");

            if ((url.find(".nvidia.com/") != string::npos) and (in_array(url, black_list) == false)       
            ){
                   
                r.file = get_filename(url);
                    if (!r.file.empty()) {
                            r.match = true;
                            r.domain = "Nvidia";
                    } else {
                            r.match = false;
                    }
            } else {
                    r.match = false;
            }
            return r;
    }


Me percate que habìa un error en este plugin ya està corregido el bug


Saludos


David M.

A seguir aportando plugins .....................
#16
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.
#17
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

#18
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.
#19
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.
#20
alguien me puede pasar porfavor los .cpp de estos dos plugin?

lo que pasa es que he notado que hay varias paginas que alojan videos en este servidor
como lo son los videos de foxsportsla y espn
deseo esos .cpp para poder añadir al plugin y pueda hacer cache a los videos de dichas paginas


de antemano se agradece su ayuda


David M.

Saludos