RapidLeetch /hosts/download/zippyshare_com.php

Language PHP Lines 68
MD5 Hash 4666c8a8eebbe146627263a7aec0431c Estimated Cost $1,114 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php

if (!defined('RAPIDLEECH'))
{
  require_once("index.html");
  exit;
  }
if ($_POST["step"]==1){
    
$LINK=$_POST["link"];
$cookie = $_POST['cookie'];
$FileName = $_POST['filename'];
$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);

//insert_timer("10");

insert_location("$PHP_SELF?filename=".urlencode($FileName)."&force_name=".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"]."&cookie=".urlencode($cookie)."&proxy=".($_GET["useproxy"] ? $_GET["proxy"] : "")."&saveto=".$_GET["path"]."&link=".urlencode($LINK).($_GET["add_comment"] == "on" ? "&comment=".urlencode($_GET["comment"]) : "")."&auth=".$auth.($pauth ? "&pauth=$pauth" : ""));
    
}else{			
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], $Referer, 0, 0, 0, $_GET["proxy"],$pauth);
is_page($page);
if (cutter($page,"Location: ","\r")) html_error( "Probably the link is typed incorrect or old , verify it in your browser." , 0 );
is_present($page,"file does not exist", "The requsted file does not exist on this server.", 0);
$cookie=GetCookies($page);
$FileName=cut_str($page,"Name: </strong>","</font>");
$ss = <<<HTML
<html>
<head>
<title>FormLogin</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form method="post" name="plink" action="$PHP_SELF">
<input id="link" name="link" type="hidden">
<input type="hidden" name="cookie" value="$cookie" >
<input type="hidden" name="step" value="1" > 
<input type="hidden" name="filename" value="$FileName">
</form>
HTML;

preg_match('/(var pong[\s\S]+?)function/i',$page,$scr)  ;
//$script1=cutter($page,'var','function',3);
$script1=$scr[1];
$var=trim(cutter($script1,'var','=',2));
$script1=str_replace($var,"encoded",$script1);
$script=$ss.'<script language="Javascript">'.$script1.'document.getElementById("link").value=encoded; document.plink.submit();</script>' ;

echo ($script);
}

function cutter($str, $left, $right,$cont=1)
	{
    for($iii=1;$iii<=$cont;$iii++){
	$str = substr ( stristr ( $str, $left ), strlen ( $left ) );
	}
    $leftLen = strlen ( stristr ( $str, $right ) );
    $leftLen = $leftLen ? - ($leftLen) : strlen ( $str );
    $str = substr ( $str, 0, $leftLen );
    return $str;
}

/*************************\
 WRITTEN BY KAOX 27-dec-09
\*************************/

?>
Back to Top