SHARE
TWEET

CVE-2013-2729 clean function to decode images

a guest Oct 15th, 2014 280 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. }
RAW Paste Data
Want to get better at JavaScript?
Learn to code JavaScript in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top