Javascript tool-JavaScript obfuscator

Source: Internet
Author: User
Tags javascript obfuscator

 

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

Before Obfuscation

Copy Save
 // 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 ( 'Compuble' ) {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 ;}

After obfuscation:CopySave

 VaR E = navigator. useragent. tolowercase (); VaR F, B, c, total, D; If (( 'Konqueror' ) {B = "Konqueror" ; F = "Linux" ;}; Else   If (( 'Opera' ) B = "Opera" ; Else   If (( 'Msie' ) B = "Internet Explorer" ; Else  If (! A ( 'Compuble' ) {B = "Netscape Navigator" ; C = E. charat (8 );}; Else B = "An unknown Browser" ; If (! C) C = E. charat (G + D. Length ); If (! F ){ If (( 'Linux' ) F = "Linux" ; Else   If (( 'X11' ) F = "Unix" ; Else   If (( 'Mac' ) F = "Mac" ;Else   If (( 'Win' ) F = "Windows" ; Else F = "An unknown Operating System" ;}; Function A (string) {G = E. indexof (string) + 1; D = string; Return G ;};
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.