-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyour_cmd.php
83 lines (73 loc) · 1.46 KB
/
your_cmd.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
font-family: Arial;
}
* {
box-sizing: border-box;
}
form.cmd input[type=text] {
padding: 10px;
font-size: 17px;
border: 1px solid grey;
float: left;
width: 80%;
background: #f1f1f1;
}
form.cmd button {
float: left;
width: 20%;
padding: 10px;
background: #2196F3;
color: white;
font-size: 17px;
border: 1px solid grey;
border-left: none;
cursor: pointer;
}
form.cmd button:hover {
background: #0b7dda;
}
form.cmd::after {
content: "";
clear: both;
display: table;
}
</style>
</head>
<body>
<h2>Note: All commands Won't work</h2>
<form class="cmd" action="your_cmd.php">
<input type="text" placeholder="Enter Your command" name="cmd">
<button type="submit"><i class="fa fa-search"></i></button>
<?php
if (isset($_GET['cmd'])){
$x = $_GET['cmd'];
if($x == "ls"){
echo "<br>";
echo "<br>";
echo "css<br>";
echo "fonts<br>";
echo "images<br>";
echo "js<br>";
echo "index.html<br>";
echo "your_cmd.php<br>";
echo "flag_2.php<br>";
echo "flag_3.php<br>";
echo "flag_4.php<br>";
echo "flag_5";
}if($x == "whoami"){
echo "root";
}if($x == "cat flag_5"){
echo "Part-5 1337}";
}
}
?>
</form>
<!-- Some Files Can be viewed only here -->
</body>
</html>