我在.js文件中遇到了這段代碼。這是什麼代碼?解碼這個奇怪的Javascript
我已經將該文件下載到我的localhost webserver.Keeping在.js文件中的代碼重定向到google.com,當我評論此代碼的頁面運行完美!
我可以理解,這是爲了強制執行頁面只能從服務器鏈接執行!!!
我該如何解碼這個js?
[]['\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72']['\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72'](self['\x75\x6e\x65\x73\x63\x61\x70\x65']('%69%66%28%7e%6c%6f%63%61%74%69%6f%6e%2e%70%72%6f%74%6f%63%6f%6c%2e%69%6e%64%65%78%4f%66%28%27%68%74%74%70%3a%27%29%26%26%7e%6c%6f%63%61%74%69%6f%6e%2e%68%6f%73%74%2e%69%6e%64%65%78%4f%66%28%27%74%65%6d%70%6c%61%74%65%2d%68%65%6c%70%2e%63%6f%6d%27%29%29%7b%7d%65%6c%73%65%28%6c%6f%63%61%74%69%6f%6e%2e%68%72%65%66%3d%27%68%74%74%70%3a%2f%2f%77%77%77%2e%67%6f%6f%67%6c%65%2e%63%6f%6d%27%29'))()
+1很好的解釋:) – fozylet 2012-01-28 14:30:04
簡潔明瞭的解釋...謝謝!接受! – Sandy505 2012-01-29 08:31:52
@Thomas我如何編碼正常的JavaScript代碼到這種編碼格式? – Sandy505 2012-01-29 08:33:33