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 - gildope

#1
doubleclick.net.cpp

#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

using namespace std;

// use this line to compile
// g++ -I. -fPIC -shared -g -o doubleclick.net.so doubleclick.net.cpp
// regex
// http.{1,4}\w*google(\.\w|\w)*\.doubleclick\.net\/pagead\/ads\?.*

extern "C" resposta getmatch(const string url) {
    resposta r;
   
   string find = "";
   string find2 = "";
   int len;
   if(url.find("www.youtube.com") != string::npos) {
      if ( ( (find = regex_match("[\\?&]ad_type=skippablevideo($|&)",url)) != "" || (find = regex_match("[\\?&]ad_type=video($|&)",url)) != "" || (find = regex_match("[\\?&]ad_type=text_image_flash($|&)",url)) != "" || (find = regex_match("[\\?&]ad_type=text($|&)",url)) != "" || (find = regex_match("[\\?&]ad_type=image($|&)",url)) != "" ) && ( (find2 = regex_match("[\\?&]url=http.{2,15}www.youtube.com([a-zA-Z0-9]|%|-|_)*&?",url)) != "" ) ) {
         r.domain = "rewrite";
         r.file = "googleads.g.doubleclick.net/pagead/ads";
         r.match = true;
         return r;
      }
   }
   r.match = false;
    return r;
}
#2
Plugins de música & videos / Plugin Xtube
Abril 09, 2013, 10:26:38 AM
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o xtube.com.so xtube.com.cpp
// regex http.*\.(publicvideo|publicphoto)\.xtube\.com\/(videowall\/)?videos?\/.*(\.flv\?.*|\_Thumb\.flv$)

string get_filename(string url) {
vector<string> resultado;
stringexplode(url,"/",&resultado);
url = resultado.at(resultado.size() - 1);

if (url.find("?") == string::npos) {
return url;
} else {
resultado.clear();
stringexplode(url, "?", &resultado);
string tmp;
if( (tmp = regex_match("[\\?&]fs=[0-9]+",resultado.at(1))) != "" ) {
tmp.erase(0,4);

}
return resultado.at(0);
}
}

extern "C" resposta getmatch(const string url) {
   resposta r;
   
r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "xtube";
} else {
r.match = false;
}
return r;
}
#3
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -fPIC -shared -g -o mbamupdates.com.so mbamupdates.com.cpp
// http://data-cdn.mbamupdates.com/v0/program/data/mbam-setup-1.70.0.1100.exe
// Regex
// http.*\.mbamupdates.com.*(\.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()-1);           
} else {
stringexplode(url, "/", &resultado);
return resultado.at(resultado.size()-1);
}
}

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


if ( (url.find(".mbamupdates.com/") != string::npos)   
) {

    r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "mbamupdates";
} else {
r.match = false;
}
} else {
r.match = false;
}
return r;
}
#4
Plugins de música & videos / Plugin Tube8.com
Enero 31, 2013, 08:02:14 PM
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

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

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(".tube8.com/") != string::npos)  and
(url.find(".mp4") != string::npos) and (url.find("?start=") == string::npos) // tirar start para nao fazer cache de file incompleto
) {

    r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "tube8";
} else {
r.match = false;
}
} else {
r.match = false;
}
return r;
}
#5
Tengo este código de este plugin, pero es defectuoso. Yo quería compilar el código por BFW, gracias de antemano.

/*
*plugin partial content google pack
*created by grage95
*example  http://dl.google.com/chrome/install/1025.168_1025.162/chrome_updater.exe
*http://o-o.preferred.pttelkom-bth1.v10.lscache6.c.pack.google.com/edgedl/chrome/install/1025.168/chrome_installer.exe?
* Use ^http.*\.google\.com.*\.(exe|msi|msp|cab) no bfwcache.acl
* Vida longa ao BFW!
*/

#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 google.com.so google.com.cpp

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(".google.com/") != string::npos)  and
      ( (url.find(".exe") != string::npos) ||  (url.find(".msp") != string::npos) ||  (url.find(".msi") != string::npos) ||  (url.find(".cab") != string::npos) )
  ) {
   
      r.file = get_filename(url);
     if (!r.file.empty()) {
        r.match = true;
        r.domain = "googlepack";
     } else {
        r.match = false;
     }
  } else {
     r.match = false;
  }
  return r;
}