Sa permission cmd Command Execution return command line prompt closed solution

Source: Internet
Author: User

Sa permission. Execute cmd using xp_cmdshell, but return the command line to indicate that the command has been disabled.

 
Then I tried other storage products, such as OA, job, sandbox, and so on. I still couldn't execute the command, so I was helpless.
 
I tried sp_makewebtask storage, but I can export a webshell.
 
Go in and see what's going on.
 
When running SQL commands, I suddenly remembered that the command for executing the four stored procedures of Pangolin called CMD.
 
Cmd is disabled. Of course you have no more fun.
 
Pass a cmd command and try again. The command cannot be executed.
 
I tried to raise the privilege by using another big killer, and I didn't have to play it when I disabled it in cmd.
 
After turning it over in system32, we found that command.com can also execute commands, which is basically similar to cmd, but it is not clear that this is not a command prompt.
 
I tried it on the local machine, disabled cmd, and found that command.com is running normally. Haha
 
Use command.com to call the sandbox.
 
Select * from openrowset ('Microsoft. jet. oledb.4.0 ','; database = c: \ windows \ system32 \ ias. mdb ', 'select shell ("command.com/c net1 user roge $/add ")')
 
Net user.

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.