Advertisement
Guest User

CVE-2013-2729 clean function to decode images

a guest
Oct 15th, 2014
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sRi(x)
  2. {
  3.     var s = [];
  4.     var z = x.replace(/[^\/\d]/g, ''); //hCS(j3);
  5.         z = z.replace(/[\/]/g, ','); //hCS(pg);
  6.     var ar = eval("[" + z + "]");
  7.  
  8.     for (var i = 0; i < ar.length; i ++)
  9.     {
  10.     var j = ar[i];
  11.     if ((j >= 33) && (j <= 126))
  12.     {
  13.         s[i] = String.fromCharCode(33 + ((j + 14) % 94));
  14.     }
  15.     else
  16.     {
  17.         s[i] = String.fromCharCode(j);
  18.     }
  19.     }
  20.     return s.join('');
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement