The success of the hacker program to steal the home page (the third day)

Source: Internet
Author: User
The success of the hacker program to steal the home page (the third day) Today we teach and steal the home page. different home pages require different stealing methods, mainly for analyzing HTML code. the functions and methods are described clearly in the previous two days. today we will explain and use it in practice.

Take the Huajun Software Park for a knife.
Go to the home page of Huajun Software Park
Http://www.onlinedown.net/index.htm
Use Dreamweaver to create a new index. php page.
Note:
First, complete the homepage template you want, and then start to steal the homepage. Considering the tutorials for beginners, first place the template and PHP processing code in the same webpage.
We will teach you how to separate HTML and PHP in the future.

After the template is created, we will steal it.
In
Insert the PHP code above, as follows:
Require './commom. php ';
Update ("index.htm ");
$ File = readfromfile ("cache/index.htm ");

?>
Explanation
Require './commom. php' // introduce the commom. php file
Update ("index.htm") // read and write data to the index.htm webpage
$ File = readfromfile ("cache/index.htm") // read index.htm from the "cache" folder.
$ File is a variable. you can name it or call it $ html.
However, it should be unified later.

No response code, no processing, no output. if you say that the output is FilePath, then all the html code of index.htm is displayed.
The following figure shows what we want in index.htm.

1. obtain the updated code of foreign software.
You can get a variable named $ gwrj // the name of a foreign software.
What about the foreign software we want from this index.htm? Here we will show the cut function we mentioned in the previous section.
$ Gwrj = cut ($ file ,"","");
Explanation
$ Xxx = cut ($ file, "$ first", "$ end ");
How does it work? The segment splits file(index.htm) from $ first to get the following part, and extracts the above part from cut $ end.
For example:
$ File = "111222333444 ";
$ Xxx = cut ($ file, "1", "3"); // The result is 11222. do you understand this?
Note:
""
If the content in "" also has ", add \
Example
""
Become
""
The following code is used to steal foreign software:
Require './commom. php ';
Update ("index.htm ");
$ File = readfromfile ("cache/index.htm ");
$ Gwrj = cut ($ file ,"","");
?>
Then insert the code in your html template where you want to display it.


The same applies to other requests.
Note:
The HTML output here needs to be replaced with your own code, which can be changed in general or one by one.
Let's talk about replacing the code separately:
$ Gwrj = cut ($ file ,"","");
$ Gwrj = str_replace ("soft/", "soft. php? Id = ", $ gwrj );
$ Gwrj = str_replace (". htm", "", $ gwrj );
Explanation:
It is to replace the code in the stolen foreign software.
Original

Changed to the current


It's almost the same. many Cainiao will talk about it in detail. First, make a homepage template, and then dig out what you want one by one.
Think of a question.
Index.htm contains a lot of classified information, which is the content displayed by calling JS. how do you get it and display it on your homepage.
I hope everyone will be able to steal it smoothly.
To put it simply, the class steal is the same as the homepage steal. the code is as follows:
Require './commom. php ';

If ($ soft ){
Update ("zookeeper softdesk.htm", "soft ");
$ File = readfromfile ("cache/zookeeper softdesk.htm ");
}
?>
Soft. php
Where $ soft is the soft. php passed from the front? Id = 1234
If 1234 is passed in
Update reading ("1234.html", "soft ");
Let's talk about the template tomorrow.

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.