This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cookielib | |
import md5 | |
import re | |
import sys | |
import urllib | |
import urllib2 | |
def login(username, password, cookie_file): | |
'''login to otaku-streamers.com and save session cookies''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#code from vidxden page: | |
#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}('1b 0=1a 19(\'2://18.17.3/5/5.16\',\'5\',\'15\',\'14\',\'9\');0.4(\'13\',\'6\');0.4(\'12\',\'11\');0.4(\'10\',\'z\');0.1(\'y\',\'x\');0.1(\'w\',\'2://8.7.3:v/d/u/t.s.r.q.p.o-n.m\');0.1(\'l\',\'2://8.7.3/i/k/j.h\');0.1(\'g\',\'f\');0.1(\'e\',\'2\');0.1(\'c\',\'6\');0.b(\'a\');',36,48,'s1|addVariable|http|com|addParam|player|true|divxden|s08||flvplayer|write|autostart||type|video|provider|jpg||tofuw547qzsu|00109|image|flv|BAJSKORV|XVID|PDTV|S13E05|US|Brother|Big|47ul3valsetu45zgum4tmxbvrmpvqa6p5byoos3jacsje|364|file|2531|duration|opaque|wmode|always|allowscriptaccess|allowfullscreen|318|640|swf|vidxden|www|SWFObject|new|var'.split('|'))) | |
import re | |
def unpack_js(p, k): | |
'''emulate js unpacking code''' | |
for x in range(len(k) - 1, -1, -1): | |
if k[x]: | |
p = re.sub('\\b%s\\b' % base36encode(x), k[x], p) |