d3g1d5

Encrypt HTML

May 31st, 2020
1,055
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.13 KB | None | 0 0
  1. <?php
  2. /*
  3. ▄▄▌  ▄▄▄ . ▄▄▄· ▄ •▄  ▄▄·       ·▄▄▄▄  ▄▄▄ .
  4. ██•  ▀▄.▀·▐█ ▀█ █▌▄▌▪▐█ ▌▪▪     ██▪ ██ ▀▄.▀·
  5. ██▪  ▐▀▀▪▄▄█▀▀█ ▐▀▀▄·██ ▄▄ ▄█▀▄ ▐█· ▐█▌▐▀▀▪▄
  6. ▐█▌▐▌▐█▄▄▌▐█ ▪▐▌▐█.█▌▐███▌▐█▌.▐▌██. ██ ▐█▄▄▌
  7. .▀▀▀  ▀▀▀  ▀  ▀ ·▀  ▀·▀▀▀  ▀█▄▀▪▀▀▀▀▀•  ▀▀▀
  8. Fucked By [!]DNThirTeen
  9. https://www.facebook.com/groups/leakcode/
  10. */
  11. ?>
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15.     <title>Letter Encryption v.69</title>
  16.     <style>
  17.     .footer {
  18.        position: fixed;
  19.        left: 0;
  20.        bottom: 0;
  21.        width: 100%;
  22.        color: black;
  23.        text-align: center;
  24.        font-size: 13px;
  25.     }
  26.     </style>
  27. </head>
  28. <body>
  29.     <form method="post">
  30.         <center>
  31.             <textarea name="field" style="width: 450px; height: 300px;"></textarea><br>
  32.             <input type="submit" value=".:ENCRYPT:.">
  33.         </center>
  34.     </form><?php
  35.     function randomz($x=0){
  36.         $letters=array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9");
  37.         $b_rnd = rand($x, $x+7);
  38.         $rand_comn = "";
  39.         for ($i = 0; $i < $b_rnd; $i++) {
  40.             $c_rnd = rand(0, 36);
  41.             $rand_comn.=@$letters[$c_rnd];
  42.         }
  43.         return $rand_comn;
  44.     }
  45.     function Homo($str, $obs=false) {
  46.         $crypt = array( "A" => base64_decode("zpE="), "a" => base64_decode("0LA="), "B" => base64_decode("zpI="), "b" => "b", "C" => base64_decode("z7k="), "c" => base64_decode("z7I="), "D" => "D", "d" => base64_decode("1IE="), "E" => base64_decode("zpU="), "e" => base64_decode("0LU="), "F" => "F", "f" => "f", "G" => base64_decode("1Iw="), "g" => "g", "H" => base64_decode("zpc="), "h" => "h", "I" => base64_decode("zpk="), "i" => base64_decode("0ZY="), "J" => base64_decode("0Ig="), "j" => base64_decode("0Zg="), "K" => base64_decode("zpo="), "k" => "k", "L" => "L", "l" => "l", "M" => base64_decode("zpw="), "m" => "m", "N" => base64_decode("zp0="), "n" => "n", "O" => base64_decode("zp8="), "o" => base64_decode("0L4="), "P" => base64_decode("zqE="), "p" => base64_decode("0YA="), "Q" => base64_decode("1Jo="), "q" => base64_decode("1Js="), "R" => base64_decode("Ug=="), "r" => "r", "S" => base64_decode("0IU="), "s" => base64_decode("0ZU="), "T" => base64_decode("zqQ="), "t" => "t", "U" => "U", "u" => "u", "V" => "V", "v" => "v", "W" => base64_decode("Vw=="), "w" => base64_decode("0aE="), "X" => base64_decode("zqc="), "x" => base64_decode("0YU="), "Y" => base64_decode("0q4="), "y" => base64_decode("0YM="), "Z" => base64_decode("zpY="), "z" => base64_decode("eg=="), "0" => "0", "1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "&" => "&", " " => " ", "_" => "_", "-" => "-", "@" => "@", "." => ".", "?" => "?", "/" => "/", "'" => "'", "\"" => "\"", "," => ",");
  47.         $encode = "";
  48.         for ($i=0; $i < strlen($str); $i++) {
  49.           $key = substr($str, $i, 1);
  50.           if (array_key_exists($key, $crypt)) {
  51.             $randz = randomz(rand(5,8));
  52.             if($obs==true) {
  53.                 $encode = $encode."<font style='color:transparent;font-size:0px'>".$randz."</font>".$crypt[$key];
  54.             } else {
  55.                 $encode = $encode.$crypt[$key];
  56.             }
  57.           } else {
  58.             $encode = $encode.$key;
  59.           }
  60.         }
  61.         return $encode;
  62.     }
  63.     function EncryptHtml($buffer){
  64.         $xstring = preg_replace_callback("/(<([^.]+)>)([^<]+)(<\\/\\2>)/s",
  65.             function ($matches) {
  66.                 $text = str_replace($matches[3], Homo($matches[3], true) , $matches[3]);
  67.                 return $matches[1] . $text . $matches[4];
  68.             }, $buffer);
  69.         $xtemplate  = preg_replace_callback("~(placeholder|name|id|class|lang|http-equiv|content|onload|href|alt)=(\"|')(.*?)(\"|')~",
  70.             function ($matches){
  71.                 if ($matches[1]=="href" && $matches[3]=="#") {
  72.                     return "href=\"#\"";
  73.                 }
  74.                 $crypt = array(" "=>"032","A"=>"065","a"=>"097","B"=>"066","b"=>"098","C"=>"067","c"=>"099","D"=>"068","d"=>"100","E"=>"069","e"=>"101","F"=>"070","f"=>"102","G"=>"071","g"=>"103","H"=>"072","h"=>"104","I"=>"073","i"=>"105","J"=>"074","j"=>"106","K"=>"075","k"=>"107","L"=>"076","l"=>"108","M"=>"077","m"=>"109","N"=>"078","n"=>"110","O"=>"079","o"=>"111","P"=>"080","p"=>"112","Q"=>"081","q"=>"113","R"=>"082","r"=>"114","S"=>"083","s"=>"115","T"=>"084","t"=>"116","U"=>"085","u"=>"117","V"=>"086","v"=>"118","W"=>"087","w"=>"119","X"=>"088","x"=>"120","Y"=>"089","y"=>"121","Z"=>"090","z"=>"122","0"=>"048","1"=>"049","2"=>"050","3"=>"051","4"=>"052","5"=>"053","6"=>"054","7"=>"055","8"=>"056","9"=>"057","&"=>"038","_"=>"095","-"=>"045","@"=>"064","."=>"046");
  75.                 $crypted_txt = "";
  76.                 for ($i=0; $i < strlen($matches[3]); $i++) {
  77.                   $y=substr($matches[3],$i,1);
  78.                   if (array_key_exists($y,$crypt)) {
  79.                       $x_rnd = rand(0,2);
  80.                       if ($x_rnd==1) {
  81.                             $crypted_txt = $crypted_txt.$y;
  82.                         }else{
  83.                             $crypted_txt = $crypted_txt."&#".$crypt[$y].";";
  84.                         }
  85.                     }else{
  86.                     $crypted_txt = $crypted_txt.$y;
  87.                     }
  88.                 }
  89.                 if ($matches[1]=="class") {
  90.                     $crypted_txt = randomz(5)." ".$crypted_txt." ".randomz(5);
  91.                 }
  92.                 if ($matches[2] =="'") {
  93.                     return $matches[1]."='".$crypted_txt."'";
  94.                 }else{
  95.                     return $matches[1]."=\"".$crypted_txt."\"";
  96.                 }
  97.             }, $xstring);
  98.         $search = array('/\>[^\S ]+/s', '/[^\S ]+\</s', '/(\s)+/s');
  99.         $replace = array('>', '<', '\\1', '');
  100.         $minify = preg_replace($search, $replace, $xtemplate);
  101.         return $minify;
  102.     }
  103.  
  104.     if (isset($_POST['field'])) {
  105.         $letter = $_POST['field'];
  106.             echo '  <center>
  107.            <textarea name="field" style="width: 450px; height: 300px;">' . EncryptHtml($letter) . '</textarea>
  108.        </center>';
  109.        
  110.     }
  111.  
  112.     ?>
  113.     <div class="footer">
  114.         <p>Copyright &copy; <?php echo date('Y'); ?>. Letter Encryption v6.9</p>
  115.     </div>
  116. </body>
  117. </html>
Add Comment
Please, Sign In to add comment