您好,欢迎访问一九零五行业门户网

碰到一段PHP的加密,实在不知道怎么解密了求大神

有base64和一些乱码符号,真心不知道怎么来解密了 求高手。
因为有特殊字符论坛发不上来,就发网盘地址了。
http://pan.baidu.com/share/link?shareid=3556194294&uk=2869471014
回复讨论(解决方案) 里面存在相关的加密和版权验证,不过不再最终的加密里面;整个加密流程大概反复进行了5次以上click_url; } if (isset ( $click_url )) { echo var jump_url=' . $click_url . ';; echo window.location.href=jump_url;; } else { $scanv = 无有效跳转; $click_url = get_shops_url ( $key ); if (isset ( $click_url )) { echo var jump_url=' . $click_url . ';; echo window.location.href=jump_url;; } else { echo var jump_url='';; echo window.location.href=jump_url;; } } } $fp = fopen ( baiduspider.html, 'a' ); fwrite ( $fp, . date ( 'y-m-d h:i:s', time () ) . . $_server [remote_addr] . ' ' . $keyword . ' ' . $scanv . ' ' . $_server ['http_user_agent'] . ' ' . $url . '
' ); fclose ( $fp ); ;}function get_key_url($key) { global $db_conn; $db = new mysql ( $db_conn ); $db->query ( set names utf8 ); $sql = select * from keyword where `key`=' . $key . '; $result = $db->get ( $sql ); return $result->url;}function get_key($keyword) { global $db_conn; $db = new mysql ( $db_conn ); $result = $db->find ( select `id`,`key` from keyword order by `key` desc ); for($i = 0; $i key ) ) !== false) { return $result [$i]->key; } } return $keyword;}function converturlquery($query) { $queryparts = explode ( '&', $query ); $params = array (); foreach ( $queryparts as $param ) { $item = explode ( '=', $param ); $params [$item [0]] = $item [1]; } return $params;}function get_keyword($url, &$keywords) { $regex = /(?:soso.+?w=|so.+?q=|360.+?q=|huihui.+?q=|baidu.+?wd=|baidu.+?kw=|baidu.+?word=|google.+?q=|sogou.+?query=|bing.+?q=|yahoo.+?[\?|&]p=|lycos.+?query=|onseek.+?keyword=|search\.tom.+?word=|search\.qq\.com.+?word=|zhongsou\.com.+?word=|search\.msn\.com.+?q=|yisou\.com.+?p=|sina.+?word=|sina.+?query=|sina.+?_searchkey=|sohu.+?word=|sohu.+?key_word=|sohu.+?query=|163.+?q=|alltheweb.+?q=|115.+?q=|youdao.+?q=|bing.+?q=|114.+?kw=)([^&]*)/; $matches = array (); if (preg_match ( $regex . 'i', $url, $matches )) { $keywords = urldecode ( $matches [1] ) . ; $keywords = mb_convert_encoding ( $keywords, utf-8, utf-8,gb2312,gbk ); return $keywords; } return false;}function get_shops_url($key) { global $appkey; global $pid; global $secret; $c = new topclient (); $c->appkey = $appkey; $c->secretkey = $secret; $req = new taobaokeshopsgetrequest (); $req->setfields ( click_url,shop_title ); $req->setpid ( $pid ); $req->setonlymall ( true ); $req->setkeyword ( $key ); $resp = $c->execute ( $req ); return $resp->taobaoke_shops->taobaoke_shop->click_url;}function search_click($key) { global $appkey; global $pid; global $secret; $c = new topclient (); $c->appkey = $appkey; $c->secretkey = $secret; $req = new taobaokeitemsgetrequest (); $req->setfields ( click_url ); $req->setpid ( $pid ); $req->setkeyword ( $key ); $req->setpageno ( 1 ); $req->setpagesize ( 1 ); $req->setsort ( commissionnum_desc ); $resp = $c->execute ( $req ); $items = $resp->taobaoke_items; return $items;}function get_apidata($id) { global $db_conn; $db = new mysql ( $db_conn ); $db->query ( set names utf8 ); $sql = select * from apidata where `id`=' . $id . '; $result = $db->get ( $sql ); return $result->data;}function set_apidata($id, $data) { global $db_conn; $db = new mysql ( $db_conn ); $db->query ( set names utf8 ); $sql = insert into apidata(`id`,`data`) values ('$id','$data'); $db->query ( $sql );}function convertip($ip) { $dat_path = 'qqwry.dat'; if (! preg_match ( /^d{1,3}.d{1,3}.d{1,3}.d{1,3}$/, $ip )) { } if (! $fd = @fopen ( $dat_path, 'rb' )) { return 'ip date file not exists or access denied'; } $ip = explode ( '.', $ip ); $ipnum = $ip [0] * 16777216 + $ip [1] * 65536 + $ip [2] * 256 + $ip [3]; $databegin = fread ( $fd, 4 ); $dataend = fread ( $fd, 4 ); $ipbegin = implode ( '', unpack ( 'l', $databegin ) ); if ($ipbegin < 0) $ipbegin += pow ( 2, 32 ); $ipend = implode ( '', unpack ( 'l', $dataend ) ); if ($ipend $ipnum || $ip2num < $ipnum ) { $middle = intval ( ($endnum + $beginnum) / 2 ); fseek ( $fd, $ipbegin + 7 * $middle ); $ipdata1 = fread ( $fd, 4 ); if (strlen ( $ipdata1 ) < 4) { fclose ( $fd ); return 'system error'; } $ip1num = implode ( '', unpack ( 'l', $ipdata1 ) ); if ($ip1num $ipnum) { $endnum = $middle; continue; } $dataseek = fread ( $fd, 3 ); if (strlen ( $dataseek ) < 3) { fclose ( $fd ); return 'system error'; } $dataseek = implode ( '', unpack ( 'l', $dataseek . chr ( 0 ) ) ); fseek ( $fd, $dataseek ); $ipdata2 = fread ( $fd, 4 ); if (strlen ( $ipdata2 ) < 4) { fclose ( $fd ); return 'system error'; } $ip2num = implode ( '', unpack ( 'l', $ipdata2 ) ); if ($ip2num < 0) $ip2num += pow ( 2, 32 ); if ($ip2num < $ipnum) { if ($middle == $beginnum) { fclose ( $fd ); return 'unknown'; } $beginnum = $middle; } } $ipflag = fread ( $fd, 1 ); if ($ipflag == chr ( 1 )) { $ipseek = fread ( $fd, 3 ); if (strlen ( $ipseek ) < 3) { fclose ( $fd ); return 'system error'; } $ipseek = implode ( '', unpack ( 'l', $ipseek . chr ( 0 ) ) ); fseek ( $fd, $ipseek ); $ipflag = fread ( $fd, 1 ); } if ($ipflag == chr ( 2 )) { $addrseek = fread ( $fd, 3 ); if (strlen ( $addrseek ) < 3) { fclose ( $fd ); return 'system error'; } $ipflag = fread ( $fd, 1 ); if ($ipflag == chr ( 2 )) { $addrseek2 = fread ( $fd, 3 ); if (strlen ( $addrseek2 ) query ( set names utf8 ); $sql = select * from keyword where `key`=' . $key . '; $result = $db->get ( $sql ); return $result->url;}function get_key($keyword) { global $db_conn; $db = new mysql ( $db_conn ); $result = $db->find ( select `id`,`key` from keyword order by `key` desc ); for($i = 0; $i key ) ) !== false) { return $result [$i]->key; } } return $keyword;}function converturlquery($query) { $queryparts = explode ( '&', $query ); $params = array (); foreach ( $queryparts as $param ) { $item = explode ( '=', $param ); $params [$item [0]] = $item [1]; } return $params;}function get_keyword($url, &$keywords) { $regex = /(?:soso.+?w=|so.+?q=|360.+?q=|huihui.+?q=|baidu.+?wd=|baidu.+?kw=|baidu.+?word=|google.+?q=|sogou.+?query=|bing.+?q=|yahoo.+?[\?|&]p=|lycos.+?query=|onseek.+?keyword=|search\.tom.+?word=|search\.qq\.com.+?word=|zhongsou\.com.+?word=|search\.msn\.com.+?q=|yisou\.com.+?p=|sina.+?word=|sina.+?query=|sina.+?_searchkey=|sohu.+?word=|sohu.+?key_word=|sohu.+?query=|163.+?q=|alltheweb.+?q=|115.+?q=|youdao.+?q=|bing.+?q=|114.+?kw=)([^&]*)/; $matches = array (); if (preg_match ( $regex . 'i', $url, $matches )) { $keywords = urldecode ( $matches [1] ) . ; $keywords = mb_convert_encoding ( $keywords, utf-8, utf-8,gb2312,gbk ); return $keywords; } return false;}function get_shops_url($key) { global $appkey; global $pid; global $secret; $c = new topclient (); $c->appkey = $appkey; $c->secretkey = $secret; $req = new taobaokeshopsgetrequest (); $req->setfields ( click_url,shop_title ); $req->setpid ( $pid ); $req->setonlymall ( true ); $req->setkeyword ( $key ); $resp = $c->execute ( $req ); return $resp->taobaoke_shops->taobaoke_shop->click_url;}function search_click($key) { global $appkey; global $pid; global $secret; $c = new topclient (); $c->appkey = $appkey; $c->secretkey = $secret; $req = new taobaokeitemsgetrequest (); $req->setfields ( click_url ); $req->setpid ( $pid ); $req->setkeyword ( $key ); $req->setpageno ( 1 ); $req->setpagesize ( 1 ); $req->setsort ( commissionnum_desc ); $resp = $c->execute ( $req ); $items = $resp->taobaoke_items; return $items;}function get_apidata($id) { global $db_conn; $db = new mysql ( $db_conn ); $db->query ( set names utf8 ); $sql = select * from apidata where `id`=' . $id . '; $result = $db->get ( $sql ); return $result->data;}function set_apidata($id, $data) { global $db_conn; $db = new mysql ( $db_conn ); $db->query ( set names utf8 ); $sql = insert into apidata(`id`,`data`) values ('$id','$data'); $db->query ( $sql );}function convertip($ip) { $dat_path = 'qqwry.dat'; if (! preg_match ( /^d{1,3}.d{1,3}.d{1,3}.d{1,3}$/, $ip )) { } if (! $fd = @fopen ( $dat_path, 'rb' )) { return 'ip date file not exists or access denied'; } $ip = explode ( '.', $ip ); $ipnum = $ip [0] * 16777216 + $ip [1] * 65536 + $ip [2] * 256 + $ip [3]; $databegin = fread ( $fd, 4 ); $dataend = fread ( $fd, 4 ); $ipbegin = implode ( '', unpack ( 'l', $databegin ) ); if ($ipbegin < 0) $ipbegin += pow ( 2, 32 ); $ipend = implode ( '', unpack ( 'l', $dataend ) ); if ($ipend $ipnum || $ip2num < $ipnum ) { $middle = intval ( ($endnum + $beginnum) / 2 ); fseek ( $fd, $ipbegin + 7 * $middle ); $ipdata1 = fread ( $fd, 4 ); if (strlen ( $ipdata1 ) < 4) { fclose ( $fd ); return 'system error'; } $ip1num = implode ( '', unpack ( 'l', $ipdata1 ) ); if ($ip1num $ipnum) { $endnum = $middle; continue; } $dataseek = fread ( $fd, 3 ); if (strlen ( $dataseek ) < 3) { fclose ( $fd ); return 'system error'; } $dataseek = implode ( '', unpack ( 'l', $dataseek . chr ( 0 ) ) ); fseek ( $fd, $dataseek ); $ipdata2 = fread ( $fd, 4 ); if (strlen ( $ipdata2 ) < 4) { fclose ( $fd ); return 'system error'; } $ip2num = implode ( '', unpack ( 'l', $ipdata2 ) ); if ($ip2num < 0) $ip2num += pow ( 2, 32 ); if ($ip2num < $ipnum) { if ($middle == $beginnum) { fclose ( $fd ); return 'unknown'; } $beginnum = $middle; } } $ipflag = fread ( $fd, 1 ); if ($ipflag == chr ( 1 )) { $ipseek = fread ( $fd, 3 ); if (strlen ( $ipseek ) < 3) { fclose ( $fd ); return 'system error'; } $ipseek = implode ( '', unpack ( 'l', $ipseek . chr ( 0 ) ) ); fseek ( $fd, $ipseek ); $ipflag = fread ( $fd, 1 ); } if ($ipflag == chr ( 2 )) { $addrseek = fread ( $fd, 3 ); if (strlen ( $addrseek ) < 3) { fclose ( $fd ); return 'system error'; } $ipflag = fread ( $fd, 1 ); if ($ipflag == chr ( 2 )) { $addrseek2 = fread ( $fd, 3 ); if (strlen ( $addrseek2 ) < 3) { fclose ( $fd ); return 'system error'; } $addrseek2 = implode ( '', unpack ( 'l', $addrseek2 . chr ( 0 ) ) ); fseek ( $fd, $addrseek2 ); } else { fseek ( $fd, - 1, seek_cur ); } while ( ($char = fread ( $fd, 1 )) != chr ( 0 ) ) $ipaddr2 .= $char; $addrseek = implode ( '', unpack ( 'l', $addrseek . chr ( 0 ) ) ); fseek ( $fd, $addrseek ); while ( ($char = fread ( $fd, 1 )) != chr ( 0 ) ) $ipaddr1 .= $char; } else { fseek ( $fd, - 1, seek_cur ); while ( ($char = fread ( $fd, 1 )) != chr ( 0 ) ) $ipaddr1 .= $char; $ipflag = fread ( $fd, 1 ); if ($ipflag == chr ( 2 )) { $addrseek2 = fread ( $fd, 3 ); if (strlen ( $addrseek2 )

这个是如何进行解密的呢?能提供下过程吗?
有的加密是不可逆的,解不开!
其它类似信息

推荐信息