EdwardBian's Blog - 制造 创造
原文件上传路径是usr/uploads/年/月/文件名看起来太长了,修改为usr/uploads/文件名修改方法将var/widget/upload.php中的uploadHandle方法替换为public static function uploadHandle(array $file) { if (empty($file['name'])) { return false; } $result = self::pluginHandle()->trigger($hasUploaded)->uploadHandle($file); if ($hasUploaded) { return $result; } $ext = self::getSafeName($file['name']); if (!self::checkFileType($ext)) { return false; } $path = Commo
CentOS 7 已经达到其生命周期终点 (EOL),官方删除了原 mirrorlist 子域名的解析,这导致了使用 CentOS 7 模板的用户在尝试更新或安装软件时可能会遇到如下报错:Failed to synchronize cache for repo 'base', disabling. Failed to synchronize cache for repo 'extras', disabling. Failed to synchronize cache for repo 'updates', disabling. 这是因为默认配置的镜像列表已经不再可用。要解决这个问题,可以采取以下方法之一:方法一:使用 Vault 存储库CentOS 提供了一个名为 Vault 的存储库,专门用于存放已达 EOL 版本的所有软件包。可以修改 yum 配置文件来使用这个存储库。编辑 /etc/yum.repos.d/CentOS-Base.repo 文件:sudo vi /etc/yum.repos.d/CentOS-Base.r
OpenSSH 再次曝出高危漏洞:CVE-2024-6387,该漏洞是由于OpenSSH服务器 (sshd) 中的信号处理程序竞争问题,未经身份验证的攻击者可以利用此漏洞在Linux系统上以root身份执行任意代码。目前该漏洞技术细节已在互联网上公开,鉴于该漏洞影响范围较大,建议尽快做好自查及防护。影响版本OpenSSH < 4.4p18.5p1 <= OpenSSH < 9.8p1参考资料https://lists.mindrot.org/pipermail/openssh-unix-announce/2024-July/000158.htmlhttps://www.openwall.com/lists/oss-security/2024/07/01/1https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txt如何升级 OpenSSHDebian/Ubuntuapt update && apt upgrade -y apt install make libz-dev gcc git
好事成双,同时被杀2龟
bash <(wget -qO- https://raw.githubusercontent.com/mocchen/cssmeihua/mochen/shell/ddns.sh)
EdwardBian