Changeset 38825


Ignore:
Timestamp:
09/16/16 12:09:25 (7 years ago)
Author:
obi
Message:

update tithek

Location:
titan/plugins/tithek
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/thevideo.h

    r38773 r38825  
    116116//      var mpri_Key='LCw2QFU8N0hRPFdBWi4zLVgK';
    117117//      eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3.2(\'<0 4\'.1(\'8="\'+\'/5\'.1(\'/\'+7+\'">\\6/0>\')))',9,9,'script|concat|write|document|s|jwv|x3C|mpri_Key|rc'.split('|'),0,{}))
     118        tmpstr = jsunpack(tmpstr);
     119        titheklog(debuglevel, "/tmp/thevideo3_post_jsunpack", NULL, NULL, NULL, tmpstr);       
    118120
    119121        tmpstr1 = string_resub("<div class=\"container main-container\">", "</div>", tmpstr, 0);
     
    122124        url = string_resub("<script src=\"", "\"></script>", tmpstr1, 0);
    123125
     126        if(url == NULL)
     127        {
     128                tmpstr2 = string_resub("+\\'", "\\'.concat", tmpstr1, 0);
     129//              tmpstr3 = string_resub("var tksucks='", "';", tmpstr1, 0);
     130                tmpstr3 = oregex("var .*='(.*)';.*", tmpstr1);
     131
     132                url = ostrcat("http://thevideo.me", tmpstr2, 0, 0);
     133                url = ostrcat(url, "/", 1, 0);
     134                url = ostrcat(url, tmpstr3, 1, 0);
     135                free(tmpstr2), tmpstr2 = NULL;
     136                free(tmpstr3), tmpstr3 = NULL;
     137        }
     138
     139/*
     140//old
    124141        if(url == NULL)
    125142        {
     
    150167                free(tmpstr4), tmpstr4 = NULL;
    151168        }
    152        
    153 /*     
     169
     170// old 
    154171        if(url == NULL)
    155172        {
     
    164181                free(tmpstr3), tmpstr3 = NULL;
    165182        }
    166 */
     183*/     
     184
    167185        free(tmpstr1), tmpstr1 = NULL;
    168186       
  • titan/plugins/tithek/tithek_global.h

    r37534 r38825  
    516516        unlink("/tmp/jsunpack4_tmpstr_last");
    517517
     518//eval(function(p,a,c,k,e,d){while(c--)if(k[c])p=p.replace(new RegExp('\\b'+c.toString(a)+'\\b','g'),k[c]);return p}('1k.1j(\'<c 13="1i"1h="1g:1f-1e-1d-1c-1b"u="t"s="r"1a="3://h.9.g/f/19.18"><2 1="y"0="x"/><2 1="w"0="v"/><2 1="a"0="3://8.7.6.5/i/q/p.o"/><2 1="l"0="4"><2 1="m"0="4"/><2 1="k"0="j"/><2 1="n"0="4"/><2 1="12"0="3://8.7.6.5:11/d/10/b.z"/><e 13="17"16="b/9"12="3://8.7.6.5:11/d/10/b.z"y="x"w="v"u="t"s="r"a="3://8.7.6.5/i/q/p.o"n="4"m="4"a=""l="4"k="j"15="3://h.9.g/f/14/"></e></c>\');',36,57,'value|name|param|http|false|240|30|56|185|divx|previewImage|video|object||embed|plugin|com|go||Play|previewMessage|allowContextMenu|bannerEnabled|autoPlay|jpg|rezh7ogkvg6b|00004|380|height|715|width|transparent|wmode|Stage6|custommode|mkv|s4umuuk7gii5uaadrm5a76s7fd4bjlcti2r3v6bsa5d6yryt4dawmiqg|182|src|id|download|pluginspage|type|np_vid|cab|DivXBrowserPlugin|codebase|CC0F21721616|9C46|41fa|D0AB|67DABFBF|clsid|classid|ie_vid|write|document'.split('|')))
     519
     520//eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3.2(\'<0 4\'.1(\'8="\'+\'/5\'.1(\'/\'+7+\'">\\6/0>\')))',9,9,'script|concat|write|document|s|jwv|x3C|mpri_Key|rc'.split('|'),0,{}))
     521
    518522        while(ostrstr(input, "eval(function(p,a,c,k,e,d){") != NULL)
    519523        {
    520                 packed = string_resub("eval(function(p,a,c,k,e,d){", "))", input, 0);
     524                packed = string_resub("eval(function(p,a,c,k,e,d){", "}))", input, 0);
     525                if(packed == NULL)
     526                        packed = string_resub("eval(function(p,a,c,k,e,d){", "))", input, 0);
     527
    521528                titheklog(debuglevel, "/tmp/jsunpack1_packed", NULL, NULL, NULL, packed);       
    522529       
    523530//              tmpstr = string_resub(";return p}('", ");'", packed, 0);
    524531//              tmpstr = oregex(".*;return p}(.*)',[0-9]{2,2},[0-9]{2,2},'.*'.split.*", packed);
    525                 tmpstr = oregex(".*;return p}(.*)',[0-9]{1,3},[0-9]{1,3},'.*'.split.*", packed);
     532//              tmpstr = oregex(".*;return p}(.*)',[0-9]{1,3},[0-9]{1,3},'.*'.split.*", packed);
     533                tmpstr = oregex(".*return p}(.*)',[0-9]{1,3},[0-9]{1,3},'.*'.split.*", packed);
    526534
    527535                debug(99, "tmpstr: %s", tmpstr);
    528                 titheklog(debuglevel, "/tmp/jsunpack2_tmpstr", NULL, NULL, NULL, tmpstr);
     536                titheklog(debuglevel, "/tmp/jsunpack2_packed_tmpstr", NULL, NULL, NULL, tmpstr);
    529537       
    530538//              b36code = oregex(".*;',[0-9]{2,2},[0-9]{2,2},'(.*)'.split.*", packed);
     
    533541                b36code = string_replace_all("||", "| |", b36code, 1);
    534542                debug(99, "b36code: %s", b36code);
    535                 titheklog(debuglevel, "/tmp/jsunpack3_b36code", NULL, NULL, NULL, b36code);
     543                titheklog(debuglevel, "/tmp/jsunpack3_packed_b36code", NULL, NULL, NULL, b36code);
    536544
    537545                if(!ostrncmp("|", b36code, 1))
     
    614622                free(ret1), ret1 = NULL;
    615623       
    616                 titheklog(debuglevel, "/tmp/jsunpack4_tmpstr_last", NULL, NULL, NULL, tmpstr);
     624                titheklog(debuglevel, "/tmp/jsunpack4_packed_tmpstr_last", NULL, NULL, NULL, tmpstr);
     625
     626                if(tmpstr == NULL)
     627                        input = string_replace("eval(function(p,a,c,k,e,d){", "eval(function(p,a,c,k,e,d-extracted-error){", input, 1);
     628                else
     629                {
     630                        input = string_replace("eval(function(p,a,c,k,e,d){", "eval(function(p,a,c,k,e,d-extracted){", input, 1);
     631                        input = string_replace(packed, tmpstr, input, 1);
     632                }
     633                free(tmpstr),tmpstr = NULL;
     634                free(packed), packed = NULL;
     635                free(b36code), b36code = NULL;
     636                free(charlist), charlist = NULL;
     637        }
     638
     639//eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[2-9k-t]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('k p(a){5 b="s=1",c="t=l";7(a&&a.8&&a.8.9>0)6(5 d=0;d<a.8.9;d++){5 e=a.8[d],f=["r","m"];6(5 g n f){5 h=f[g];7(e&&e[h])6(5 i=e[h],j=0;j<i.9;j++)i[j]&&i[j].2&&(i[j].2+=(-1==i[j].2.o("?")?"?":"&")+"4=3&"+b+"&"+c)}}q a}',[],30,'||file|false|direct|var|for|if|playlist|length|||||||||||function|g2wppbatyvegydjngpim4hp5rl6ammlhkneq3sdgfqh5woiym753qlis6o6737kceon73boksojlkppwz744cta5i2kpzwwdsh3hrjqq3eiwcysqmy6aerlaeszaptrregtvpdfsdaiy4idwqdlack4abotyacmth2a253x5lrvvul7dxs6kligge5dufn6eofjjxex7vzljmvrrv4dnb4xlbn3hvb67c2pgc7y|httpfallback|in|indexOf|jwConfig|return|sources|ua|vt'.split('|'),0,{}))
     640
     641        while(ostrstr(input, "eval(function(p,a,c,k,e,r){") != NULL)
     642        {
     643                packed = string_resub("eval(function(p,a,c,k,e,r){", "))", input, 0);
     644                titheklog(debuglevel, "/tmp/jsunpack1_packed", NULL, NULL, NULL, packed);       
     645       
     646//              tmpstr = string_resub(";return p}('", ");'", packed, 0);
     647//              tmpstr = oregex(".*;return p}(.*)',[0-9]{2,2},[0-9]{2,2},'.*'.split.*", packed);
     648                tmpstr = oregex(".*;return p}(.*)',[0-9]{1,3},[0-9]{1,3},'.*'.split.*", packed);
     649
     650                debug(99, "tmpstr: %s", tmpstr);
     651                titheklog(debuglevel, "/tmp/jsunpack2_packed_tmpstr", NULL, NULL, NULL, tmpstr);
     652       
     653//              b36code = oregex(".*;',[0-9]{2,2},[0-9]{2,2},'(.*)'.split.*", packed);
     654                b36code = oregex(".*',[0-9]{1,3},[0-9]{1,3},'(.*)'.split.*", packed);
     655               
     656                b36code = string_replace_all("||", "| |", b36code, 1);
     657                debug(99, "b36code: %s", b36code);
     658                titheklog(debuglevel, "/tmp/jsunpack3_packed_b36code", NULL, NULL, NULL, b36code);
     659
     660                if(!ostrncmp("|", b36code, 1))
     661                        b36code = ostrcat(" ", b36code, 0, 1);
     662
     663                struct splitstr* ret1 = NULL;
     664                int count = 0;
     665                int i = 0;
     666                ret1 = strsplit(b36code, "|", &count);
     667       
     668                charlist = ostrcat(charlist, "\"", 1, 0);
     669                charlist = ostrcat(charlist, "|", 1, 0);
     670                charlist = ostrcat(charlist, "'", 1, 0);
     671                charlist = ostrcat(charlist, "|", 1, 0);
     672                charlist = ostrcat(charlist, ".", 1, 0);
     673                charlist = ostrcat(charlist, "|", 1, 0);
     674                charlist = ostrcat(charlist, ";", 1, 0);
     675                charlist = ostrcat(charlist, "|", 1, 0);
     676                charlist = ostrcat(charlist, ":", 1, 0);
     677                charlist = ostrcat(charlist, "|", 1, 0);
     678                charlist = ostrcat(charlist, "=", 1, 0);
     679                charlist = ostrcat(charlist, "|", 1, 0);
     680                charlist = ostrcat(charlist, ",", 1, 0);
     681                charlist = ostrcat(charlist, "|", 1, 0);
     682                charlist = ostrcat(charlist, " ", 1, 0);
     683                charlist = ostrcat(charlist, "|", 1, 0);
     684                charlist = ostrcat(charlist, "\\", 1, 0);
     685                charlist = ostrcat(charlist, "|", 1, 0);
     686                charlist = ostrcat(charlist, "/", 1, 0);
     687                charlist = ostrcat(charlist, "|", 1, 0);
     688                charlist = ostrcat(charlist, "(", 1, 0);
     689                charlist = ostrcat(charlist, "|", 1, 0);
     690                charlist = ostrcat(charlist, ")", 1, 0);
     691                charlist = ostrcat(charlist, "'", 1, 0);
     692                charlist = ostrcat(charlist, "%", 1, 0);
     693       
     694                for(i = 0; i < count; i++)
     695                {
     696                        if(ostrstr((&ret1[i])->part, " ") != NULL)
     697                        {
     698                                printf("continue\n");
     699                                continue;
     700                        }
     701                        char* x = oltostr(i, 36);
     702       
     703                        struct splitstr* ret2 = NULL;
     704                        int count2 = 0;
     705                        int i2 = 0;
     706                        tmpstr2 = ostrcat(charlist, NULL, 0, 0);
     707                        ret2 = strsplit(tmpstr2, "|", &count2);
     708                        for(i2 = 0; i2 < count2; i2++)
     709                        {
     710                                struct splitstr* ret3 = NULL;
     711                                int count3 = 0;
     712                                int i3 = 0;
     713                                tmpstr3 = ostrcat(charlist, NULL, 0, 0);
     714                                ret3 = strsplit(tmpstr3, "|", &count3);
     715                                for(i3 = 0; i3 < count3; i3++)
     716                                {
     717                                        debug(99, "-----------------------------------------------");
     718                                        debug(99, "replace %s%s%s <> %s%s%s",(&ret2[i2])->part, x, (&ret3[i3])->part, (&ret2[i2])->part, (&ret1[i])->part, (&ret3[i3])->part);
     719       
     720                                        base = ostrcat(base, (&ret2[i2])->part, 1, 0);
     721                                        base = ostrcat(base, x, 1, 0);
     722                                        base = ostrcat(base, (&ret3[i3])->part, 1, 0);         
     723                                        search = ostrcat(search, (&ret2[i2])->part, 1, 0);
     724                                        search = ostrcat(search, (&ret1[i])->part, 1, 0);
     725                                        search = ostrcat(search, (&ret3[i3])->part, 1, 0);
     726                                        tmpstr = string_replace_all(base, search, tmpstr, 1);
     727                                        free(base), base = NULL;
     728                                        free(search), search = NULL;
     729                                }
     730                                free(ret3), ret3 = NULL;
     731                                free(tmpstr3), tmpstr3 = NULL;
     732                        }
     733                        free(ret2), ret2 = NULL;
     734                        free(tmpstr2), tmpstr2 = NULL;
     735                        free(x);
     736                }
     737                free(ret1), ret1 = NULL;
     738       
     739                titheklog(debuglevel, "/tmp/jsunpack4_packed_tmpstr_last", NULL, NULL, NULL, tmpstr);
    617740
    618741                if(tmpstr == NULL)
  • titan/plugins/tithek/xvidstage.h

    r37477 r38825  
    2525
    2626
    27         if(tmplink == NULL || ostrncmp("http://", tmplink, 7))
     27        if(tmplink == NULL || ostrncmp("http", tmplink, 4))
    2828        {
    29                 textbox(_("Message"), _("Hoster Url not http://") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
     29                textbox(_("Message"), _("Hoster Url not http:// or https://") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
    3030                goto end;
    3131        }
    3232
    3333        tmphost = string_replace("http://", "", tmplink, 0);
     34        tmphost = string_replace("https://", "", tmphost, 1);
    3435        free(tmplink) , tmplink = NULL;
    3536
     
    6162
    6263        if(ostrstr(tmpstr, "404 Not Found") != NULL)
     64        {
     65                textbox(_("Message"), _("The video no longer exists") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
     66                goto end;
     67        }
     68
     69        if(ostrstr(tmpstr, "File was deleted") != NULL)
    6370        {
    6471                textbox(_("Message"), _("The video no longer exists") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.