RapidLeetch /hosts/mediafire_com.php

Language PHP Lines 52
MD5 Hash ad5521d47b7f08d8a99c8acaac2a844c Estimated Cost $968 (why?)
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
<?php
if (!defined('RAPIDLEECH'))
  {
  require_once("index.html");
  exit;
  }
	$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);
	preg_match('/Location:.*error/i', $page) ? html_error("Invalid File", 0) : '';
	if(preg_match('/Location: (.*)/i', $page, $redir))
	  {
		$Href = trim($redir[1]);
		$Url = parse_url($Href);
		$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);
	  }
	
	preg_match('/Set-Cookie: (.*)/i', $page, $cook);
	$cookie = $cook[1];
	
	preg_match('/cu\((.*?)\);/', $page, $values);
	$value = preg_split('/\',?\'?/', $values[1], -1, PREG_SPLIT_NO_EMPTY);
	$qk = $value[0];
	$pk = $value[1];
	$r = $value[2];
	
	$Href = "http://www.mediafire.com/dynamic/download.php?qk=$value[0]&pk=$value[1]&r=$value[2]";
	$Url = parse_url($Href);
	$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, $cookie, 0, 0, $_GET["proxy"],$pauth);

	preg_match('%arting.*href=.*http://" \+ ?(.*) ?\+\'/\' ?(.*) \'g/\'\ + ?(.*) ?\+ \'/\' \+ ?(.*) ?\+ \'">%', $page, $parts);
	if (stristr($parts[2],"+")) {
		$temps = explode("+",$parts[2]);
		foreach ($temps as $temp) {
			if (empty($temp)) continue;
			preg_match('/'.trim($temp).' ?= ?\'(.*?)\';/', $page, $temp2);
			$mpath1.= $temp2[1];
		}
	}
	preg_match('/'.trim($parts[1]).' ?= ?\'(.*?)\';/', $page, $mhost);
        $get = $_GET['link'];
        $put = str_replace('http://www.mediafire.com/download.php?', '', $get);
	preg_match('/'.trim($parts[4]).' ?= ?\'(.*?)\';/', $page, $mname);
	
	$Href = 'http://'.$mhost[1].'/'.$mpath1.'g/'.$put.'/'.$mname[1];
	$Url = parse_url($Href);
	$FileName = !$FileName ? basename($Url["path"]) : $FileName;
	insert_location("$PHP_SELF?filename=".urlencode($FileName)."&host=".$Url["host"]."&path=".urlencode($Url["path"].($Url["query"] ? "?".$Url["query"] : ""))."&referer=".urlencode($Referer)."&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" : ""));
	
// edited by mrbrownee70

?>
Back to Top