HaNniBaL-KsA

WHM HASH Checker v.1 beta

May 7th, 2014
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.62 KB | None | 0 0
  1. <?
  2. #####################################
  3. #     WHM HASH Checker v.1 beta     #
  4. #       By: Hannibal Ksa (HK)       #
  5. #    r00t3rz - uNdErGrOund Shit!    #
  6. # (Security research group from CA) #
  7. # Greetz: alm3refh.com,z0rx,b4ll3r  #
  8. #####################################
  9.  
  10. $start = $_POST['go'];
  11.     echo '
  12.    <!DOCTYPE html>
  13.    <html dir="ltr">
  14.    <head>
  15.    <style type="text/css">
  16.    body { background-color:black; color:rgb(200,200,200); font-family: Tahoma,Verdana,Tahoma; font-size: 12px; font-weight:bold; }
  17.    textarea { border:1px solid rgb(200,200,200); background-color:black; color:rgb(200,200,200); }
  18.    input { border:  buttonhighlight 2px outset; background-color: Black; width: 30%; color: #FFF; }
  19.    .h1 { font-size:17px; }
  20.    </style>
  21.    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22.    <title>WHM Hash Checker v.1 beta</title>
  23.    <h1>WHM HASH Checker v.1 beta</h2>hk @ r00t3rz.com<br/><br/>
  24.    <form action="" method="post">
  25.    <br/>Server:&nbsp;&nbsp;<input name="host" type="text" value="ex: https://r00t3rz.com:2087">
  26.    <br/>User:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="user" type="text" value="ex: hk">
  27.    <br/>Hash:&nbsp;&nbsp;&nbsp;&nbsp;<input name="hash" type="text" value="ex: r00t3rz"><br/>
  28.    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="go" type="submit" value="Test!"/><br/><br/>
  29.    ';
  30.     if($start){
  31.       $whmusername = $_POST['user'];
  32.       $whmhash = $_POST['hash'];
  33.       $query = $_POST['host'];
  34.       echo "[[email protected]]&nbsp;#&nbsp;&nbsp;Tryin' please wait";
  35. #      sleep(1);echo"&nbsp;.&nbsp;";sleep(1);echo"&nbsp;.&nbsp;";sleep(1);echo"&nbsp;.&nbsp;";sleep(1);echo"&nbsp;.&nbsp;";sleep(1);echo"&nbsp;.&nbsp;";
  36.      $curl = curl_init();
  37.       curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,0);
  38.       curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,0);
  39.       curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
  40.       $header[0] = "Authorization: WHM $whmusername:" . preg_replace("'(\r|\n)'","",$whmhash);
  41.       curl_setopt($curl,CURLOPT_HTTPHEADER,$header);
  42.       curl_setopt($curl, CURLOPT_URL, $query);
  43.       $result = curl_exec($curl);
  44.       if ($result == false) {
  45.             error_log("curl_exec threw error \"" . curl_error($curl) . "\" for $query");
  46.             }
  47.             curl_close($curl);
  48.             if (strpos($result, "<noframes>WebHost Manager") !== false) {
  49.                 echo "<br/>[[email protected]]&nbsp;#&nbsp;&nbsp;<font color='green'>WORKS!</font><br/>";
  50.                 } else {
  51.                   echo "<br/>[[email protected]]&nbsp;#&nbsp;&nbsp;<font color='red'>DOESN'T WORK!</font><br/>";
  52.                   }
  53.     }
  54. ?>
Advertisement
Add Comment
Please, Sign In to add comment