diff --git a/app/lib/Plugins.php b/app/lib/Plugins.php index 203f246..861ef63 100644 --- a/app/lib/Plugins.php +++ b/app/lib/Plugins.php @@ -188,14 +188,21 @@ class Plugins $userinfo = $btapi->get_user_info(); if(isset($userinfo['uid'])){ $src = file_get_contents($main_filepath); - $data = explode("\n", $src)[0]; $uid = $userinfo['uid']; $serverid = $userinfo['serverid']; $key = md5(substr($serverid, 10, 16).$uid.$serverid); $iv = md5($key.$serverid); $key = substr($key, 8, 16); $iv = substr($iv, 8, 16); - $de_text = openssl_decrypt($data, 'aes-128-cbc', $key, 0, $iv); + $data_arr = explode("\n", $src); + $de_text = ''; + foreach($data_arr as $data){ + $data = trim($data); + if(!empty($data) && strlen($data)!=24){ + $tmp = openssl_decrypt($data, 'aes-128-cbc', $key, 0, $iv); + if($tmp) $de_text .= $tmp; + } + } if(!empty($de_text)){ file_put_contents($main_filepath, $de_text); return true; diff --git a/public/static/file/kaixin.zip b/public/static/file/kaixin.zip index 392515d..d76f8af 100644 Binary files a/public/static/file/kaixin.zip and b/public/static/file/kaixin.zip differ diff --git a/public/static/file/win/kaixin.zip b/public/static/file/win/kaixin.zip index bfa34ce..052559a 100644 Binary files a/public/static/file/win/kaixin.zip and b/public/static/file/win/kaixin.zip differ