Home  >  Article  >  Backend Development  >  PHP implementation collection program principle and simple sample code_PHP tutorial

PHP implementation collection program principle and simple sample code_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:56:14650browse


I Believe In Love
Bluetooth Music Network - 8391.com
Bluetooth Music Network - 8391.com








Confirm useful data:
Song title: I Believe In Love
Singer :Shela
Song path: http://218.78.213.183:880/daolianmtvfuc____________kkkkkkkkkk//shela_believe.wmv
We only need to get the above data in the thief program
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));
 @extract(daddslashes($HTTP_GET_VARS));
 if(!$register_globals) {  foreach($HTTP_POST_FILES as $key => $val) {
 $$key = $val['tmp_name'];
  ${$key.'_name'} = $val['name'];
 ${$key.'_size' } = $val['size'];
 ${$key.'_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 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)));
  //Add database
 /********
 You can add it appropriately according to your own program
 ********/

}
$id++;
if($id< ;=$end){ echo "cleck here ";
echo "";}
elsedie("program running over");
}
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318135.htmlTechArticleentrySKIPIFREF="YES" titleIBelieveInLove/title author Bluetooth Music Network-8391.com/author copyright Bluetooth Music Network-8391 .com/copyright refhref="http://218.78.213.183:880/daolianmtvfuc____...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn