Serious Business:tucao.cc(c站)的视频解析

protected function getXMLUrl(_arg1:String, _arg2:String):String{
var _local3:Date = new Date();
var _local4:Number = _local3.getTime();
var _local5:String = Math.round((_local4 / 1000)).toString();
return (((((((("http://www.tucao.cc/api/playurl.php?type=" + _arg1) + "&vid=") + _arg2) + "&key=") + this.calcKey(_arg2, _local5)) + "&r=") + _local5));
}
private function calcKey(_arg1:String, _arg2:String):String{
var _local3:int = parseInt(_arg2, 10);
_local3 = (_local3 ^ 2774181285);
var _local4:int = parseInt(_arg1, 10);
var _local5:int = (_local4 + _local3);
_local5 = (((_local5 < 0)) ? (-(_local5) >> 0) : (_local5 >> 0));
return ((("tucao" + _local5.toString(16)) + ".cc"));

Into human language:
http://www.tucao.cc/api/playurl.php?type=sina&vid=130558387&key=tucao1fc5eb9.cc&r=1398919729
晚上闹心懒得看代码了。这个藏着掖着啊。
 

Leave a Reply

Your email address will not be published. Required fields are marked *