Plan to start learning shellcode

Source: Internet
Author: User
We plan to start learning shellcode-general Linux technology-Linux programming and kernel information. The following is a detailed description. Next, prepare a tool to track the memory usage of another program and plan to use the malloc hook method.

Currently, a limitation of malloc hook is that the program must make some code changes and run the hook program. Now we plan to use the shellcode method to inject the corresponding hook to the outside, so that we do not have to change the source program.

One difficulty is:

The hook function of malloc must involve some dynamic connection libraries. If code execution is injected outside, it will not conflict with dynamic connections.

Difficulty 2:

In the malloc hook function, the dl_addr function is used, which runs slowly. In the embedded environment, the program running speed is greatly affected. Consider not to run dl_addr first, but to print the eip of the runtime. After the operation is complete, parse it. There are some concerns that dl_addr may be related to the runtime environment and cannot be reproduced.
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.