M1RAI

Generate_Cpatcha.js

May 28th, 2020
719
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function generercaptcha()
  2. {
  3.     ch="";
  4.     for(i=0;i<5;i++)
  5.     {
  6.         k= Math.floor(Math.random()*26)+1;
  7.         if(k % 2 == 0)
  8.         {
  9.             kar=String.fromCharCode(k+64);
  10.         }
  11.         else
  12.         {
  13.             kar=String.fromCharCode(k+96);
  14.         }
  15.         ch=ch+kar;
  16.     }
  17.     document.f.T1.value = ch;
  18. }
RAW Paste Data