RapidLeetch /hosts/egoshare_com.php

Language PHP Lines 67
MD5 Hash 48f5db86e16c1787884a8dc253fad1bb
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
<?php
if (!defined('RAPIDLEECH'))
{
	require_once("index.html");
	exit;
}

$eg = $_POST['eg'];
if ($eg == 'ok') {
	$post = array();
	$post['captchacode'] = $_POST['captchacode'];
	$post['2ndpage'] = 1;
	$cook = trim($_POST['cookie']);
	$Referer = trim($_POST["referer"]);
	$Href = $_POST["act_url"];
	$Url = parse_url(trim($Href));
	//$DebugRequest = true;
	$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $Referer, $cook, $post, 0, $_GET["proxy"],$pauth);
	is_page($page);
	is_present($page,'Captcha number error or expired');
	preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
	$cookie = $temp[1];
	$cook .= implode(';',$cookie);
	
	var_dump(nl2br(htmlentities($page)));exit;
} else {
	$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);
	if (stristr($page,'DL_FileNotFound')) {
		html_error("File not found",0);
	}
	preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
	$cookie = $temp[1];
	$cook = implode(';',$cookie);
	preg_match('/<form name=myform action="(.*)"/',$page,$act_url);
	$act_url = $act_url[1];
	$img = 'http://www.egoshare.com/captcha.php';
	$Url = parse_url($img);
	$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $LINK, $cook, 0, 0, $_GET["proxy"],$pauth);

	$headerend = strpos($page,"\r\n\r\n");
	$pass_img = substr($page,$headerend+4);
	write_file($download_dir."egoshare_captcha.jpg", $pass_img);
	$randnum = rand(10000, 100000);

	$img_data = explode("\r\n\r\n", $page);
	$header_img = $img_data[0];

	preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
	$cookie = $temp[1];
	if ($cookie) {
		$cook .= ';'.implode(';',$cookie);
	}
	
	print 	"<form method=\"post\" action=\"$PHP_SELF\">$nn";
	print	"<b>Please enter code:</b><br>$nn";
	print	"<img src=\"{$download_dir}egoshare_captcha.jpg?id=".$randnum."\" >$nn";
	print	"<input name=\"link\" value=\"$LINK\" type=\"hidden\">$nn";
	print	"<input name=\"referer\" value=\"$LINK\" type=\"hidden\">$nn";
	print	"<input name=\"act_url\" value=\"$act_url\" type=\"hidden\">$nn";
	print	"<input name=\"eg\" value=\"ok\" type=\"hidden\">$nn";
	print	"<input name=\"cookie\" value=\"$cook\" type=\"hidden\">$nn";
	print	"<input name=\"captchacode\" type=\"text\" >";
	print	"<input name=\"submit\" value=\"Download\" type=\"submit\"></form>";
}

?>
Back to Top