Today, the company's website is hacked.

Source: Internet
Author: User

Reason why the website is hacked: The security process is not properly handled, so that all its data can be inserted into the database, giving the black man a lot of space

Website hacked content: all data is added with an inexplicable </title> <Div style = position: absolute; top:-9999px;> <a href = http://kickass-books.com> pdf book </a> </div>

Solution: attach </title> <Div style = position: absolute; top:-9999px;> <a href = http://kickass-books.com> pdf book </a> </div> All replace

Replaced SQL statement:

Update table name set column name = Replace (cast (column name as varchar (500), '</title> <Div style = position: absolute; top:-9999px;> <a href = http://kickass-books.com> pdf book </a> </div> ','')

Note:

You can specify the length of the varchar after the as... but the as cannot be less ....

Summary:

This website was hacked and I realized that a website must do a good job of security,ProgramApe must keep in mind always backup. If I had a database backup yesterday, I would not have had such a problem today. I would have simply restored the database data.

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.