is_page($page);
    $Href = $locat . 'loc?pr=1';
    $Url = parse_url($Href);
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $LINK, $cook, 0, 0, $_GET["proxy"], $pauth);
    preg_match('/Location:.+?\\r/i', $page, $loca);
    $redir = rtrim($loca[0]);
    preg_match('/http:.+/i', $redir, $loca);
    $Url = parse_url($loca[0]);
    $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}" : "") . (isset($_GET["audl"]) ? "&audl=doum" : ""));
} else {
    $page = geturl($Url["host"], 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    is_present($page, 'been deleted', 'This file has been deleted');
    is_present($page, 'id="fileError', 'This file has been deleted');
    $cook = biscotti($page);
    $cap_url = $LINK . '?rs=refreshImage&rst=&rsrnd=' . $tmp;
    $Url2 = parse_url($cap_url);
    $page = geturl($Url2["host"], defport($Url2), $Url2["path"] . ($Url2["query"] ? "?" . $Url2["query"] : ""), $LINK, $cook, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $cid = cut_str($page, '"/ccaptcha.php?cid=', '\\"');
    $cap_secret = cut_str($page, 'cap_secret value=', '>');
    if (!is_numeric($cid) || !$cap_secret) {
        html_error('Error retrive link 2');
    }
    $img_link = "http://" . $Url["host"] . '/ccaptcha.php?cid=' . $cid;
    $Url3 = parse_url($img_link);
    $page = geturl($Url3["host"], $Url3["port"] ? $Url3["port"] : 80, $Url3["path"] . ($Url3["query"] ? "?" . $Url3["query"] : ""), $free_link, $cook, 0, 0, $_GET["proxy"], $pauth);
    $headerend = strpos($page, "\r\n\r\n");
    $pass_img = substr($page, $headerend + 10);
    $imgfile = $options['download_dir'] . "badongo_captcha.jpg";
Example #2
0
     }
     return $bis;
 }
 $sendspace_login = $_REQUEST['my_login'];
 $sendspace_pass = $_REQUEST['my_pass'];
 $cook = biscotti($page);
 if ($sendspace_login && $sendspace_pass) {
     $post["action"] = "login";
     $post["username"] = $sendspace_login;
     $post["password"] = $sendspace_pass;
     $post["remember"] = "1";
     $post["submit"] = "login";
     $post["openid_url"] = "";
     $post["action_type"] = "login";
     $page = geturl("www.sendspace.com", 80, "/login.html", "http://www.sendspace.com/login.html", $cook, $post, 0, $_GET["proxy"]);
     $cook = $cook . " " . biscotti($page);
     is_present($cook, "ssal=deleted", "Login incorrect retype your username or password correctly");
     $page = geturl("www.sendspace.com", 80, "/", "http://www.sendspace.com/", $cook, 0, 0, $_GET["proxy"]);
     unset($post);
 } else {
     echo "<br> <b>No enter login & pass</b> to sendspace.com <br><br>";
 }
 $tmp = cut_str($page, 'DESTINATION', '>');
 $DESTINATION_DIR = cut_str($tmp, 'value="', '"');
 $url_action = cut_str($page, 'post" action="', '"');
 $UPLOAD_IDENTIFIER = cut_str($page, 'name=UPLOAD_IDENTIFIER value="', '"');
 $UPLOAD_IDENTIFIER = $UPLOAD_IDENTIFIER ? $UPLOAD_IDENTIFIER : cut_str($page, 'name="UPLOAD_IDENTIFIER" value="', '"');
 $signature = cut_str($page, 'signature" value="', '"');
 if (empty($url_action) || empty($UPLOAD_IDENTIFIER) || empty($DESTINATION_DIR)) {
     html_error("Error retrive upload id" . $page);
 }
<?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);
$cookie = biscotti($page);
is_present($page, "File Not Found");
if (preg_match('%FileSend -(\\r|\\n)*(.*)(\\r|\\n)*</title>%i', $page, $fname)) {
    $FileName = $fname[2];
}
preg_match('/action="(.*dl\\.php\\?.*?)"/i', $page, $loc);
preg_match_all('/\\w{40,44}/i', $page, $comb);
$act = cut_str($loc[0], 'action="', '"');
$Href = $act;
$Url = parse_url($Href);
$FileName = !$FileName ? basename($Url["path"]) : $FileName;
$post = array();
$post[$comb[0][0]] = $comb[0][1];
insert_location("{$PHP_SELF}?filename=none&host=" . $Url["host"] . "&path=" . urlencode($Url["path"] . ($Url["query"] ? "?" . $Url["query"] : "")) . "&referer=" . urlencode($LINK) . "&post=" . urlencode(serialize($post)) . "&cookie=" . urlencode($cookie) . "&email=" . ($_GET["domail"] ? $_GET["email"] : "") . "&partSize=" . ($_GET["split"] ? $_GET["partSize"] : "") . "&proxy=" . ($_GET["useproxy"] ? $_GET["proxy"] : "") . "&saveto=" . $_GET["path"] . "&link=" . urlencode($LINK) . ($_GET["add_comment"] == "on" ? "&comment=" . urlencode($_GET["comment"]) : "") . "&auth=" . $auth . ($pauth ? "&pauth={$pauth}" : ""));
function biscotti($content)
{
    is_page($content);
    preg_match_all("/Set-Cookie: (.*)\n/", $content, $matches);
    foreach ($matches[0] as $coll) {
        $bis .= cut_str($coll, "Set-Cookie: ", "; ") . "; ";
    }
    return $bis;
}