Guest User

CVE-2013-2729 clean function to decode images

a guest
Oct 15th, 2014
366
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×