Teach you how to write a private server list thief [phphtml cache]

Source: Internet
Author: User
This is because haosf.com is stolen. you can steal other sites by yourself. Generally, you only need to steal the latest list of private servers. you can steal several more sites, it becomes a private server release site that does not need to be updated. my server has already sent n private server ip addresses, so I forgot to open the cache during the test: (it's useless for me now. let's get it to the people you need. read the target site once every 20 hours.

This is because haosf.com is stolen. you can steal other sites by yourself. Generally, you only need to steal the latest list of private servers. you can steal several more sites, it becomes a private server release site that does not need to be updated. my server has sent n private server ip addresses, so I forgot to cache them during the test :(

It's useless for me now. Give it to the person you need.

You can modify the target site once every 20 hours. you can see how to get other sites.

  Chuanqi. php // private server thief

Extract ($ _ GET); extract ($ _ POST );
$ Clinchurl = "http://www.haosf.com"; // target site
$ Url = $ clinchurl. $ domain;
$ Fp = @ fopen ($ url, "r") or die ("timeout"); // determine whether a webpage can be opened
$ Fcontents = file_get_contents ($ url );
// Echo $ fcontents;
If (eregi ('Legend server name

(. *)> Next page

', $ Fcontents, $ regs ))
{
// The above (. *) is the content you want-the location of the list
$ Clinch ="



$ Clinch = str_replace ('


?>
Include "lanmu. php"; // column list
?>

// Use this judgment to update the html page


Include "foot. php ";
?>

  Make. php // generate html. cache

Extract ($ _ GET); extract ($ _ POST );

$ Url = "http://xxxxxxx.com/chuanqi.php ";
If (! $ File) {$ file = "index.html"; $ url = "http://xxxxxxxxxxxx.com/chuanqi.php ";}

/* Add the $ url statement to give $ file different names ----------- to generate different html names.
For example:

If ($ file = "wow.html "){
// $ File is transmitted by iframe when people access html pages.

$ Url = "http: // xxxxxx/wow. php" // corresponding dynamic page
}
*/

$ Path = $ file;

$ Cache_filetime = filemtime ($ path );

When (time ()-$ cache_filetime <= 72000 ){
// ** The cache is not expire
Echo "no updates required ";
} Else {

$ Fp = @ fopen ($ url, "r") or die ("timeout"); // determine whether a webpage can be opened
$ Fcontents = file_get_contents ($ url );
$ Handle = fopen ($ path, 'w'); // write mode open path
Fwrite ($ handle, $ fcontents); // write the replaced content into the generated HTML file.
Fclose ($ handle );
Echo "done ";
}

". $ Regs [1]."";// Complete the html of the obtained content and use it by yourself} // END IF ', 'Your own ads', $ clinch );// A series of str_replace commands to replace unwanted items, such as advertisements or images

Legendary server name


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.