Confirm useful data:
Song name: I Believe In Love
Singer: Shela
Song path: http://218.78.213.183:880/daolianmtvfuc____________________kkkkkkkkkk//shela_believe.wmv
We only need it in the thief program Just get the above data.
3. PHP code writing
PHP:
/********
Explanation, in order to simplify the program, the entire program does not use regular expressions
(I am also very bad at this aspect, haha, don’t scold me if you are an expert)
****/
//Define a function to simply filter characters
function str($txt){
$txt= str_replace("'","'",$txt);
$txt= str_replace(""","\"",$txt);
return $txt;
}
//Initialization program
$magic_quotes_gpc = get_magic_quotes_gpc();
$register_globals = @ini_get('register_globals');
if(!$register_globals ││ !$magic_quotes_gpc) {
@extract(daddslashes($HTTP_POST_VARS) ; {
$$key = $val['tmp_name'];
${$key.'_name'} = $val['name '];
${$key.'_size'} = $val['size']; '_type'} = $val['type'];
}
}
}
if (function_exists('set_time_limit') == 1 && @ini_get('safe_mode') = = 0) {
@set_time_limit(1000);
}
//end
//To prevent the other party from modifying the address in the future, extract the same front part of the address
$host="http://218.78.213.183 :880/daolianmtvfuc____________________kkkkkkkkkk/";
if(!$action){
echo "click here to start";
die();
}else{
$end=3488;//End ID
if(!$id││$id<1)$id=1;//Default ID number
$url="http://mtv. 8391.com/Yxwen.asp?id=".$id;
$str=@file_get_contents($url);//Read page code
if($str){
/ /Use key characters to split the code
$a1=explode("value="",$str);//value=" to split the characters
//Get the singer’s name
$n1= explode(""",$a1[1]);
$ges=str(trim($n1[0]));
//Get the song name
$g1=explode( """,$a1[3]);
$name=str(trim($g1[0]));
//Get the song address
$h1=explode("href ="",$str);
$h2=explode(""",$h1[1]);
$mtvurl= str(str_replace($host,"",trim ($h2)); =$end){ echo "cleck here ";
echo "elsedie(" program running over");
}
?>
The above introduces the collection program PHP implementation collection program principle and simple sample code, including the content of the collection program. I hope it will be helpful to friends who are interested in PHP tutorials.