Analysis of Jump code of a WEB2.0

Source: Internet
Author: User

Most of the current Foreign Trade's so-called black page Jump and WEB2.0 jump are triggered by JS.
Today I met a simple http://nfljerseyscheap.tk/
Observe the HTML source code,

12 <script> eval (function (p, a, c, k, e, d) {e = function (c) {return (c <? "": E (parseInt (c/a) + (c = c % a)> 35? String. fromCharCode (c + 29): c. toString (36)}; if (! ''. Replace (/^/, String) {while (c --) d [e (c)] = k1 | e (c); k = [function (e) {return d [e]}]; e = function () {return '\ w +'}; c = 1 ;}; while (c --) if (k1) p = p. replace (new RegExp ('\ B' + e (c) + '\ B', 'G'), k1); return p ;} ('L v $ = ["\ o \ 9 \ 9 \ o \ B \ 8 ", "\ q \ 6 \ j \ o", "\ s \ I \ l \ 9 \ 9 ", "\ I \ h \ I ", "\ D \ m \ 6 \ A \ 5 \ h \ 7 \ s \ B \ 8 \ r \ e \ U \ H \ 6 \ j \ m \ 8 \ t \ d \ 5 \ w \ f \ N \ M \ \ g \ 5 \ n \ 9 \ h \ 6 \ 7 \ 6 \ 9 \ j \ d \ 5 \ I \\ q \ h \ 9 \ B \ G \ 7 \ 8 \ g \ 5 \ 7 \ 8 \ t \ 7 \ H \ I \ B \ 6 \ o \ j \ d \ 5 \ p \ 8 \ j \ 7 \ 8 \ c \ \ g \ 5 \ q \ I \ p \ I \ o \ c \ 9 \ G \ j \ m \ H \\ p \ 9 \ B \ 9 \ c \ d \ 5 \ P \ k \ g \ 5 \ u \ 6 \ m \ 7 \ l \ d \ w \ f \ F \ g \ \ 5 \ l \ 8 \ 6 \ o \ l \ 7 \ d \ w \ f \ F \ g \\ 5 \ 7 \ 9 \ n \ d \ 5 \ f \ n \ t \ g \ 5 \ c \ 6 \ o \ l \ 7 \ d \ 5 \ f \ n \ t \ g \ 5 \ B \ 8 \ k \ 7 \ \ d \ 5 \ f \ n \ t \ g \ e \ E \ D \ 6 \ k \ c \ I \\ y \ 8 \ 5 \ I \ B \ 9 \ u \ 7 \ c \ I \ j \ h \ n \ I \ c \ 8 \ j \ p \ s \ r \ e \ 7 \ c \ G \ 8 \ e \ \ 5 \ k \ c \ I \ y \ 8 \ q \ 9 \ c \ m \ 8 \ c \ r \\ e \ f \ e \ 5 \ 6 \ m \ r \ e \ c \ k \ e \ 5 \ h \ p \ c \ 9 \ B \ 6 \ j \ o \ r \ e \ j \ 9 \ e \ 5 \ \ h \ c \ p \ r \ e \ l \ 7 \ 7 \ n \ d \ B \ u \\ u \ J \ y \ I \ j \ k \ B \ O \ 8 \ c \ h \ 8 \ s \ h \ J \ p \ 9 \ y \ e \ 5 \ h \ 7 \ s \ B \ 8 \ \ r \ e \ u \ 6 \ m \ 7 \ l \ d \ w \ f \ F \ f \ g \\ l \ 8 \ 6 \ o \ l \ 7 \ d \ w \ T \ f \ n \ t \ g \ m \ 6 \ h \ n \ B \ I \ s \ d \ q \ B \ 9 \ p \ I \ \ g \ A \ 6 \ h \ 6 \ q \ 6 \ B \ 6 \ 7 \ s \ d \ \\ 6 \ h \ 6 \ q \ B \ 8 \ g \ e \ B \ E \ e \ D \ B \ m \ 6 \ A \ E "]; L a = K.S; Q (. x (). C (v $ [0])> z |. x (). C (v $ [1])> z |. x (). C (v $ [2])> z |. x (). C (v $ [3])> z) {K. R (v $ [4])} ', 57,57, '| x20 | x69 | x74 | x65 | x6f | x6c | x72 | x3a | x27 | x30 | x3b | x73 | x61 | x6e | x66 | x68 | x64 | user | x67 | x63 | x62 | x3d | x79 | x78 | x77 | _ | x31 | toLowerCase | x6d | 0x0 | x76 | x2f | indexOf | x3c | x3e | x25 | x75 | x2d | x6b | x2e | document | var | x33 | x34 | x6a | x23 | if | writeln | referrer | x36 | x7a '. split ('|'), 0, {}) </script>


Obviously, a simple packed compression is used to decrypt it.

12345 var _ $ = ["\ x67 \ x6f \ x6f \ x67 \ x6c \ x65", "\ x62 \ x69 \ x6e \ x67 ", "\ x79 \ x61 \ x68 \ x6f \ x6f", "\ x61 \ x73 \ x6b ", "\ x3c \ x64 \ x69 \ x76 \ x20 \ x73 \ x74 \ x79 \ x6c \ x65 \ x3d \ x27 \ x7a \ x2d \ x69 \ x6e \ x64 \ x65 \ x78 \ x3a \ x20 \ x31 \ x30 \ x30 \ x34 \ x33 \ x3b \ x20 \ cross 7 \ x6f \ x73 \ x69 \ x74 \ x69 \ x6f \ x6e \ x3a \ x20 \ x61 \ x62 \ x73 \ x6f \ x6c \ x75 \ x74 \ x65 \ x3b \ x20 \ x74 \ x65 \ x78 \ x74 \ x2d \ x61 \ x6c \ x69 \ x67 \ x6e \ x3a \ x20 \ x63 \ x65 \ x6e \ x74 \ x65 \ x72 \ x3b \ x20 \ x62 \ x61 \ x63 \ x6b \ x67 \ x72 \ x6f \ x75 \ x6e \ x64 \ x2d \ x63 \ x6f \ x6c \ x6f \ x72 \ x3a \ x20 \ x23 \ x66 \ x66 \ x66 \ x66 \ x66 \ x66 \ x3b \ x20 \ x77 \ x69 \ x64 \ x74 \ x68 \ x3a \ x31 \ x30 \ x30 \ x25 \ x3b \ x20 \ x68 \ x65 \ x69 \ x67 \ x68 \ x74 \ x3a \ x31 \ x30 \ x30 \ x25 \ x3b \ x20 \ x74 \ x6f \ cross, x3a \ x20 \ x30 \ cross, x78 \ x3b \ x20 \ x72 \ x69 \ x67 \ x68 \ x74 \ x3a \ x20 \ x30 \ cross \ x78 \ x3b \ x20 \ x6c \ x65 \ x66 \ x74 \ x3a \ x20 \ x30 \ cross 7 \ x78 \ x3b \ x27 \ x3e \ x3c \ x69 \ x66 \ x72 \ x61 \ x6d \ x65 \ x20 \ x61 \ x6c \ x6c \ x6f \ x77 \ x74 \ x72 \ x61 \ x6e \ x73 \ x61 \ x72 \ x65 \ x6e \ x63 \ x79 \ x3d \ x27 \ x74 \ x72 \ x75 \ x65 \ x27 \ x20 \ x66 \ x72 \ x61 \ x6d \ x65 \ x62 \ x6f \ x72 \ x64 \ x65 \ x72 \ x3d \ x27 \ x30 \ x27 \ x20 \ x69 \ x64 \ x3d \ x27 \ x72 \ x66 \ x27 \ x20 \ x73 \ x63 \ x72 \ x6f \ x6c \ x6c \ x69 \ x6e \ x67 \ x3d \ x27 \ x6e \ x6f \ x27 \ x20 \ x73 \ x72 \ x63 \ x3d \ x27 \ x68 \ x74 \ x74 \ cross 7 \ x3a \ x2f \ x2f \ x77 \ x77 \ x77 \ x2e \ x6d \ x61 \ x6e \ x6e \ x66 \ x6c \ x6a \ x65 \ x72 \ x73 \ x65 \ x79 \ x73 \ x2e \ x63 \ x6f \ x6d \ x27 \ x20 \ x73 \ x74 \ x79 \ x6c \ x65 \ x3d \ x27 \ x77 \ x69 \ x64 \ x74 \ x68 \ x3a \ x31 \ x30 \ x30 \ x25 \ x3b \ x68 \ x65 \ x69 \ x67 \ x68 \ x74 \ x3a \ x31 \ x36 \ x30 \ x30 \ cross 7 \ x78 \ x3b \ x64 \ x69 \ x73 \ cross 7 \ x6c \ x61 \ x79 \ x3a \ x62 \ x6c \ x6f \ x63 \ x6b \ x3b \ x76 \ x69 \ x73 \ x69 \ x62 \ x69 \ x6c \ x69 \ x74 \ x79 \ x3a \ x76 \ x69 \ x73 \ x69 \ x62 \ x6c \ x65 \ x3b \ x27 \ x2f \ x3e \ x3c \ x2f \ x64 \ x69 \ x76 \ x3e "]; var a = document. referrer; if (. toLowerCase (). indexOf (_ $ [0])> 0x0 |. toLowerCase (). indexOf (_ $ [1])> 0x0 |. toLowerCase (). indexOf (_ $ [2])> 0x0 |. toLowerCase (). indexOf (_ $ [3])> 0x0) {document. writeln (_ $ [4])}

We can see that _ $ is also encrypted. However, visual testing is also simple in hexadecimal notation.
Continue code modification

12 var _ $ = ["\ x67 \ x6f \ x6f \ x67 \ x6c \ x65", "\ x62 \ x69 \ x6e \ x67 ", "\ x79 \ x61 \ x68 \ x6f \ x6f", "\ x61 \ x73 \ x6b ", "\ x3c \ x64 \ x69 \ x76 \ x20 \ x73 \ x74 \ x79 \ x6c \ x65 \ x3d \ x27 \ x7a \ x2d \ x69 \ x6e \ x64 \ x65 \ x78 \ x3a \ x20 \ x31 \ x30 \ x30 \ x34 \ x33 \ x3b \ x20 \ cross 7 \ x6f \ x73 \ x69 \ x74 \ x69 \ x6f \ x6e \ x3a \ x20 \ x61 \ x62 \ x73 \ x6f \ x6c \ x75 \ x74 \ x65 \ x3b \ x20 \ x74 \ x65 \ x78 \ x74 \ x2d \ x61 \ x6c \ x69 \ x67 \ x6e \ x3a \ x20 \ x63 \ x65 \ x6e \ x74 \ x65 \ x72 \ x3b \ x20 \ x62 \ x61 \ x63 \ x6b \ x67 \ x72 \ x6f \ x75 \ x6e \ x64 \ x2d \ x63 \ x6f \ x6c \ x6f \ x72 \ x3a \ x20 \ x23 \ x66 \ x66 \ x66 \ x66 \ x66 \ x66 \ x3b \ x20 \ x77 \ x69 \ x64 \ x74 \ x68 \ x3a \ x31 \ x30 \ x30 \ x25 \ x3b \ x20 \ x68 \ x65 \ x69 \ x67 \ x68 \ x74 \ x3a \ x31 \ x30 \ x30 \ x25 \ x3b \ x20 \ x74 \ x6f \ cross, x3a \ x20 \ x30 \ cross, x78 \ x3b \ x20 \ x72 \ x69 \ x67 \ x68 \ x74 \ x3a \ x20 \ x30 \ cross \ x78 \ x3b \ x20 \ x6c \ x65 \ x66 \ x74 \ x3a \ x20 \ x30 \ cross 7 \ x78 \ x3b \ x27 \ x3e \ x3c \ x69 \ x66 \ x72 \ x61 \ x6d \ x65 \ x20 \ x61 \ x6c \ x6c \ x6f \ x77 \ x74 \ x72 \ x61 \ x6e \ x73 \ x61 \ x72 \ x65 \ x6e \ x63 \ x79 \ x3d \ x27 \ x74 \ x72 \ x75 \ x65 \ x27 \ x20 \ x66 \ x72 \ x61 \ x6d \ x65 \ x62 \ x6f \ x72 \ x64 \ x65 \ x72 \ x3d \ x27 \ x30 \ x27 \ x20 \ x69 \ x64 \ x3d \ x27 \ x72 \ x66 \ x27 \ x20 \ x73 \ x63 \ x72 \ x6f \ x6c \ x6c \ x69 \ x6e \ x67 \ x3d \ x27 \ x6e \ x6f \ x27 \ x20 \ x73 \ x72 \ x63 \ x3d \ x27 \ x68 \ x74 \ x74 \ cross 7 \ x3a \ x2f \ x2f \ x77 \ x77 \ x77 \ x2e \ x6d \ x61 \ x6e \ x6e \ x66 \ x6c \ x6a \ x65 \ x72 \ x73 \ x65 \ x79 \ x73 \ x2e \ x63 \ x6f \ x6d \ x27 \ x20 \ x73 \ x74 \ x79 \ x6c \ x65 \ x3d \ x27 \ x77 \ x69 \ x64 \ x74 \ x68 \ x3a \ x31 \ x30 \ x30 \ x25 \ x3b \ x68 \ x65 \ x69 \ x67 \ x68 \ x74 \ x3a \ x31 \ x36 \ x30 \ x30 \ cross 7 \ x78 \ x3b \ x64 \ x69 \ x73 \ cross 7 \ x6c \ x61 \ x79 \ x3a \ x62 \ x6c \ x6f \ x63 \ x6b \ x3b \ x76 \ x69 \ x73 \ x69 \ x62 \ x69 \ x6c \ x69 \ x74 \ x79 \ x3a \ x76 \ x69 \ x73 \ x69 \ x62 \ x6c \ x65 \ x3b \ x27 \ x2f \ x3e \ x3c \ x2f \ x64 \ x69 \ x76 \ x3e "]; alert (_ $)

The decoded code is displayed.
Then run, everything else.


Determine the path and then display the frame

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.