How to use the. htaccess shell attack

Source: Internet
Author: User

Http://itsecuritylab.eu/index.php/2010/07/05/hide-shell-in-a-target-system/

 

It seems that you like shell very much. It's cute and happy. Next we will introduce a method to hide shell. htaccess attack.

This must be an Apache server.

Click it to edit the Apache configuration file. The target system is centos5.6 apache2.

[root@localhost ~]# vi /etc/httpd/conf/httpd.conf

Make Apache support for. htaccess

<Directory
/var/www/>         Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>

Restart the apache service, upload the file to the Web server and directory, and download the file:

 

 
Sorry, you can only read the hidden content if you have commented on this article.
 

 

After the download, the upload name will be:. htaccess

Then run the following command:

Of course, you can modify the code and create a reverse shell.

More here: https://github.com/wireghoul/htshells

Related Article

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.