Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * @autor xtanctp, xtanctp@gmail.com
- * acl http.*\.axeso5\.com.*(\.zip|\.cmp|\.cdt|\.ogg|\.bmp|\.exe|\.acv|\.BIN|\.mp3|\.dds|\.wav|\.WAV|\.png|\.jpg|\.swf)
- * g++ $BUILD64 -I. -fPIC -shared -g -o axeso5.com.so axeso5.com.cpp
- * g++ $BUILD32 -I. -fPIC -shared -g -o axeso5.com.so axeso5.com.cpp
- */
- #include <iostream>
- #include <cstring>
- #include <string>
- #include <vector>
- #include "../utils.cpp"
- using namespace std;
- string dominiotxt="axeso5";
- 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 get_match(const string url) {
- resposta r;
- if ( (url.find("op7cdn2.axeso5.com/") != string::npos)
- ) {
- dominiotxt="axeso5/operation7";
- }
- if ((url.find("aucdn2.axeso5.com/")!= string::npos)
- ) {
- dominiotxt="axeso5/audition";
- }
- if ( (url.find("dwcdn2.axeso5.com/") != string::npos)
- ) {
- dominiotxt="axeso5/dw_install";
- }
- if ( (url.find(".axeso5.com/") != string::npos)
- )
- { r.file = get_filename(url);
- if (!r.file.empty()) { r.match = true;
- //r.domain = "axeso5";
- r.domain = dominiotxt;
- }
- else { r.match = false;
- }
- }
- else { r.match = false;
- }
- return r;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement