aHR0cDovL3MuY2xpY2sudGFvYmFvLmNvbS90Xzg/ZT03SFo2akhTVGJJV2RFOFBqU3M4WEFHODZlT1dOVTBxaVJ5UEx1eGY0VFI4N0MlMkI0Y2NiRFJWeWZzQ2N4V0J4ZzVTY2FMRGlYdlNKOSUyRlVSbDBidGNpSnZuN0FtQ3FQdlY1NVhPb2lIV0J4Q3VvYklLQ2VBJTNEJTNEJnA9bW1fMTQyNzAyMTJfMF8wJm49MTk=
我用64 解密后
http://s.click.taobao.com/t_8?e=7HZ6jHSTbIWdE8PjSs8XAG86eOWNU0qiRyPLuxf4TR87C%2B4ccbDRVyfsCcxWBxg5ScaLDiXvSJ9%2FURl0btciJvn7AmCqPvV55XOoiHWBxCuobIKCeA%3D%3D&p=mm_14270212_0_0&n=19
但是 下面这个没有解到密啊,我怎么解密下面的东西。
7HZ6jHSTbIWdE8PjSs8XAG86eOWNU0qiRyPLuxf4TR87C
2B4ccbDRVyfsCcxWBxg5ScaLDiXvSJ9
2FURl0btciJvn7AmCqPvV55XOoiHWBxCuobIKCeA
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<script type='text/javascript'>
function htmlspecialchars(str){
str = str.replace(/</g, '<');
str = str.replace(/>/g, '>');
str = str.replace(/"/g, '"');
str = str.replace(/'/g, ''');
return str;
}
function bol(){
var inf = (top.location!=self.location);
var qs = location.search.split("?")[location.search.split("?").length-1].split("&");
qso = {};
for(var i=0;i<qs.length;i++){
if(qs[i]=="")continue;
var tmpa = qs[i].split("=");
qso[tmpa[0]] = tmpa[1]?tmpa[1]:"";
}
var tu = unescape(qso.tu);
if(htmlspecialchars(tu).length != tu.length){
exit;
}
if(inf){
var oi = document.createElement("iframe");
oi.id="iobj"
oi.border=0;
oi.frameBorder=0;
oi.style.height="1px"
oi.style.width="1px"
document.body.appendChild(oi);
var cd = oi.contentWindow.document;
cd.write('<ht'+'ml><bo'+'dy style="margin:0px;padding:0px"></scr'+'ipt><scr'+'ipt src="http://js.tongji.linezing.com/1023331/tongji.js" type="text/javascript"></scr'+'ipt><noscr'+'ipt><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/1023331/tongji.gif"/></a></noscr'+'ipt></bo'+'dy></ht'+'ml>');
window.setTimeout(function(){cd.close();if(qso.tu)location.href = unescape(qso.tu);},1000);
}else{
if(qso.co&&qso.co!=""){
document.cookie="tk_trace="+(qso.co)+";path=/;domain=.taobao.com";
}
if(qso.tu && (qso.tu.indexOf("http%3A%2F%2Fs.click.taobao.com%2F")===0 || qso.tu.indexOf("http%3A%2F%2Fs.click.alimama.com%2F")===0
|| qso.tu.indexOf("http%3A%2F%2Fitem8.taobao.com%2F")===0 || qso.tu.indexOf("http%3A%2F%2Fshop8.taobao.com%2F")===0)){
if(!window.attachEvent){
document.write('<input style="display:none" type="button" id="exe" value="" onclick="window.location=\''+unescape(qso.tu)+'\'">');
document.getElementById('exe').click();
}else{
document.write('<a style="display:none" href="'+unescape(qso.tu)+'" id="exe"></a>');
document.getElementById('exe').click();
}
}
}
}//end of bol()
bol();
</script>
</body>
</html> 我用file_get_content 打开 http://s.click.taobao.com/t_8?e=7HZ6jHSTbIWdE8PjSs8XAG86eOWNU0qiRyPLuxf4TR87C%2B4ccbDRVyfsCcxWBxg5ScaLDiXvSJ9%2FURl0btciJvn7AmCqPvV55XOoiHWBxCuobIKCeA%3D%3D&p=mm_14270212_0_0&n=19
得到上面的源码但是我把上面的源码放在浏览器里打开,就跳转到淘宝里面去了。
淘宝客的加密字符串
我搜了,还有源码的没得用。
<?php
function encode($str){ //编码,加密
$return = $temp = $tmp = $more = '';
$mid = $strs = array();
$code = 'abcdefghijklmnopqrstuvwxyz234567';
$len = $try = 0;
preg_match_all("/%[\w\d]{2}|.*?/i",rawurlencode($str),$strs);
foreach($strs[0] as $tmp){
if($tmp!=''){
if(strlen($tmp)==3){
if(hexdec($tmp)<129) $temp.=sprintf('b',ord(rawurldecode($tmp)));
else $temp.=decbin(hexdec($tmp));
}
else $temp.=sprintf('b',ord($tmp));
}
}
$len = strlen($temp);
if($len%5>0) $more = sprintf('%0'.(5-$len%5).'s','');
$try = intval($len/5);
if($more=='') $try--;
for($i=0;$i<=$try;$i++){
if($i<$try) $tmp=bindec('000'.substr($temp,$i*5,5));
else $tmp=bindec('000'.substr($temp,$i*5,5).$more);
$return.=$code[$tmp];
}
return $return;
}
function decode($str){ //解码 ,解密
$return = $temp = $tmp = $more = '';
$code = 'abcdefghijklmnopqrstuvwxyz234567';
$codes = array();
$len = $try = 0;
preg_match_all("/[\w\d]/i",$code,$codes);
$codes = array_flip($codes[0]);
$len = strlen($str);
for($i=0;$i<$len;$i++){
$tmp = $str[$i];
$temp.=substr(sprintf('b',$codes[$tmp]),3);
}
$len = strlen($temp);
$try = intval($len/8);
for($i=0;$i<$try;$i++){
$tmp = bindec(substr($temp,$i*8,8));
if($tmp>128) $return.='%'.dechex($tmp);
else $return.=chr($tmp);
}
$return = urldecode($return);
return $return;
}
//echo encode('by死猫asdf sdfsdf dsf');
echo decode('aHR0cDovL3MuY2xpY2sudGFvYmFvLmNvbS90Xzg ');?>