RapidLeetch /hosts/download/letitbit_net.php

Language PHP Lines 198
MD5 Hash a668aceb022a76a723f7f4c58f04514d
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
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?php

if (!defined('RAPIDLEECH'))
{
    require_once("index.html");
    exit;
}

if (($_GET ["premium_acc"] == "on"  && $_GET ["premium_pass"]) || ($_GET ["premium_acc"] == "on" && $premium_acc ["letitbit"] ["pass"])) {

 $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $LINK, 0, 0, 0, $_GET["proxy"],$pauth);
    is_page($page);
    is_present($page, "The requested file was not found");
    is_present($page, "Gesuchte Datei wurde nicht gefunden", "The requested file was not found");
    is_present($page, "Запрашиваемый файл не найден", "The requested file was not found");

    $cookie=biscottiDiKaox($page);
    $PreForm = cut_str ( $page ,'password here:' ,'</form>' );

    $uid5 = cut_str($PreForm,'uid5" value="','"');
    $uid = cut_str($PreForm,'uid" value="','"');
    $name = cut_str($PreForm,'name="name" value="','"');
    $pin = cut_str($PreForm,'pin" value="','"');
    $realuid = cut_str($PreForm,'realuid" value="','"');
    $realname = cut_str($PreForm,'realname" value="','"');
    $host = cut_str($PreForm,'host" value="','"');
    $ssserver = cut_str($PreForm,'ssserver" value="','"');
    $sssize = cut_str($PreForm,'sssize" value="','"');

    $UrlAct="http://letitbit.net/sms/check2.php";
    $post['pass']=$_GET ["premium_pass"] ? $_GET ["premium_pass"] : $premium_acc ["letitbit"] ["pass"];
    $post['uid5']=$uid5;
    $post['uid']=$uid;
    $post['name']=$name;
    $post['pin']=$pin;
    $post['realuid']=$realuid;
    $post['realname']=$realname;
    $post['host']=$host;
    $post['ssserver']=$ssserver;
    $post['sssize']=$sssize;
    $post['optiondir']='';
    $Url=parse_url($UrlAct);

$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);
    $dlink=slice($page,"Download Master","</table>",3);
    $dwnl=slice($dlink,"<a href='","'",1);
    $Url = parse_url($dwnl);
    $FileName = basename($dwnl);
insert_location("index.php?filename=".urlencode($FileName)."&force_name=".urlencode($FileName)."&host=".$Url["host"]."&port=".$Url["port"]."&path=".urlencode($Url["path"].($Url["query"] ? "?".$Url["query"] : ""))."&referer=".urlencode($Referer)."&cookie=".urlencode($cookie)."&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"]) : "").($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : ""));


}else{
if ($_POST['step'] == 1) {

    $UrlAct="http://letitbit.net/download3.php";
    $post = unserialize(urldecode($_POST["post"]));
	$post['uid2']=$post['uid'];
    $post['cap']=$_POST["captcha"];
    $cookie = urldecode($_POST['cookie']);
    $Url = parse_url($UrlAct);
    $Referer = "http://letitbit.net/download4.php";

    $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(preg_match('/http:\/\/\w{2}\.[^"\']+/', $page, $nextPageArray))
    {
        $nextPage = $nextPageArray[0];
		$Url=parse_url($nextPage);
		$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $UrlAct, $cookie, 0, 0, $_GET["proxy"],$pauth);
		 $wait = cut_str ( $page ,'y = ' ,';' );
        $act2 = cut_str ( $page ,'window.location.href="' ,'"' );
        $Url=parse_url($act2);
		insert_timer($wait);
		$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $act, $cookie, 0, 0, $_GET["proxy"],$pauth);
    }
    else
    {
        html_error("Could not find frame.", 0);
    }
    $snap = cut_str ( $page ,'id="links' ,'</div>' );
    $dwn= cut_str ( $snap ,'href="' ,'"' );
    $Url = parse_url($dwn);
    $FileName = basename($Url["path"]);
    
insert_location("index.php?filename=".urlencode($FileName)."&force_name=".urlencode($FileName)."&host=".$Url["host"]."&port=".$Url["port"]."&path=".urlencode($Url["path"].($Url["query"] ? "?".$Url["query"] : ""))."&referer=".urlencode($Referer)."&cookie=".urlencode($cookie)."&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"]) : "").($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : ""));

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

    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $LINK, 0, 0, 0, $_GET["proxy"],$pauth);
    is_page($page);
    is_present($page, "The requested file was not found");
    is_present($page, "Gesuchte Datei wurde nicht gefunden", "The requested file was not found");
    is_present($page, "Запрашиваемый файл не найден", "The requested file was not found");

    $cookie=biscottiDiKaox($page);
    $FreeForm = cut_str ( $page ,'id="dvifree">' ,'</form>' );

	$act = "http://".cut_str ( $page ,'form action="http://' ,'"' );
    $uid = slice($FreeForm,'name="uid" value="','"',2);
    $md5crypt = cut_str($FreeForm,'="md5crypt" value="','"');
   // $uid2 = cut_str($FreeForm,'name="uid2" value="','"');
    $uid5 = cut_str($FreeForm,'name="uid5" value="','"');
    $name = cut_str($FreeForm,'name="name" value="','"');
    $pin = cut_str($FreeForm,' name="pin" value="','"');
    $realuid = cut_str($FreeForm,'e="realuid" value="','"');
    $realname = cut_str($FreeForm,'="realname" value="','"');
    $host = cut_str($FreeForm,'name="host" value="','"');
    $ssserver = cut_str($FreeForm,'="ssserver" value="','"');
    $sssize = cut_str($FreeForm,'me="sssize" value="','"');


    $post['uid']=$uid;
    $post['md5crypt']=$md5crypt;
    $post['frameset']='Download file';
  //  $post['uid2']=$uid2;
    $post['uid5']=$uid5;
 //   $post['uid']=$uid2;
    $post['name']=$name;
    $post['pin']=$pin;
    $post['realuid']=$realuid;
    $post['realname']=$realname;
    $post['host']=$host;
    $post['ssserver']=$ssserver;
    $post['sssize']=$sssize;
    $post['optiondir']='';
    $post['fix']='1';

	$Url=parse_url($act);
 $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $LINK, $cookie, $post, 0, $_GET["proxy"],$pauth);
	$cookie.= " ".GetCookies($page);
	
if (stristr($page,"cap.php?"))
    {
    $imagecode = cut_str($page,"<img src='http://letitbit.net/cap.php?jpg=","'");
    $img = 'http://letitbit.net/cap.php?jpg='.$imagecode;
    $Url = parse_url($img);
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $LINK, $cookie, 0, 0, $_GET["proxy"],$pauth);

    $headerend = strpos($page,"\r\n\r\n");
    $pass_img = substr($page,$headerend+9);
    write_file($options['download_dir']."letitbit_captcha.jpg", $pass_img);

    $code = '<form method="post" action="'.$PHP_SELF.(isset($_GET["audl"]) ? "?audl=doum" : "").'">'.$nn;
    $code .= '<input type="hidden" name="link" value="'.urlencode($LINK).'">'.$nn;
    $code .= '<input type="hidden" name="post" value="'.urlencode(serialize($post)).'">'.$nn;
    $code .= '<input type="hidden" name="step" value="1">'.$nn;
    $code .= '<input type="hidden" name="cookie" value="'.urlencode($cookie).'">'.$nn;
    $code .= 'Please enter : <img src="'.$options['download_dir'].'letitbit_captcha.jpg?'.rand(1,10000).'"><br><br>'.$nn;
    $code .= '<input type="text" name="captcha"> <input type="submit" value="Download">'.$nn;
    $code .= '</form>';
    echo $code;

    }
  else
    {
    html_error("Image code not found", 0);
    }

}
}
function biscottiDiKaox($content)
 {
     preg_match_all("/Set-Cookie: (.*)\n/",$content,$matches);
     foreach ($matches[1] as $coll) {
     $bis0=split(";",$coll);
     $bis1=$bis0[0]."; ";
     $bis2=split("=",$bis1);
     $cek=" ".$bis2[0]."="; 
     if(strpos($bis1,"=deleted") || strpos($bis1,$cek.";")) {
     }else{
    if  (substr_count($bis,$cek)>0)
    {$patrn=" ".$bis2[0]."=[^ ]+";
    $bis=preg_replace("/$patrn/"," ".$bis1,$bis);     
    } else {$bis.=$bis1;}}}  
    $bis=str_replace("  "," ",$bis);     
    return rtrim($bis);
 }
 // tweaked cutstr with pluresearch functionality
function slice($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 05-dec-09
\*************************/
?>
Back to Top