RapidLeetch /hosts/download/freakshare_net.php

Language PHP Lines 71
MD5 Hash e31731ee77345d8a45db9cd017f0e9f5
Repository https://github.com/gartz/RapidLeetch.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
if (!defined('RAPIDLEECH'))
  {
  require_once("index.html");
  exit;
  }

$post = Array();

$FileName = !$FileName ? basename($Url["path"]) : $FileName;
$FileName = str_replace(".html", "", $FileName);

if (($_GET["premium_acc"] == "on" && $_GET["premium_user"] && $_GET["premium_pass"])) {
	$Url =  parse_url("http://freakshare.net/login.html");
	$post["user"] = $_GET["premium_user"];
	$post["pass"] = $_GET["premium_pass"];
	$post["submit"] = "Login";
	$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, 0, $post, 0, $_GET["proxy"],$pauth);
	is_page($page);

	$cookie = GetCookies($page);
	insert_timer(5, "Please wait while logging in");

	$Url =  parse_url($LINK);
	$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, $cookie, 0, 0, $_GET["proxy"],$pauth);
	is_page($page);

	if (stristr($page, "Location:")) {
		$Href = trim(cut_str($page, "Location:","\n"));
		$Url =  parse_url($Href);
	} else {
		html_error ("Cannot get download link!", 0 );
	}

} else {
	$post["section"] = "waitingtime";
	$post["did"] = "2";

	$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
	is_page($page);

	$cookie = GetCookies($page);
	$countdowntime = trim(cut_str($page, "var time = ",";"));

	$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, $cookie, $post, 0, $_GET["proxy"],$pauth);
	is_page($page);

	if (!stristr($page, "Location:")) {
		insert_timer(3, "");
		$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, $cookie, $post, 0, $_GET["proxy"],$pauth);
	}

	if (stristr($page, "Location:")) {
		$Href = trim(cut_str($page, "Location:","\n"));
		$Url =  parse_url($Href);
	} else {
		html_error ("Cannot get download link!", 0 );
	}

	$cookie .= "; " . GetCookies($page);

	insert_timer($countdowntime, "Please wait while getting file.");
}

insert_location("$PHP_SELF?filename=".urlencode($FileName)."&host=".$Url["host"]."&port=".$Url["port"]."&path=".urlencode($Url["path"].($Url["query"] ? "?".$Url["query"] : ""))."&referer=".urlencode($LINK)."&email=".($_GET["domail"] ? $_GET["email"] : "")."&partSize=".($_GET["split"] ? $_GET["partSize"] : "")."&method=".$_GET["method"]."&proxy=".($_GET["useproxy"] ? $_GET["proxy"] : "")."&saveto=".$_GET["path"]."&link=".urlencode($LINK).($_GET["add_comment"] == "on" ? "&comment=".urlencode($_GET["comment"]) : "")."&auth=".$auth.($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : ""));


// by plapla on Nov 25, 2009

?>
Back to Top