zoukankan      html  css  js  c++  java
  • Javascript工具 javascript混淆器Obfuscator

    http://www.javascript-source.com/


    单击显示全图,Ctrl+滚轮缩放图片

    混淆前

    复制  保存
    //detect which browser is used
    var detect = navigator.userAgent.toLowerCase();
    var OS,browser,version,total,thestring;
    if (checkIt('konqueror'))
    {
    browser = "Konqueror";
    OS = "Linux";
    }
    else if (checkIt('opera')) browser = "Opera"
    else if (checkIt('msie')) browser = "Internet Explorer"
    else if (!checkIt('compatible'))
    {
    browser = "Netscape Navigator"
    version = detect.charAt(8);
    }
    else browser = "An unknown browser";
    //version of browser
    if (!version) version = detect.charAt(place + thestring.length);
    //client OS
    if (!OS)
    {
    if (checkIt('linux')) OS = "Linux";
    else if (checkIt('x11')) OS = "Unix";
    else if (checkIt('mac')) OS = "Mac"
    else if (checkIt('win')) OS = "Windows"
    else OS = "an unknown operating system";
    }
    //check the string
    function checkIt(string)
    {
    place = detect.indexOf(string) + 1;
    thestring = string;
    return place;
    }

    混淆后:
    复制  保存
    var e=navigator.userAgent.toLowerCase();var f,b,c,total,d;if(a('konqueror')){b="Konqueror";f="Linux";};else if(a('opera'))b="Opera";else if(a('msie'))b="Internet Explorer";else if(!a('compatible')){b="Netscape Navigator";c=e.charAt(8);};else b="An unknown browser";if(!c)c=e.charAt(g+d.length);if(!f){if(a('linux'))f="Linux";else if(a('x11'))f="Unix";else if(a('mac'))f="Mac";else if(a('win'))f="Windows";else f="an unknown operating system";};function a(string){g=e.indexOf(string)+1;d=string;return g;};
  • 相关阅读:
    C++Primer第7章 类
    网络编程I/O复用
    bg和fg
    I/O复用的高级应用一:非阻塞connect
    C++Primer第6章 函数
    mvn archetype:createfromproject报错The specified user settings file does not exist
    C++Primer第13章 拷贝控制
    g++编译多线程
    .NET开发者必备的19个开发工具
    jQuery UI Datepicker繁體中文年月選單換行的小修正
  • 原文地址:https://www.cnblogs.com/lzhdim/p/1368829.html
Copyright © 2011-2022 走看看