Advertisement
dirgotronix

Javascript Obfuscation

Apr 3rd, 2011
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- This code is the resulting script pulled from the PHP Obfuscation, as of today.  I don't know what it does. -->
  2.  
  3. <script type="text/javascript">eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8.b(\'<2 6="" 5="0" 4="1" 3="1" 7="a" 9="0"></2>\');',12,12,'||iframe|height|width|frameborder|src|scrolling|document|border|no|write'.split('|'),0,{}))
  4. </script>
  5.  
  6. <!-- ran through a beautifier -->
  7.  
  8. <script type="text/javascript">
  9.     eval(function(p, a, c, k, e, d) {
  10.         e = function(c) {
  11.             return c.toString(36)
  12.         };
  13.         if (!''.replace(/^/, String)) {
  14.             while (c--) {
  15.                 d[c.toString(a)] = k[c] || c.toString(a)
  16.             }
  17.             k = [function(e) {
  18.                 return d[e]
  19.             }];
  20.             e = function() {
  21.                 return '\\w+'
  22.             };
  23.             c = 1
  24.         };
  25.         while (c--) {
  26.             if (k[c]) {
  27.                 p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c])
  28.             }
  29.         }
  30.         return p
  31.     }('8.b(\'<2 6="" 5="0" 4="1" 3="1" 7="a" 9="0"></2>\');', 12, 12, '||iframe|height|width|frameborder|src|scrolling|document|border|no|write'.split('|'), 0, {}))
  32. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement