Ejemplo n.º 1
0
 public function GetPage($link, $cookie = 0, $post = 0, $referer = 0, $auth = 0, $XMLRequest = 0)
 {
     global $options;
     if (!$referer) {
         global $Referer;
         $referer = $Referer;
     }
     $cURL = $options['use_curl'] && extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec') ? true : false;
     $Url = parse_url(trim($link));
     if ($Url['scheme'] == 'https') {
         $chttps = false;
         if ($cURL) {
             $cV = curl_version();
             if (in_array('https', $cV['protocols'], true)) {
                 $chttps = true;
             }
         }
         if (!extension_loaded('openssl') && !$chttps) {
             html_error('This server doesn\'t support https connections.');
         } elseif (!$chttps) {
             $cURL = false;
         }
     }
     if ($cURL) {
         if ($XMLRequest) {
             $referer .= "\r\nX-Requested-With: XMLHttpRequest";
         }
         $page = cURL($link, $cookie, $post, $referer, $auth);
     } else {
         global $pauth;
         $page = geturl($Url['host'], defport($Url), $Url['path'] . (!empty($Url['query']) ? '?' . $Url['query'] : ''), $referer, $cookie, $post, 0, !empty($_GET['proxy']) ? $_GET['proxy'] : '', $pauth, $auth, $Url['scheme'], 0, $XMLRequest);
         is_page($page);
     }
     return $page;
 }
Ejemplo n.º 2
0
 public function GetPage($link, $cookie = 0, $post = 0, $referer = 0, $auth = 0, $XMLRequest = 0)
 {
     if (!$referer && !empty($GLOBALS['Referer'])) {
         $referer = $GLOBALS['Referer'];
     }
     $cURL = $GLOBALS['options']['use_curl'] && extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec') ? true : false;
     $Url = parse_url(trim($link));
     if (strtolower($Url['scheme']) == 'https') {
         $chttps = false;
         if ($cURL) {
             $cV = curl_version();
             if (in_array('https', $cV['protocols'], true)) {
                 $chttps = true;
             }
         }
         if (!extension_loaded('openssl') && !$chttps) {
             html_error('You need to install/enable PHP\'s OpenSSL extension to support HTTPS connections.');
         } elseif (!$chttps) {
             $cURL = false;
         }
     }
     if ($cURL) {
         if ($XMLRequest) {
             $referer .= "\r\nX-Requested-With: XMLHttpRequest";
         }
         $page = cURL($link, $cookie, $post, $referer, $auth);
     } else {
         global $pauth;
         $page = geturl($Url['host'], defport($Url), $Url['path'] . (!empty($Url['query']) ? '?' . $Url['query'] : ''), $referer, $cookie, $post, 0, !empty($_GET['proxy']) ? $_GET['proxy'] : '', $pauth, $auth, $Url['scheme'], 0, $XMLRequest);
         is_page($page);
     }
     return $page;
 }
Ejemplo n.º 3
0
function putfile($host, $port, $url, $referer, $cookie, $file, $filename, $proxy = 0, $pauth = 0, $upagent = 0, $scheme = 'http')
{
    global $nn, $lastError, $fp, $fs;
    if (empty($upagent)) {
        $upagent = rl_UserAgent;
    }
    $scheme = strtolower("{$scheme}://");
    if (!is_readable($file)) {
        $lastError = sprintf(lang(65), $file);
        return FALSE;
    }
    $fileSize = getSize($file);
    if (!empty($cookie)) {
        if (is_array($cookie)) {
            $cookies = count($cookie) > 0 ? CookiesToStr($cookie) : 0;
        } else {
            $cookies = trim($cookie);
        }
    }
    if ($scheme == 'https://') {
        if (!extension_loaded('openssl')) {
            html_error('You need to install/enable PHP\'s OpenSSL extension to support uploading via HTTPS.');
        }
        $scheme = 'tls://';
        if ($port == 0 || $port == 80) {
            $port = 443;
        }
    }
    if (!empty($referer) && ($pos = strpos("\r\n", $referer)) !== 0) {
        $origin = parse_url($pos ? substr($referer, 0, $pos) : $referer);
        $origin = strtolower($origin['scheme']) . '://' . strtolower($origin['host']) . (!empty($origin['port']) && $origin['port'] != defport(array('scheme' => $origin['scheme'])) ? ':' . $origin['port'] : '');
    } else {
        $origin = ($scheme == 'tls://' ? 'https://' : $scheme) . $host . ($port != 80 && ($scheme != 'tls://' || $port != 443) ? ':' . $port : '');
    }
    if ($proxy) {
        list($proxyHost, $proxyPort) = explode(':', $proxy, 2);
        $host = $host . ($port != 80 && ($scheme != 'tls://' || $port != 443) ? ':' . $port : '');
        $url = "{$scheme}{$host}{$url}";
    }
    if ($scheme != 'tls://') {
        $scheme = '';
    }
    $request = array();
    $request[] = 'PUT ' . str_replace(' ', '%20', $url) . ' HTTP/1.1';
    $request[] = "Host: {$host}";
    $request[] = "User-Agent: {$upagent}";
    $request[] = 'Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1';
    $request[] = 'Accept-Language: en-US,en;q=0.9';
    $request[] = 'Accept-Charset: utf-8,windows-1251;q=0.7,*;q=0.7';
    if (!empty($referer)) {
        $request[] = "Referer: {$referer}";
    }
    if (!empty($cookies)) {
        $request[] = "Cookie: {$cookies}";
    }
    if (!empty($pauth)) {
        $request[] = "Proxy-Authorization: Basic {$pauth}";
    }
    $request[] = "X-File-Name: {$filename}";
    $request[] = "X-File-Size: {$fileSize}";
    $request[] = "Origin: {$origin}";
    $request[] = 'Content-Disposition: attachment';
    $request[] = 'Content-Type: multipart/form-data';
    $request[] = "Content-Length: {$fileSize}";
    $request[] = 'Connection: Close';
    $request = implode($nn, $request) . $nn . $nn;
    $errno = 0;
    $errstr = '';
    $hosts = (!empty($proxyHost) ? $scheme . $proxyHost : $scheme . $host) . ':' . (!empty($proxyPort) ? $proxyPort : $port);
    $fp = @stream_socket_client($hosts, $errno, $errstr, 120, STREAM_CLIENT_CONNECT);
    if (!$fp) {
        if (!function_exists('stream_socket_client')) {
            html_error('[ERROR] stream_socket_client() is disabled.');
        }
        $dis_host = !empty($proxyHost) ? $proxyHost : $host;
        $dis_port = !empty($proxyPort) ? $proxyPort : $port;
        html_error(sprintf(lang(88), $dis_host, $dis_port));
    }
    if ($errno || $errstr) {
        $lastError = $errstr;
        return false;
    }
    if ($proxy) {
        echo '<p>' . sprintf(lang(89), $proxyHost, $proxyPort) . '<br />PUT: <b>' . htmlspecialchars($url) . "</b>...<br />\n";
    } else {
        echo '<p>' . sprintf(lang(90), $host, $port) . '</p>';
    }
    echo lang(104) . ' <b>' . htmlspecialchars($filename) . '</b>, ' . lang(56) . ' <b>' . bytesToKbOrMbOrGb($fileSize) . '</b>...<br />';
    $GLOBALS['id'] = md5(time() * rand(0, 10));
    require TEMPLATE_DIR . '/uploadui.php';
    flush();
    $timeStart = microtime(true);
    $chunkSize = GetChunkSize($fileSize);
    fwrite($fp, $request);
    fflush($fp);
    $fs = fopen($file, 'r');
    $totalsend = $time = $lastChunkTime = 0;
    while (!feof($fs) && !$errno && !$errstr) {
        $data = fread($fs, $chunkSize);
        if ($data === false) {
            fclose($fs);
            fclose($fp);
            html_error(lang(112));
        }
        $sendbyte = @fwrite($fp, $data);
        fflush($fp);
        if ($sendbyte === false || strlen($data) > $sendbyte) {
            fclose($fs);
            fclose($fp);
            html_error(lang(113));
        }
        $totalsend += $sendbyte;
        $time = microtime(true) - $timeStart;
        $chunkTime = $time - $lastChunkTime;
        $chunkTime = $chunkTime > 0 ? $chunkTime : 1;
        $lastChunkTime = $time;
        $speed = round($sendbyte / 1024 / $chunkTime, 2);
        $percent = round($totalsend / $fileSize * 100, 2);
        echo "<script type='text/javascript'>pr('{$percent}', '" . bytesToKbOrMbOrGb($totalsend) . "', '{$speed}');</script>\n";
        flush();
    }
    if ($errno || $errstr) {
        $lastError = $errstr;
        return false;
    }
    fclose($fs);
    fflush($fp);
    $llen = 0;
    $header = '';
    do {
        $header .= fgets($fp, 16384);
        $len = strlen($header);
        if (!$header || $len == $llen) {
            $lastError = lang(91);
            stream_socket_shutdown($fp, STREAM_SHUT_RDWR);
            fclose($fp);
            return false;
        }
        $llen = $len;
    } while (strpos($header, $nn . $nn) === false);
    // Array for active stream filters
    $sFilters = array();
    if (stripos($header, "\nTransfer-Encoding: chunked") !== false && in_array('dechunk', stream_get_filters())) {
        $sFilters['dechunk'] = stream_filter_append($fp, 'dechunk', STREAM_FILTER_READ);
    }
    // Add built-in dechunk filter
    $page = '';
    do {
        $data = @fread($fp, 16384);
        if ($data == '') {
            break;
        }
        $page .= $data;
    } while (!feof($fp) && strlen($data) > 0);
    stream_socket_shutdown($fp, STREAM_SHUT_RDWR);
    fclose($fp);
    if (stripos($header, "\nTransfer-Encoding: chunked") !== false && empty($sFilters['dechunk']) && function_exists('http_chunked_decode')) {
        $dechunked = http_chunked_decode($page);
        if ($dechunked !== false) {
            $page = $dechunked;
        }
        unset($dechunked);
    }
    $page = $header . $page;
    return $page;
}
Ejemplo n.º 4
0
    $page = geturl("www.upfordown.com", 80, "/myfiles", "http://www.upfordown.com/", $cookies, 0, 0, "");
    is_page($page);
    is_notpresent($page, 'HTTP/1.1 200 OK', 'Error logging in - are your logins correct?Second');
    ?>
<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrive upload ID</div>
<?php 
    $ref = 'http://www.upfordown.com/upload';
    $Url = parse_url($ref);
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $upAPC = cut_str($page, 'name="APC_UPLOAD_PROGRESS" value="', '"');
    $post['APC_UPLOAD_PROGRESS'] = $upAPC;
    $post['action'] = "upload";
    $post['upload_to'] = "";
    $post['create_img_tags'] = "1";
    $post['thumbnail_size'] = "small";
    $post['upload_to'] = "";
    $url = parse_url('http://www.upfordown.com/upload.php');
    ?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
    $upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://www.upfordown.com/', $cookies, $post, $lfile, $lname, "file0");
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    $ddl = cut_str($upfiles, 'http://www.upfordown.com/files/download/', "',");
    $download_link = 'http://www.upfordown.com/files/download/' . $ddl;
}
// Made by Baking 09/07/2009 18:07
Ejemplo n.º 5
0
$ref = 'http://www.fast-load.net/';
$page = geturl("www.fast-load.net", 80, "/", "", 0, 0, 0, "");
is_page($page);
//            $cook = trim(cut_str($page,"Cookie:",";"));
$ifurl = cut_str($page, '<iframe', '</iframe>');
$ifurl = cut_str($ifurl, 'src="', '"');
if (!$ifurl) {
    html_error('Error get iframe url');
}
$Url = parse_url($ifurl);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$servid = cut_str($page, 'name="serverid" value="', '"');
$post['user'] = '';
$post['password'] = '';
$post['ref'] = '';
$post['serverid'] = $servid ? $servid : '21';
?>
	<script>document.getElementById('info').style.display='none';</script>
<?php 
$upfiles = upfile($Url["host"], defport($Url), "/upload.php", "", 0, $post, $lfile, $lname, "gfile");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
//            is_notpresent($upfiles,"ok","Error Upload File!".$upfiles);
$tmp = cut_str($upfiles, "Download", true);
$download_link = cut_str($tmp, 'value="', '"');
$tmp = cut_str($tmp, "Delete", true);
$delete_link = cut_str($tmp, 'value="', '"');
// sert 19.07.2008
Ejemplo n.º 6
0
    $cookie = $temp[1];
    $cookies = implode(';', $cookie);
    ?>
<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrive upload ID</div>
<?php 
    $ref = 'http://www.cinshare.com/upload/local';
    $Url = parse_url($ref);
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://www.cinshare.com/', $cookies, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $rndid = cut_str($page, 'var fid = genRandId(', ')');
    $uid = cut_str($page, '<input id="uid" type="hidden" value="', '"');
    $ID = GRC();
    $servup = cut_str($page, "var curServer = '", "'");
    $post['Filename'] = $lname;
    $post['Upload'] = 'Submit Query';
    $url = parse_url($servup . "/upload/process/" . $ID . "/" . $uid);
    $upagent = "Shockwave Flash";
    $upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, 0, $post, $lfile, $lname, "Filedata", 0, $upagent);
    is_page($upfiles);
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    $Url = parse_url('http://www.cinshare.com/upload/getLinks/' . $ID);
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://www.cinshare.com/', 0, 0, 0, $_GET["proxy"], $pauth);
    $ddl = cut_str($page, 'value="http://www.cinshare.com/videos/watch/', '"');
    $download_link = "http://www.cinshare.com/videos/watch/" . $ddl;
    $delete_link = "http://www.cinshare.com/files/delete/" . $ID;
}
// Made by Baking 30/07/2009 16:55
// Fixed by Baking 09/11/2009 12:42
Ejemplo n.º 7
0
<?php 
$ref = 'http://ugotfile.com/';
$Url = parse_url($ref);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
?>
<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrive upload ID</div>
<?php 
$upload_srv = cut_str($page, 'uploadServer = "', '"');
$upload_sid = cut_str($page, 'upload_url: uploadServer+"/upload/web?PHPSESSID=', '"');
$upload_form = $upload_srv . "/upload/web?PHPSESSID=" . $upload_sid;
$url = parse_url($upload_form);
$post['Filename'] = $lname;
$post['destinationFolder'] = 'You must login to save files to your destination folder';
$post['Upload'] = 'Submit Query';
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
$upagent = "Shockwave Flash";
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, $cookies, $post, $lfile, $lname, "Filedata", 0, $upagent);
is_page($upfiles);
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
$ddl = cut_str($upfiles, "/file", '"');
$del = cut_str($upfiles, '?remove=', '"');
$ddl1 = 'http://ugotfile.com/file' . str_replace('\\', "", $ddl);
$download_link = $ddl1;
$delete_link = $ddl1 . '?remove=' . $del;
// Made by Baking 15/12/2009 17:42
Ejemplo n.º 8
0
        html_error("Error: Cannot find session value.", 0);
    }
    $post['upload_type'] = "file";
    $post['sess_id'] = $xfss;
    $post['srv_tmp_url'] = cut_str($page, 'name="srv_tmp_url" value="', '"');
    $post['ut'] = "file";
    $post['link_rcpt'] = "";
    $post['link_pass'] = "";
    $post['tos'] = 1;
    $post['submit_btn'] = "  ";
    $up_url = "{$up[1]}/?upload_id={$uid}&js_on=1&utype=reg&upload_type=file";
    ?>
<script type="text/javascript">document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($up_url);
    $upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://filedino.com/", $cookie, $post, $lfile, $lname, "file_0");
    ?>
<script type="text/javascript">document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    $post = array();
    $post['op'] = "upload_result";
    $post['fn'] = cut_str($upfiles, " name='fn'>", "<");
    $post['st'] = "OK";
    $page = geturl("www.filedino.com", 80, "/", $up_url, $cookie, $post, 0, $_GET["proxy"], $pauth);
    is_page($page);
    if (preg_match('@(http://(www\\.)?filedino\\.com/\\w+)\\?killcode=\\w+@i', $page, $lnk)) {
        $download_link = $lnk[1];
        $delete_link = $lnk[0];
    } else {
        html_error("Download link not found.", 0);
Ejemplo n.º 9
0
//			$post["zshare"]='on';
$post["netload"] = 'on';
//			$post["easyshare"]='on';
$post["loadto"] = 'on';
$post["rapidshare"] = 'on';
$post["mediafire"] = 'on';
$post["zippyshare"] = 'on';
$post["megashare"] = 'on';
$url = parse_url($ref . 'cgi/ubr_upload.pl?upload_id=' . $uid);
$upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $ref, 0, $post, $lfile, $lname, "upfile_0");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<div id=final width=100% align=center>Get final code</div>
<?php 
is_page($upfiles);
$finish_url = trim(cut_str($upfiles, 'Location:', "\n"));
if (!$finish_url) {
    html_error('Error get location');
}
$Url = parse_url($finish_url);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $ref, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$tmp = cut_str($page, 'link is: <a href="', '">');
if (!$tmp) {
    html_error('Error get finish url');
}
$download_link = $ref . $tmp;
?>
<script>document.getElementById('final').style.display='none';</script>
<?php 
// sert 28.02.2009 - by pL413R - www.ultrashare.info
Ejemplo n.º 10
0
    $url = parse_url($url_action . $ids);
    ?>
	<script>document.getElementById('info').style.innerHTML='Uploading...';</script>
<?php 
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://uploadbox.com/?ac=upload", $cooks, array(), $lfile, $lname, "filepc");
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match('/Location:.+?\\r/i', $upfiles, $loca);
    $redir = rtrim($loca[0]);
    preg_match('/http:.+/i', $redir, $loca);
    //$tmp='http://progress3.uploadbox.com/upload_status.cgi?uid='.$ids.'&nfiles=1&xmode=1&lang=en&files=:"'.$lname.'"&inline=1';
    $Url = parse_url($loca[0]);
    //$tmp1 = $tmp;
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://uploadbox.com/?ac=upload', $cook, 0, 0, $_GET["proxy"], $pauth);
    /*
    $rnd="0.".rand(100000,999999).rand(100000,999999);
    $tmp='http://progress3.uploadbox.com/upload_status.cgi?uid='.$ids.'&ajax2=1&num=0&lang=en&rnd='.$rnd;
    $Url=parse_url($tmp);
    $page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $tmp1, $cook, 0, 0, $_GET["proxy"],$pauth);
    is_page($page);
    is_notpresent ($page,'saved successfully','File not upload');
    $tmp=cut_str($page,"<a href='","'");
    if (!$tmp) html_error ('Error get url');
    */
    $download_link = cut_str($page, "[URL=", "/]");
    preg_match('/http:\\/\\/uploadbox.com\\/delete\\/\\w+/i', $page, $del);
    $delete_link = $del[0];
}
// fixed by kaox 22/06/2009
Ejemplo n.º 11
0
$Url["path"] = str_replace("download.php", "", $Url["path"]);
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $Referer, 0, $_GET["password"] ? array("downloadp" => $_GET["password"]) : 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$cookie = cut_str($page, 'Set-Cookie: ', ' ');
if ($location = trim(cut_str($page, "Location: ", "\n"))) {
    if (strstr($location, "http://download")) {
        $Href = $location;
        $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}" : "") . (isset($_GET["audl"]) ? "&audl=doum" : ""));
        die;
    }
    if (strstr($location, "error.php?")) {
        html_error('Invalid or Deleted File');
    }
    $page = geturl($Url["host"], defport($Url), $location, $cookie, 0, 0, 0, $_GET["proxy"], $pauth);
    if ($tmp = cut_str($page, 'Set-Cookie: ', ' ')) {
        $cookie = $tmp;
    }
    $Referer = "http://www.mediafire.com{$location}";
} else {
    $Referer = $LINK;
}
if (stristr($page, "Eo();  dh('')")) {
    print "<form name=\"dl\" action=\"{$PHP_SELF}\" method=\"post\">\n";
    print "<input type=\"hidden\" name=\"link\" value=\"" . urlencode($LINK) . "\">\n<input type=\"hidden\" name=\"referer\" value=\"" . urlencode($Referer) . "\">";
    print "<input type=\"hidden\" name=\"comment\" id=\"comment\" value=\"" . $_GET["comment"] . "\">\n<input type=\"hidden\" name=\"email\" id=\"email\" value=\"" . $_GET["email"] . "\">\n<input type=\"hidden\" name=\"partSize\" id=\"partSize\" value=\"" . $_GET["partSize"] . "\">\n<input type=\"hidden\" name=\"method\" id=\"method\" value=\"" . $_GET["method"] . "\">\n";
    print "<input type=\"hidden\" name=\"proxy\" id=\"proxy\" value=\"" . $_GET["proxy"] . "\">\n<input type=\"hidden\" name=\"proxyuser\" id=\"proxyuser\" value=\"" . $_GET["proxyuser"] . "\">\n<input type=\"hidden\" name=\"proxypass\" id=\"proxypass\" value=\"" . $_GET["proxypass"] . "\">\n<input type=\"hidden\" name=\"path\" id=\"path\" value=\"" . $_GET["path"] . "\">\n";
    print "<h4>Enter password here: <input type=\"text\" name=\"password\" size=\"13\">&nbsp;&nbsp;<input type=\"submit\" onclick=\"return check()\" value=\"Download File\"></h4>\n";
    print "<script language=\"JavaScript\">" . $nn . "function check() {" . $nn . "var imagecode=document.dl.imagestring.value;" . $nn . 'if (imagecode == "") { window.alert("You didn\'t enter the image verification code"); return false; }' . $nn . 'else { return true; }' . $nn . '}' . $nn . '</script>' . $nn;
    print "</form>\n</body>\n</html>";
    $post['file_descr[0]'] = "";
    $post['file_password[0]'] = "";
    $post['flash_descr'] = "";
    $post['flash_password'] = "";
    $post['uploadurl[0]'] = "";
    $post['url_descr[0]'] = "";
    $post['url_password[0]'] = "";
    $url = parse_url($upfrm);
    ?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
    $upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://www.upfordown.com/', $cookies, $post, $lfile, $lname, "uploadfile_0");
    $locat = trim(cut_str($upfiles, 'Location:', "\n"));
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    $locat = trim(cut_str($upfiles, 'Location:', "\n"));
    $Url = parse_url($locat);
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://server1.uploadmachine.com/', $cookies, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $Url = parse_url('http://www.uploadmachine.com/members.php?showlinks=1');
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://www.uploadmachine.com/', $cookies, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $temp = cut_str($page, 'this text">' . $lname, ' target=blank>http://www.uploadmachine.com/delete.php?');
    $ddl = cut_str($page, 'http://www.uploadmachine.com/file/', '"');
    $del = cut_str($page, 'http://www.uploadmachine.com/delete.php?id=', '"');
    $download_link = 'http://www.uploadmachine.com/file/' . $ddl;
    $delete_link = 'http://www.uploadmachine.com/delete.php?id=' . $del;
}
// Made by Baking 13/07/2009 15:22
        fflush($fp);
        while (!feof($fp)) {
            $data = fgets($fp, 1024);
            if ($data === false) {
                break;
            }
            $page .= $data;
        }
        fclose($fp);
        return $page;
    }
    ?>
				<script>document.getElementById('info').style.display='none';</script>
                <div id='info' width='100%' align='center' style="font-weight:bold; font-size:14px">Upload File</div> 
 <?php 
    $upfiles = upfileput($url['host'], defport($url), $url['path'] . ($url['query'] ? '?' . $url['query'] : ''), 'http://filejungle.com/upload.php', $cookies, $post, $lfile, $lname, '');
    $not_done = false;
    ?>
				<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    preg_match('#shortenCode":"(.+)"}#', $upfiles, $ddl);
    preg_match('#deleteCode":"(.+)","fileName"#', $upfiles, $del);
    if (!empty($ddl[1])) {
        $download_link = 'http://www.filejungle.com/f/' . $ddl[1] . '/' . $lname;
    } else {
        html_error('Didn\'t find downloadlink!');
    }
    if (!empty($del[1])) {
        $delete_link = 'http://www.filejungle.com/f/' . $ddl[1] . '/delete/' . $del[1];
    } else {
        html_error('Didn\'t find deletelink!');
    if ($dc <= 0) {
        html_error('Error: Cannot get upload server.');
    }
    $up_url = $client->getUploadFormUrl($dc, $session);
    if (!$up_url) {
        html_error('Error: Cannot get upload url.');
    }
    $fid = $client->uploadStartFile($user, $pass, -1, $lname, $fsize);
    if (!$fid) {
        html_error('Error: Cannot get upload id.');
    }
    $post = array();
    $post['resumableFileId'] = $fid;
    $post['resumableFirstByte'] = 0;
    // Uploading
    echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
    $url = parse_url($up_url);
    $upfiles = upfile($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), 0, 0, $post, $lfile, $lname, 'FilePart', '', $_GET['proxy'], $pauth);
    // Upload Finished
    echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
    is_page($upfiles);
    $finish = $client->uploadFinishFile($user, $pass, $fid, md5_file($lfile));
    if (is_soap_fault($finish)) {
        html_error('[' . $finish->faultcode . '] ' . htmlentities($finish->faultstring));
    } elseif ($finish != '') {
        html_error('Upload error: ' . htmlentities($finish));
    }
    $fileinfo = $client->getFileInfo($user, $pass, $fid);
    $download_link = $fileinfo->downloadLink;
}
//[09-4-2013] Written by Th3-822
Ejemplo n.º 15
0
<table width=600 align=center>
</td></tr>
<tr><td align=center>
<?php 
$url = parse_url('http://www.imagehost.org/');
$post["a"] = "upload";
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://www.imagehost.org/', 0, $post, $lfile, $lname, "file[]");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
$tmp = cut_str($upfiles, 'Download Link</td>', '</tr>');
$ddl = cut_str($tmp, 'size="50" value="', '"');
$download_link = $ddl;
// Made by Baking 05/09/2009 14:12
Ejemplo n.º 16
0
function Login($user, $pass)
{
    global $default_acc, $cookie, $domain, $referer, $pauth;
    $errors = array('CaptchaInvalid' => 'Wrong CAPTCHA entered.', 'InvalidLogIn' => 'Invalid Login/Pass.', 'CaptchaRequired' => 'Captcha Required.');
    if (!empty($_POST['step']) && $_POST['step'] == '1') {
        if (empty($_POST['recaptcha_response_field'])) {
            html_error('You didn\'t enter the image verification code.');
        }
        $post = array('recaptcha_challenge_field' => $_POST['recaptcha_challenge_field'], 'recaptcha_response_field' => $_POST['recaptcha_response_field']);
        $post['login'] = urlencode($user);
        $post['password'] = urlencode($pass);
        $page = geturl($domain, 80, '/api/user/login', $referer . 'login.php?return=%2F', $cookie, $post, 0, $_GET['proxy'], $pauth);
        is_page($page);
        $json = Get_Reply($page);
        if (!empty($json['error'])) {
            html_error('Login Error' . (!empty($errors[$json['error']]) ? ': ' . $errors[$json['error']] : '..'));
        } elseif ($json['status'] != 'OK') {
            html_error('Login Failed');
        }
        $cookie = GetCookiesArr($page, $cookie);
        if (empty($cookie['autologin'])) {
            html_error('Login Error: Cannot find "autologin" cookie');
        }
        SaveCookies($user, $pass);
        // Update cookies file
        return true;
    } else {
        $post = array();
        $post['login'] = urlencode($user);
        $post['password'] = urlencode($pass);
        $page = geturl($domain, 80, '/api/user/login', $referer . 'login.php?return=%2F', $cookie, $post, 0, $_GET['proxy'], $pauth);
        is_page($page);
        $json = Get_Reply($page);
        if (!empty($json['error']) && $json['error'] != 'CaptchaRequired') {
            html_error('Login Error' . (!empty($errors[$json['error']]) ? ': ' . $errors[$json['error']] : '.'));
        } elseif ($json['status'] == 'OK') {
            $cookie = GetCookiesArr($page, $cookie);
            if (empty($cookie['autologin'])) {
                html_error('Login Error: Cannot find "autologin" cookie.');
            }
            SaveCookies($user, $pass);
            // Update cookies file
            return true;
        } elseif (empty($json['error']) || $json['error'] != 'CaptchaRequired') {
            html_error('Login Failed.');
        }
        // Captcha Required
        $page = geturl($domain, 80, '/login.php?return=%2F', $referer, $cookie, 0, 0, $_GET['proxy'], $pauth);
        is_page($page);
        $cookie = GetCookiesArr($page, $cookie);
        if (!preg_match('@(https?://([^/\\r\\n\\t\\s\'\\"<>]+\\.)?(?:depositfiles|dfiles)\\.[^/:\\r\\n\\t\\"\'<>]+(?:\\:\\d+)?)/js/base2\\.js@i', $page, $jsurl)) {
            html_error('Cannot find captcha.');
        }
        $jsurl = empty($jsurl[1]) ? 'http://' . $domain . $jsurl[0] : $jsurl[0];
        $jsurl = parse_url($jsurl);
        $page = geturl($jsurl['host'], defport($jsurl), $jsurl['path'] . (!empty($jsurl['query']) ? '?' . $jsurl['query'] : ''), $referer . 'login.php?return=%2F', $cookie, 0, 0, $_GET['proxy'], $pauth);
        is_page($page);
        if (!preg_match('@recaptcha_public_key\\s*=\\s*[\'\\"]([\\w\\-]+)@i', $page, $cpid)) {
            html_error('reCAPTCHA Not Found.');
        }
        $post = array('action' => 'FORM');
        $post['step'] = '1';
        if (!$default_acc) {
            $post['up_encrypted'] = 'true';
            $post['up_login'] = urlencode(encrypt($user));
            $post['up_pass'] = urlencode(encrypt($pass));
        }
        Show_reCaptcha($cpid[1], $post, 'Login');
    }
}
Ejemplo n.º 17
0
    } else {
        echo "<br><b>Error Login. Use no member upload</b><br>";
    }
}
$page = geturl("www.rapidshare.ru", 80, "/", "", 0, 0, 0, "");
is_page($page);
$tmp = cut_str($page, 'id=actionurl', '/>');
$action_url = cut_str($tmp, 'value="', '"');
if (!$action_url) {
    html_error("Error retrive upload id <br>" . $page);
}
$url = parse_url($action_url);
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
@($upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $ref, $cookies, 0, $lfile, $lname, "fl1"));
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
//			is_notpresent($upfiles,"ok","Error Upload File!".$upfiles);
$location = trim(cut_str($upfiles, "Location: ", "\n"));
if (!$location) {
    html_error("Error upload file <br>" . $page);
}
$url = parse_url($location);
$page = geturl($url["host"], defport($url), $url['path'] . ($url["query"] ? "?" . $url["query"] : ""), $ref, $cookies, 0, 0, 0, 0);
is_page($page);
is_notpresent($page, "{$lname}", "Error Upload file <br>" . $page);
$download_link = cut_str($page, '[URL]', '[/URL]');
// sert 22.06.2008
Ejemplo n.º 18
0
    $temp = cut_str($page, "uploadform", ">");
    $action_url = cut_str($temp, 'action="', '"');
    $url = parse_url($action_url);
    unset($post);
    $post["sessionid"] = cut_str($temp, "sid=", "&");
    $post["UploadSession"] = $post["sessionid"];
    $post["AccessKey"] = cut_str($page, 'AccessKey" value="', '"');
    $post["maxfilesize"] = cut_str($temp, 'maxfilesize" value="', '"');
    $post["phpuploadscript"] = cut_str($page, 'phpuploadscript" value="', '"');
    $post["returnurl"] = cut_str($page, 'returnurl" value="', '"');
    $post["uploadmode"] = 1;
    ?>
 
<script>document.getElementById('info').style.display='none';</script> 
<?php 
    $upfiles = upfile($url['host'], defport($url), $url['path'] . "?" . $url["query"], $ref, 0, $post, $lfile, $lname, "uploadfile_0");
    ?>
 
<script>document.getElementById('progressblock').style.display='none';</script> 
<div id=info2 width=100% align=center>Get links</div> 
<?php 
    is_page($upfiles);
    $temp2 = trim(cut_str($upfiles, "Location: ", "\n"));
    $locat = parse_url($temp2);
    sleep(5);
    flush();
    $page2 = geturl($locat["host"], 80, $locat['path'] . "?" . $locat["query"], $ref, 0, 0, 0, 0, 0);
    $path = "/emaillinks.php?UploadSession=" . $post["UploadSession"] . "&AccessKey=" . $post["AccessKey"] . "&uploadmode=1&submitnums=0&fromemail=&toemail=";
    $page3 = geturl($Url["host"], 80, $path, $ref, 0, 0, 0, 0, 0);
    is_page($page3);
    $download_link = trim(cut_str($page3, 'downloadurl">', '<'));
Ejemplo n.º 19
0
 $post['sess_id'] = cut_str($page, 'name="sess_id" value="', '"');
 $post['srv_tmp_url'] = cut_str($page, 'name="srv_tmp_url" value="', '"');
 $post['link_rcpt'] = '';
 $post['link_pass'] = '';
 $post['file_0_descr'] = 'Uploaded by Rapidleech.';
 $post['file_0_public'] = '1';
 $post['tos'] = '1';
 $post['submit_btn'] = ' Upload! ';
 $up_url = $up[1] . "?upload_id={$uid}&js_on=1";
 if (!$IsXfsFree) {
     $up_url .= '&utype=' . cut_str($page, "var utype='", "'") . '&upload_type=file';
 }
 // Uploading
 echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
 $url = parse_url($up_url);
 $upfiles = upfile($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), $referer, $cookie, $post, $lfile, $lname, 'file_0', '', $_GET['proxy'], $pauth);
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
 is_page($upfiles);
 if (!$IsXfsFree) {
     $post = array();
     $post['op'] = 'upload_result';
     if (!preg_match('@name=[\'\\"]fn[\'\\"](?:(?:[\\s\\t]*>)|(?:[\\s\\t]*value=[\'\\"]))([^\'\\"<>]+)@i', $upfiles, $fn)) {
         html_error('Error: fn value not found.');
     }
     $post['fn'] = trim($fn[1]);
     $post['st'] = 'OK';
 } else {
     $page = cut_str($upfiles, '<Form name=\'F1\'', '</Form>');
     if (!preg_match_all('@<textarea [^<>]*name=\'([^\']+)\'[^<>]*>([^>]*)</textarea>@i', $page, $textareas)) {
         html_error('Error: upload_result data not found.');
Ejemplo n.º 20
0
<div id=info width=100% align=center>Retrive upload ID</div>
<?php 
$page = geturl("upload.com.ua", 80, "/", "", 0, 0, 0, "");
is_page($page);
$cookie = GetCookies($page);
$action_url = cut_str($page, 'form-data" action="', '"');
if (empty($action_url)) {
    html_error("Error retrive action url!");
}
$url = parse_url($action_url);
$post['UPLOAD_IDENTIFIER'] = cut_str($page, 'DENTIFIER" type="hidden" value="', '"');
$post['description'] = $descript;
$post['agreed'] = 1;
$post['ispublic'] = 0;
// файл в паблик, если приват - закоментировать
?>
<script>document.getElementById('info').style.display='none';</script>
    
<table width=600 align=center>
</td></tr>
<tr><td align=center>
<?php 
$upfiles = upfile($url['host'], defport($url), $url['path'] . "?" . $url["query"], "http://upload.com.ua", $cookie, $post, $lfile, $lname, "file2upload0");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
$download_link = trim(cut_str($upfiles, "ocation:", "\n"));
if (empty($download_link)) {
    print_r($upfiles);
    html_error("Error retrive download link!");
}
Ejemplo n.º 21
0
    $post = array('filename' => $lname);
    $page = geturl('open.ge.tt', 80, '/1/files/' . urlencode($share['sharename']) . '/create?accesstoken=' . urlencode($userInfo['accesstoken']) . '&t=' . jstime(), $referer, $cookie, json_encode($post), 0, $_GET['proxy'], $pauth);
    is_page($page);
    $file = json2array($page, 'Create File Error');
    if (empty($file['getturl'])) {
        html_error('Download link not found.');
    }
    if (empty($file['upload']['posturl'])) {
        html_error('Upload URL not Found.');
    }
    // posturl		puturl
    // Uploading
    echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
    $url = parse_url($file['upload']['posturl']);
    // .'&nounce='.exports_uuid()
    $upfiles = upfile($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), $file['getturl'], $cookie, array(), $lfile, $lname, 'blob', '', $_GET['proxy'], $pauth, 0, $url['scheme']);
    //$upfiles = putfile($url['host'], defport($url), $url['path'].(!empty($url['query']) ? '?'.$url['query'] : ''), $file['getturl'], $cookie, $lfile, $lname, $_GET['proxy'], $pauth, 0, $url['scheme']);
    // Upload Finished
    echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
    is_page($upfiles);
    if (stripos($upfiles, 'computer says yes') === false) {
        textarea($upfiles);
        html_error('Unknown Upload Error.');
    }
    $download_link = $file['getturl'];
}
function json2array($content, $errorPrefix = 'Error')
{
    if (!function_exists('json_decode')) {
        html_error('Error: Please enable JSON in php.');
    }
Ejemplo n.º 22
0
<?php 
$url = "http://www.sharehoster.de";
$Url = parse_url($url);
$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);
$uid = $i = 0;
while ($i < 32) {
    $i++;
}
$uid += floor(rand() * 16) . "16";
$upfrom = "upload01.sharehoster.de";
$post["Upload"] = "Submit Query";
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
$url = parse_url('http://' . $upfrom . '/upload.php?redirect=yes&X-Progress-ID=' . $uid);
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://' . $upfrom . '/', 0, $post, $lfile, $lname, "userfile");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
preg_match_all('/Set-Cookie: (.*);/U', $page, $temp);
$cookie = $temp[1];
$cookies = implode(';', $cookie);
$locat = trim(cut_str($upfiles, 'Location:', "\n"));
$Url = parse_url($locat);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://www.sharehoster.de/', $cookies, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$download_link = 'http://www.sharehoster.de/dl/' . cut_str($page, "filelist[0]['id'] = '", "'");
$delete_link = 'http://www.sharehoster.de/del/' . cut_str($page, "filelist[0]['id'] = '", "'") . "/" . cut_str($page, "filelist[0]['ident'] = '", "'");
// Made by Baking 16/10/2009 07:48
Ejemplo n.º 23
0
 while (strpos($pathWithName, "\\\\") !== false) {
     $pathWithName = str_replace("\\\\", "\\", $pathWithName);
 }
 if (strpos($pathWithName, '?') !== false) {
     $pathWithName = substr($pathWithName, 0, strpos($pathWithName, '?'));
 }
 echo "<script type='text/javascript'>updateStatus({$i}, '" . lang(26) . "');</script>{$nn}";
 $url = parse_url($_GET['link']);
 if (empty($url['port'])) {
     $url['port'] = $_GET['port'];
 }
 if (isset($url['scheme']) && $url['scheme'] == 'ftp' && empty($_GET['proxy'])) {
     $file = getftpurl($_GET['host'], defport($url), urldecode($_GET['path']), $pathWithName);
 } else {
     !empty($_GET['force_name']) ? $force_name = urldecode($_GET['force_name']) : '';
     $file = geturl($_GET['host'], defport($url), $_GET['path'], $_GET['referer'], $_GET['cookie'], $_GET['post'], $pathWithName, $_GET['proxy'], $pauth, $auth, $url['scheme']);
 }
 if ($options['redir'] && $lastError && strpos($lastError, substr(lang(95), 0, strpos(lang(95), '%1$s'))) !== false) {
     $redirectto = trim(cut_str($lastError, substr(lang(95), 0, strpos(lang(95), '%1$s')), ']'));
     $_GET['referer'] = urlencode($_GET['link']);
     if (strpos($redirectto, '://') === false) {
         // If redirect doesn't have the host
         $ref = parse_url(urldecode($_GET['referer']));
         unset($ref['user'], $ref['pass'], $ref['query'], $ref['fragment']);
         if (substr($redirectto, 0, 1) != '/') {
             $redirectto = "/{$redirectto}";
         }
         $purl = array_merge($ref, parse_url($redirectto));
     } else {
         $purl = parse_url($redirectto);
     }
Ejemplo n.º 24
0
function vk_GetPage($link, $cookie = 0, $post = 0, $referer = 0, $auth = 0, $XMLRequest = 0)
{
    if (!$referer && !empty($GLOBALS['Referer'])) {
        $referer = $GLOBALS['Referer'];
    }
    if ($GLOBALS['usecurl']) {
        if ($XMLRequest) {
            $referer .= "\r\nX-Requested-With: XMLHttpRequest";
        }
        $page = cURL($link, $cookie, $post, $referer, $auth);
    } else {
        global $pauth;
        $Url = parse_url($link);
        $page = geturl($Url['host'], defport($Url), $Url['path'] . (!empty($Url['query']) ? '?' . $Url['query'] : ''), $referer, $cookie, $post, 0, !empty($_GET['proxy']) ? $_GET['proxy'] : '', $pauth, $auth, $Url['scheme'], 0, $XMLRequest);
        is_page($page);
    }
    return $page;
}
Ejemplo n.º 25
0
    while ($i < 12) {
        $i++;
    }
    $uid += floor(rand() * 10);
    $post['upload_type'] = 'file';
    $post['sess_id'] = $xfss;
    $post['link_rcpt'] = '';
    $post['tos'] = '1';
    $post['submit_btn'] = ' Upload! ';
    $uurl = $upfrm . '/cgi-bin/upload.cgi?upload_id=' . $uid . '&js_on=1&utype=reg&upload_type=file';
    $url = parse_url($upfrm . '/cgi-bin/upload.cgi?upload_id=' . $uid . '&js_on=1&utype=reg&upload_type=file');
    ?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
    $upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $ref, $cookies, $post, $lfile, $lname, "file_0");
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    $locat = cut_str($upfiles, 'rea name=\'fn\'>', '</textarea>');
    unset($post);
    $gpost['fn'] = "{$locat}";
    $gpost['st'] = "OK";
    $gpost['op'] = "upload_result";
    $Url = parse_url($ref);
    $page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://metahyper.com/', $cookies, $gpost, 0, $_GET["proxy"], $pauth);
    $ddl = cut_str($page, 'Download Link:</b></td><td colspan=2><a href="', '"');
    $del = cut_str($page, "?killcode=", '"');
    $download_link = $ddl;
    $delete_link = $ddl . "?killcode=" . $del;
}
// Made by Baking 21/07/2009 12:04
Ejemplo n.º 26
0
function Login($user, $pass)
{
    global $upload_acc, $cookie, $domain, $referer, $pauth;
    if (!empty($_POST['step']) && $_POST['step'] == '1') {
        if (empty($_POST['captcha'])) {
            html_error('You didn\'t enter the image verification code.');
        }
        $cookie = StrToCookies(decrypt(urldecode($_POST['cookie'])));
        $post = array();
        $post['user'] = urlencode($user);
        $post['pass'] = urlencode($pass);
        $post['captcha_code'] = urlencode($_POST['captcha']);
        $post['remember'] = 1;
        $post['login_submit'] = 'Login';
        $page = geturl($domain, 80, '/authenticate.php?login', $referer . 'authenticate.php?login', $cookie, $post, 0, $_GET['proxy'], $pauth);
        is_page($page);
        $cookie = GetCookiesArr($page, $cookie);
        if (stripos(substr($page, 0, strpos($page, "\r\n\r\n")), "\nLocation: ") !== false && preg_match('@\\nLocation: ((https?://[^/\\r\\n]+)?/authenticate\\.php[^\\r\\n]*)@i', substr($page, 0, strpos($page, "\r\n\r\n")), $redir)) {
            $url = parse_url(empty($redir[2]) ? 'http://www.putlocker.com' . $redir[1] : $redir[1]);
            $page = geturl($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), $referer . 'authenticate.php?login', $cookie, 0, 0, $_GET['proxy'], $pauth);
            is_page($page);
            $cookie = GetCookiesArr($page, $cookie);
        }
        is_present($page, 'No such username or wrong password', 'Login Failed: Email/Password incorrect.');
        is_present($page, 'Please re-enter the captcha code', 'Login Failed: Wrong CAPTCHA entered.');
        if (empty($cookie['auth'])) {
            html_error('Login Error: Cannot find "auth" cookie.');
        }
        SaveCookies($user, $pass);
        // Update cookies file
        return true;
    } else {
        $page = geturl($domain, 80, '/authenticate.php?login', $referer . 'authenticate.php?login', $cookie, 0, 0, $_GET['proxy'], $pauth);
        is_page($page);
        $cookie = GetCookiesArr($page, $cookie);
        if (!preg_match('@(https?://[^/\\r\\n\\t\\s\'\\"<>]+)?/include/captcha\\.php\\?[^/\\r\\n\\t\\s\'\\"<>]+@i', $page, $imgurl)) {
            html_error('CAPTCHA not found.');
        }
        $imgurl = empty($imgurl[1]) ? 'http://www.putlocker.com' . $imgurl[0] : $imgurl[0];
        $imgurl = html_entity_decode($imgurl);
        //Download captcha img.
        $url = parse_url($imgurl);
        $page = geturl($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), $referer . 'authenticate.php?login', $cookie, 0, 0, $_GET['proxy'], $pauth);
        is_page($page);
        $capt_img = substr($page, strpos($page, "\r\n\r\n") + 4);
        $imgfile = DOWNLOAD_DIR . 'putlocker_captcha.png';
        if (file_exists($imgfile)) {
            unlink($imgfile);
        }
        if (!write_file($imgfile, $capt_img)) {
            html_error('Error getting CAPTCHA image.');
        }
        $data = array();
        $data['action'] = 'FORM';
        $data['step'] = 1;
        $data['cookie'] = urlencode(encrypt(CookiesToStr($cookie)));
        $data['up_convert'] = !empty($_REQUEST['up_convert']) && $_REQUEST['up_convert'] == 'yes' ? 'yes' : 'no';
        EnterCaptcha($imgfile . '?' . time(), $data, $upload_acc['putlocker_com']['user'] && $upload_acc['putlocker_com']['pass']);
        exit;
    }
}
Ejemplo n.º 27
0
$post = array();
$post['upload_type'] = "file";
$post['srv_id'] = $up[3];
$post['sess_id'] = "";
$post['srv_tmp_url'] = $up[2];
$post['ut'] = "file";
$post['link_rcpt'] = "";
$post['link_pass'] = "";
$post['tos'] = 1;
$post['submit_btn'] = " Upload! ";
$up_url = "{$up[1]}/?X-Progress-ID={$uid}";
?>
<script type="text/javascript">document.getElementById('info').style.display='none';</script>
<?php 
$url = parse_url($up_url);
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $ref, $cookie, $post, $lfile, $lname, "file_0");
?>
<script type="text/javascript">document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
$post = array();
$post['op'] = "upload_result";
$post['fn'] = cut_str($upfiles, "'fn' value='", "'");
$post['st'] = "OK";
$page = geturl("oron.com", 80, "/", $up_url, $cookie, $post, 0, $_GET["proxy"], $pauth);
is_page($page);
if (preg_match('@(https?://(?:www\\.)?oron\\.com/\\w+)\\?killcode=\\w+@i', $page, $lnk)) {
    $download_link = $lnk[1];
    $delete_link = $lnk[0];
} else {
    html_error("Download link not found.", 0);
Ejemplo n.º 28
0
$action_url = cut_str($page, 'progress_key" value="', '"');
if (!$action_url) {
    html_error("Error Get Upload Id / ќшибка получени¤ идентификатора");
}
$post['APC_UPLOAD_PROGRESS'] = $action_url;
//            $post['MAX_FILE_SIZE']=104857600;
//            $post['description']=$descript;
$post['txt_email'] = '';
$post['txt_email_t'] = '';
$post['cb_agb'] = 'true';
//            $post['sessionid'] = '';
$url = parse_url("http://files.to/upload");
?>
	<script>document.getElementById('info').style.display='none';</script>
<?php 
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://files.to/upload", 0, $post, $lfile, $lname, "file[]");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
#print_r("<!--".$upfiles."-->");
is_notpresent($upfiles, 'successfully', 'File not received / ќшибка аплоада файла!');
$tmp = cut_str($upfiles, 'Download: <a href="', '"');
if (!$tmp) {
    html_error("Error Get Download Link / ќшибка получени¤ ссылки на скачку");
}
$download_link = $tmp;
$tmp2 = cut_str($upfiles, 'Delete: <a href="', '"');
if ($tmp) {
    $delete_link = $tmp2;
}
Ejemplo n.º 29
0
}
$uid += floor(rand() * 10);
$post['upload_type'] = 'file';
$post['sess_id'] = $xfss;
$post['file_0_descr'] = $_REQUEST['descript'];
$post['file_0_public'] = '1';
$post['link_rcpt'] = '';
$post['link_pass'] = '';
$post['tos'] = '1';
$post['submit_btn'] = ' Upload! ';
$uurl = $upfrm . '/cgi-bin/upload.cgi?upload_id=' . $uid . '&js_on=1&utype=anon&upload_type=file';
$url = parse_url($upfrm . '/cgi-bin/upload.cgi?upload_id=' . $uid . '&js_on=1&utype=anon&upload_type=file');
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $ref, $cookies, $post, $lfile, $lname, "file_0");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
$locat = cut_str($upfiles, 'rea name=\'fn\'>', '</textarea>');
unset($post);
$gpost['fn'] = "{$locat}";
$gpost['st'] = "OK";
$gpost['op'] = "upload_result";
$Url = parse_url($ref);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), $uurl, $cookies, $gpost, 0, $_GET["proxy"], $pauth);
$ddl = cut_str($page, '<td><a href="', '"');
$del = cut_str($page, 'killcode=', '"');
$download_link = $ddl;
$delete_link = $ddl . '?killcode=' . $del;
// Made By CHRISTIAN™ 09/06/2010 09:40
Ejemplo n.º 30
0
    if (!preg_match('@\'uploader\'[\\s\\t]*:[\\s\\t]*[\'|\\"](https?://www\\d+\\.zippyshare\\.com/[^\\r\\n\'\\"\\s\\t<>]+)[\'|\\"]@i', $page, $up)) {
        html_error('Error: Cannot find upload server.', 0);
    }
    $post = array();
    $post['Filename'] = $lname;
    $post['uploadify'] = 'true';
    $post['embPlayerValues'] = !empty($cookie['embed-player-values']) ? $cookie['embed-player-values'] : 'null';
    if ($login) {
        $post['zipname'] = $cookie['zipname'];
        $post['ziphash'] = $cookie['ziphash'];
    }
    if (!empty($_REQUEST['up_private'])) {
        $post['private'] = 'checked';
    }
    $post['Upload'] = 'Submit Query';
    $up_url = $up[1];
    // Uploading
    echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
    $url = parse_url($up_url);
    $upfiles = upfile($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), $referer, $cookie, $post, $lfile, $lname, 'Filedata', '', $_GET['proxy'], $pauth, 'Shockwave Flash');
    // Upload Finished
    echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
    is_page($upfiles);
    if (preg_match('@https?://www\\d*\\.zippyshare\\.com/v/\\d+/file\\.html@i', $upfiles, $link)) {
        $download_link = $link[0];
    } else {
        html_error('Download link not found.', 0);
    }
}
//[17-5-2013] Written by Th3-822.
//[28-9-2014] Added private upload option. - Th3-822