Mysqludf permission escalation principle and case study udf permission escalation Trojan download

Source: Internet
Author: User
This article describes in detail the principles and methods of udf elevation. You can use the langouster_udf.dll private network horse (php) provided below or use the latest phpspidershell version (webshell already used) -- very powerful udf Privilege Escalation function in PHP Trojan http: www.linuxso.comalinuxdownloadsoft243.html upload udf. php to object

This article will detail uDfYou can use the langouster_udf.dll private network horse (Php)

Or use php spIdThe latest version of er shell (webshell already exists)-very powerfulPHPUdf Privilege Escalation function in Trojan

Http://www.linuxso.com/a/linuxdownload/soft/243.html

Upload udf. php to the target site. The following is the udf Privilege Escalation page.

Install

The following figure shows the fu that can be installed by the udf. php Elevation of Privilege.NcTion usage and description

I. Function: Use the Create Function Statement of MYSQL to convert the MYSQL account to the system permission. II. Application scenarios: 1. the target system is Windows (Win2000, XP, Win2003); 2. you already have a user account of MYSQL. This account must have the insert and delete permissions on mysql to create and discard functions (MYSQL document primitives ).

Iii. Help: organize www.linuxso.com
Step 1: Upload this file to the target machine and enter your MYSQL account to connect.

Step 2: After the connection is successful, export the DLL file. Do not pay attention to the export path during export (generally any directory can be written without permission concerns). For MySQL or later versions, you must export the DLL to the system directory (win or system32) of the target machine. Otherwise, you will see "No paths allow" in the next step.EdFor shared library "error. For mysql 5.1 or later versions, use the show variables like '% plugin %'; statement to view the plug-in installation path. Specify this path when exporting the dll.

Step 3: use SQL statements to create functions. Syntax: Create Function Name (the Function name can only be one of the following lists) returns sTrIng soname 'export DLL path'; For MySQL or later versions, the DLL in the statement cannot carry a full path. If you have exported the DLL to the system directory in step 2, then you can omit the path to makeCommandRun normally. Otherwise, you will see the "Can't open shared library" error. In this case, you must re-export the DLL to the system directory.

Example: Create Function example shell returns string soname 'udf. dll '; Create an external shell Function. You can Create all the functions in the Function description below.

Step 4: After correctly creating function functions, you can use these functions using SQL statements. Syntax: the name of the function created by the select statement ('parameter list'). Each function has different parameters. You can use the name of the function created by the select statement ('help '); to obtain the parameter list of the specified function.

Example: select strongshell ("net user linuxso 123456/Dd"); The System user linuxso will be added. Not sure.

Step 5: after use, you may need to delete the DLL exported in step 2. before deleting the DLL, delete the function you created in step 3, otherwise, the deletion operation will fail. The SQL statement for deleting the function created in step 3 is: drop function created function name;

Iv. Function Description:
Cmdshell executes cmd;
Downloader downloads the specified file online and saves it to the specified directory;
Open3389 General Open 3389 terminal service, you can specify the port (no need to restart without changing the port );
Backshell rebound Shell;
ProcessView: Lists system processes;
KillProcess: terminates a specified process;
Regread read the registry;
RegWriteWrite the registry;
Shut down shut, log off, and restart;
About description and help functions;

========================================================== ======================================

Tip: If you have added a system account, you will find that 3389 has been modified. You can use the following two commands to view the modified port number.

Tasklist/svc // search for records containing TeRmPID of the Service line

NetStat-Ano // find the port number corresponding to the pid above

: Http://www.linuxso.com/uploads/soft/110720/udf.Zip

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.