Write a Trojan program in LinuxC to steal the root user password

Source: Internet
Author: User
In Linux, there are many methods to escalate permissions (from ordinary users to root users), most of which are to escalate permissions by exploiting system kernel vulnerability overflow, of course, you can use Trojans like windows to steal the administrator's root password. The next one is a Trojan program disguised as an ssh command, and the other is a Trojan program disguised as a su command to steal the administrator root password. The following is an example of my own ssh and su Trojan programs. Lab environment: Operating system: RHEL5.9 superuser

In Linux, there are many methods to escalate permissions (from ordinary users to root users), most of which are to escalate permissions by exploiting system kernel vulnerability overflow, of course, you can use Trojans like windows to steal the administrator's root password. The next one is a Trojan program disguised as an ssh command, and the other is a Trojan program disguised as a su command to steal the administrator root password. The following is an example of my own ssh and su Trojan programs.

Lab environment: Operating system: RHEL 5.9 Super User: root common User: user0 super user password: redhatIP: 192.168.1.125192.168.168.126


Su steals the root user password:If you use user0 as the root user for the first time, the system prompts "authorization failed" even if you enter the correct logon password ", however, the password entered by the administrator has been recorded in a specified hidden file.

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.