Pwnable fd, pwnable

Source: Internet
Author: User

Pwnable fd, pwnable

Address: http://www.pwnable.kr

 

After ssh:

The flag file is unreadable. The fd program can be executed and the source code is provided. Let's take a look at what the source code shows:

The code is very simple. The first parameter minus 0x1234 is used as the first parameter of read, and then the read reads a maximum of 32 bytes into the buf after fd. It is compared with LETMEWIN, and the output flag is the same. We are all back to the file descriptor is 0 when the standard input, 1 is the standard output, 2 when the error, the new open file from 3 plus, details refer to: http://blog.csdn.net/cywosp/article/details/38965239

So we can set the fd value to 0, so input 0x1234, and then input LETMEWIN. here we need to convert:

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.