Вы находитесь на странице: 1из 3

<?

php
if (!defined('RAPIDLEECH')) {
require_once('index.html');
exit;
}
class zippyshare_com extends DownloadClass {
public $link;
private $page, $cookie, $fid;
public function Download($link) {
$this->link = $link;
$this->cookie = array('ziplocale' => 'en');
if (!preg_match('@https?://(?:[\w\-]+\.)*zippyshare\.com/\w/(\d+
)@i', $this->link, $this->fid)) html_error('File ID not found at link. Invalid l
ink?');
$this->fid = $this->fid[1];
if (!empty($_POST['step'])) switch ($_POST['step']) {
case '1': return $this->CheckCaptcha();
case '2': return $this->GetDecodedLink();
}
$this->page = $this->GetPage($this->link, $this->cookie);
is_present($this->page, '>File does not exist on this server<',
'File does not exist.');
is_present($this->page, '>File has expired and does not exist an
ymore on this server', 'File does not exist.');
$this->cookie = GetCookiesArr($this->page, $this->cookie);
//if (($pos = stripos($this->page, 'getElementById(\'dlbutton\')
.href')) !== false || ($pos = stripos($this->page, 'getElementById("dlbutton").h
ref')) !== false) return $this->GetJSEncodedLink();
if ($this->findJS()) return $this->GetJSEncodedLink();
else return $this->GetCaptcha();
}
private function GetDecodedLink() {
if (empty($_POST['dllink']) || ($dlink = parse_url($_POST['dllin
k'])) == false || empty($dlink['path'])) html_error('Empty decoded link field.')
;
$this->cookie = urldecode($_POST['cookie']);
$dlink = 'http://' . parse_url($this->link, PHP_URL_HOST) . $dli
nk['path'] . (!empty($dlink['query']) ? '?' . $dlink['query'] : '');
$fname = urldecode(basename(parse_url($dlink, PHP_URL_PATH)));
$this->RedirectDownload($dlink, $fname, $this->cookie);
}
private function findJS() {
if (!preg_match_all('@<script(?:\s[^>]*)?>([^<]+)</script>@i', $
this->page, $scripts)) html_error('No inline JS found at page.');
foreach ($scripts[1] as $script) if (preg_match('@\.getElementBy
Id\(\s*(\'|\")(?i)(?:dlbutton|fimage)(?-i)\1\)\.href\s*=\s*[\'\"](?:https?://(?:
[\w\-]+\.)*zippyshare\.com)?/d/'.$this->fid.'@', $script)) {
$this->script = $script;
return true;
}
return false;

}
private function GetJSEncodedLink() {
$this->script = rtrim(str_replace(array(').href', "'dlbutton'",
'"dlbutton"', '
'), array(').value', "'T8_dllink'", '"T8_dllink"', "\t\t"), $
this->script));
if (empty($this->script)) html_error('Error while getting js cod
e.');
$T8 = '';
if (preg_match_all('@getElementById[\s\t]*\([\s\t]*[\"\']([a-z][
\w\.\-]*)[\"\'][\s\t]*\)@i', $this->script, $ids) && count($ids[0]) > 1) foreach
(array_unique($ids[1]) as $id) {
if ($id == 'T8_dllink') continue;
if (!preg_match("@<([a-z][a-z\d]*)\s*(?:\w+\s*=\s*[\"\']
[^\"\'<>]*[\"\']\s*)*(?:\s*id\s*=[\"\']{$id}[\"\']\s*)(?:\w+\s*=\s*[\"\'][^\"\'<
>]*[\"\']\s*)*(?:(\s*>[^<>]*</\1)|(/)?[\s]*>)@i", $this->page, $tag)) break; //
If it doesn't found the tag the decode will fail, im not sure if break or contin
ue...
$T8 .= (!empty($tag[2]) ? $tag[0].'>' : (empty($tag[3])
? $tag[0].'</'.$tag[1].'>' : $tag[0]));
}
$this->script = preg_replace('@^\s*(?:function\s+[\$_A-Za-z][\$\
w]*|(?:var\s+)?[\$_A-Za-z][\$\w]*\s*=\s*function)\s*\([^)]*\)\s*\{\s*[\$_A-Za-z]
[\$\w]*\.\w+\s*\(\s*[\'\"]\w+[\'\"]\s*\)\.value\s*=\s*[\'\"]{2}\s*;\s*\};?@', ''
, $this->script, 1);
if (preg_match('@^\s*function\s+([\$_A-Za-z][\$\w]*)\s*\(@i', $t
his->script, $funcName) || preg_match('@^\s*(?:var\s+)?([\$_A-Za-z][\$\w]*)\s*=\
s*function\s*\(@i', $this->script, $funcName)) $this->script .= "\n\t\t{$funcNam
e[1]}();";
$data = $this->DefaultParamArr($this->link, $this->cookie);
$data['step'] = '2';
$data['dllink'] = '';
echo "\n<div style='display:none;'>$T8</div>\n<form name='zs_dco
de' action='{$GLOBALS['PHP_SELF']}' method='POST'><br />\n";
foreach ($data as $name => $input) echo "<input type='hidden' na
me='$name' id='T8_$name' value='$input' />\n";
echo("</form>\n<span id='T8_emsg' class='htmlerror' style='textalign:center;display:none;'></span>\n<noscript><span class='htmlerror'><b>Sorry,
this code needs JavaScript enabled to work.</b></span></noscript>\n<script type
='text/javascript'>/* <![CDATA[ */\n\tvar T8 = true;\n\ttry {{$this->script}\n\t
} catch(e) {\n\t\t$('#T8_emsg').html('<b>Cannot decode link: ['+e.name+'] '+e.me
ssage+'</b>').show();\n\t\tT8 = false;\n\t}\n\tif (T8) window.setTimeout(\"$('fo
rm[name=zs_dcode]').submit();\", 300); // 300 s to make sure that the value was deco
ded and added.\n/* ]]> */</script>\n\n</body>\n</html>");
exit;
}
private function GetCaptcha() {
if (!preg_match('@/d/\d+/(\d+)/[^\r\n\t\'\"<>\;]+@i', $this->pag
e, $dlpath)) html_error('Download Link Not Found.');
if (!preg_match('@Recaptcha\.create[\s\t]*\([\s\t]*\"([\w\.\-]+)
\"@i', $this->page, $cpid)) html_error('reCAPTCHA Not Found.');
//if (!preg_match('@\Wshortencode[\s\t]*:[\s\t]*\'?(\d+)\'?@i',
$this->page, $short)) html_error('Captcha Data Not Found.');
$data = $this->DefaultParamArr($this->link, $this->cookie);
$data['step'] = '1';
$data['dlpath'] = urlencode($dlpath[0]);

$data['shortencode'] = urlencode($dlpath[1]);
$this->reCAPTCHA($cpid[1], $data);
}
private function CheckCaptcha() {
if (empty($_POST['recaptcha_response_field'])) html_error('You d
idn\'t enter the image verification code.');
$host = 'http://' . parse_url($this->link, PHP_URL_HOST);
$this->cookie = urldecode($_POST['cookie']);
$post = array();
$post['challenge'] = $_POST['recaptcha_challenge_field'];
$post['response'] = $_POST['recaptcha_response_field'];
$post['shortencode'] = $_POST['shortencode'];
$page = $this->GetPage($host . '/rest/captcha/test', $this->cook
ie, $post, $this->link . "\r\nX-Requested-With: XMLHttpRequest");
$body = strtolower(trim(substr($page, strpos($page, "\r\n\r\n"))
));
if ($body == 'false') html_error('Error: Wrong CAPTCHA Entered.'
);
elseif ($body != 'true') html_error('Unknown Reply from Server.'
);
$dlink = $host . urldecode($_POST['dlpath']);
$fname = urldecode(basename(parse_url($dlink, PHP_URL_PATH)));
$this->RedirectDownload($dlink, $fname, $this->cookie);
}
}
// [24-11-2012]
// [05-2-2013]
. - Th3-822
// [04-3-2013]
// [25-3-2014]
// [19-8-2014]
?>

Written by Th3-822. (Only for rev43 :D)


Added support for links that need user-side decoding of the link
Fixed File doesn't exists error msg... - Th3-822
Fixed link decoder function. - Th3-822
Quick fix to decoder function. - Th3-822

Вам также может понравиться

  • Pesan 3296
    Pesan 3296
    Документ128 страниц
    Pesan 3296
    Achmad Yusuf
    Оценок пока нет
  • (Rapidleech) (D) Ifile It - PHP
    (Rapidleech) (D) Ifile It - PHP
    Документ5 страниц
    (Rapidleech) (D) Ifile It - PHP
    Aditya Ryu Arzo
    Оценок пока нет
  • Pizza PHP
    Pizza PHP
    Документ8 страниц
    Pizza PHP
    Anonymous pYFRT2Zxg
    Оценок пока нет
  • Cab 5 D 6
    Cab 5 D 6
    Документ15 страниц
    Cab 5 D 6
    Bara Prok
    Оценок пока нет
  • G5 A Ytps V
    G5 A Ytps V
    Документ13 страниц
    G5 A Ytps V
    RahmyFauzanibudiAhmad
    Оценок пока нет
  • Ke Mend Agri
    Ke Mend Agri
    Документ15 страниц
    Ke Mend Agri
    Luar Negeri
    Оценок пока нет
  • Codigo Agar - Io
    Codigo Agar - Io
    Документ9 страниц
    Codigo Agar - Io
    Ander
    Оценок пока нет
  • Alur Laravel
    Alur Laravel
    Документ9 страниц
    Alur Laravel
    khrlnmmm
    Оценок пока нет
  • Shell PHP
    Shell PHP
    Документ5 страниц
    Shell PHP
    arragheten
    Оценок пока нет
  • Header PHP
    Header PHP
    Документ2 страницы
    Header PHP
    Yoel Velasquez
    Оценок пока нет
  • Login Form PHP Code
    Login Form PHP Code
    Документ6 страниц
    Login Form PHP Code
    atifcomputerz
    Оценок пока нет
  • R 57
    R 57
    Документ72 страницы
    R 57
    Cynthia Nichols
    Оценок пока нет
  • LAMPIRAN A Codingan
    LAMPIRAN A Codingan
    Документ20 страниц
    LAMPIRAN A Codingan
    Husnul Hasbullah
    Оценок пока нет
  • Shell
    Shell
    Документ42 страницы
    Shell
    Naise Try
    Оценок пока нет
  • r57 - Kopya
    r57 - Kopya
    Документ71 страница
    r57 - Kopya
    dalqa9525
    Оценок пока нет
  • W3data PHP
    W3data PHP
    Документ7 страниц
    W3data PHP
    Did You Know ?
    Оценок пока нет
  • Timesheet of August 2021
    Timesheet of August 2021
    Документ230 страниц
    Timesheet of August 2021
    Mitrajit Samanta
    Оценок пока нет
  • Bootscanv 6
    Bootscanv 6
    Документ3 страницы
    Bootscanv 6
    MuhammadFirman
    Оценок пока нет
  • Hehe
    Hehe
    Документ5 страниц
    Hehe
    asdada
    Оценок пока нет
  • 19 - PHP-MVC-Frameworks-REST Api-Lab
    19 - PHP-MVC-Frameworks-REST Api-Lab
    Документ12 страниц
    19 - PHP-MVC-Frameworks-REST Api-Lab
    Nguyen Tuan Kiet (FGW DN)
    Оценок пока нет
  • Sammy Js
    Sammy Js
    Документ71 страница
    Sammy Js
    ben7229
    Оценок пока нет
  • Appml PHP
    Appml PHP
    Документ20 страниц
    Appml PHP
    Did You Know ?
    Оценок пока нет
  • CompDB App
    CompDB App
    Документ2 страницы
    CompDB App
    ensarenec2022
    Оценок пока нет
  • Core
    Core
    Документ11 страниц
    Core
    ox5tqg
    Оценок пока нет
  • c99 PHP
    c99 PHP
    Документ71 страница
    c99 PHP
    egyhacker
    Оценок пока нет
  • rsAA2YrTtYZVjLyvocitFPFQMw aa8XF90kw
    rsAA2YrTtYZVjLyvocitFPFQMw aa8XF90kw
    Документ44 страницы
    rsAA2YrTtYZVjLyvocitFPFQMw aa8XF90kw
    anup
    Оценок пока нет
  • Script Program Rental Mobil (Soal Nomor 26)
    Script Program Rental Mobil (Soal Nomor 26)
    Документ129 страниц
    Script Program Rental Mobil (Soal Nomor 26)
    Ike Indriani
    Оценок пока нет
  • Dhanvanthari Homa Sm3
    Dhanvanthari Homa Sm3
    Документ9 страниц
    Dhanvanthari Homa Sm3
    Vemuganti Sudhakar
    Оценок пока нет
  • Lampiran 2 Source Code
    Lampiran 2 Source Code
    Документ21 страница
    Lampiran 2 Source Code
    Muaw Iyah
    Оценок пока нет
  • Builtin Object Token - GTS Root R1
    Builtin Object Token - GTS Root R1
    Документ12 страниц
    Builtin Object Token - GTS Root R1
    sean burns
    Оценок пока нет
  • Ui Collapse
    Ui Collapse
    Документ4 страницы
    Ui Collapse
    ox5tqg
    Оценок пока нет
  • Example
    Example
    Документ2 страницы
    Example
    Bugra Swax
    Оценок пока нет
  • File Temp
    File Temp
    Документ66 страниц
    File Temp
    Shem Kironde
    Оценок пока нет
  • Laporan Magang Della Charina 1401152580 S1 Mbti
    Laporan Magang Della Charina 1401152580 S1 Mbti
    Документ2 страницы
    Laporan Magang Della Charina 1401152580 S1 Mbti
    gopur tolok
    Оценок пока нет
  • 17 - Lampiran
    17 - Lampiran
    Документ25 страниц
    17 - Lampiran
    Aldi Fitriadi
    Оценок пока нет
  • Webshell PHP JPG
    Webshell PHP JPG
    Документ3 страницы
    Webshell PHP JPG
    Quratulain Tariq
    Оценок пока нет
  • Atomlib
    Atomlib
    Документ7 страниц
    Atomlib
    kandorp
    Оценок пока нет
  • PHP
    PHP
    Документ56 страниц
    PHP
    methodeirambona180
    Оценок пока нет
  • Laravel Tricks in 50 Minutes
    Laravel Tricks in 50 Minutes
    Документ83 страницы
    Laravel Tricks in 50 Minutes
    Thitinan Kliangsuwan
    Оценок пока нет
  • 5
    5
    Документ57 страниц
    5
    jindalyash1234
    Оценок пока нет
  • Filxt
    Filxt
    Документ26 страниц
    Filxt
    Gayan Sankalpa
    Оценок пока нет
  • Core Min 12
    Core Min 12
    Документ480 страниц
    Core Min 12
    sam
    Оценок пока нет
  • PMG Panchayat Doc Script
    PMG Panchayat Doc Script
    Документ4 страницы
    PMG Panchayat Doc Script
    AnilKumar
    Оценок пока нет
  • J ADH0 EAZ
    J ADH0 EAZ
    Документ63 страницы
    J ADH0 EAZ
    Anonymous aKzd0QMWe
    Оценок пока нет
  • Bootstrap v3 4 1 New 1
    Bootstrap v3 4 1 New 1
    Документ46 страниц
    Bootstrap v3 4 1 New 1
    Ucup Hupek
    Оценок пока нет
  • Laravel Resume
    Laravel Resume
    Документ16 страниц
    Laravel Resume
    Mohamed Boumediene
    Оценок пока нет
  • PGP
    PGP
    Документ28 страниц
    PGP
    Satish Kandekar
    Оценок пока нет
  • API Mikrotik Terbaru
    API Mikrotik Terbaru
    Документ13 страниц
    API Mikrotik Terbaru
    taurus1928
    Оценок пока нет
  • CompDB App
    CompDB App
    Документ2 страницы
    CompDB App
    Steven R
    Оценок пока нет
  • Function: Window
    Function: Window
    Документ15 страниц
    Function: Window
    adri781
    Оценок пока нет
  • Codes To Duplicate Pages or Posts For Wordpress
    Codes To Duplicate Pages or Posts For Wordpress
    Документ1 страница
    Codes To Duplicate Pages or Posts For Wordpress
    sharoz726
    Оценок пока нет
  • 25 PHP Form Validation Snippets
    25 PHP Form Validation Snippets
    Документ12 страниц
    25 PHP Form Validation Snippets
    OumarToure
    Оценок пока нет
  • AD Privileged Audit - ps1
    AD Privileged Audit - ps1
    Документ24 страницы
    AD Privileged Audit - ps1
    Adegbola Oluwaseun
    Оценок пока нет
  • Home CI - Controller: - Construct
    Home CI - Controller: - Construct
    Документ6 страниц
    Home CI - Controller: - Construct
    Sabri Abdillah
    Оценок пока нет
  • Shell
    Shell
    Документ9 страниц
    Shell
    muralidharan_vadivel
    Оценок пока нет
  • Rad2f5 TMSH
    Rad2f5 TMSH
    Документ8 страниц
    Rad2f5 TMSH
    Harry Sh
    Оценок пока нет
  • (Focus Contact2)
    (Focus Contact2)
    Документ2 страницы
    (Focus Contact2)
    gvarelag
    Оценок пока нет
  • Javascript GB Dowldr
    Javascript GB Dowldr
    Документ9 страниц
    Javascript GB Dowldr
    Nabendu Ghosh
    Оценок пока нет
  • How to a Developers Guide to 4k: Developer edition, #3
    How to a Developers Guide to 4k: Developer edition, #3
    От Everand
    How to a Developers Guide to 4k: Developer edition, #3
    Оценок пока нет
  • Computer Engineering Laboratory Solution Primer
    Computer Engineering Laboratory Solution Primer
    От Everand
    Computer Engineering Laboratory Solution Primer
    Оценок пока нет
  • CV Le Van Tien Fullstack Developer
    CV Le Van Tien Fullstack Developer
    Документ2 страницы
    CV Le Van Tien Fullstack Developer
    lvt030501
    Оценок пока нет
  • PYTHON AND JQUERY CODING EXERCISES Coding - JJ TAM
    PYTHON AND JQUERY CODING EXERCISES Coding - JJ TAM
    Документ87 страниц
    PYTHON AND JQUERY CODING EXERCISES Coding - JJ TAM
    Selina Daniel
    Оценок пока нет
  • Web Design in 4 Minutes
    Web Design in 4 Minutes
    Документ8 страниц
    Web Design in 4 Minutes
    Akash Katyayana
    100% (1)
  • Anshita Web Tech
    Anshita Web Tech
    Документ86 страниц
    Anshita Web Tech
    Yachna Sharma
    Оценок пока нет
  • Developing Responsive Websites With Bootstrap and Jquery Assignment
    Developing Responsive Websites With Bootstrap and Jquery Assignment
    Документ8 страниц
    Developing Responsive Websites With Bootstrap and Jquery Assignment
    Mirpurkhas
    Оценок пока нет
  • Ruby On Rails With Ajax For Development of Web Applications
    Ruby On Rails With Ajax For Development of Web Applications
    Документ12 страниц
    Ruby On Rails With Ajax For Development of Web Applications
    Teklit Berihu
    Оценок пока нет
  • 15.1 08 - Technical SEO PDF
    15.1 08 - Technical SEO PDF
    Документ16 страниц
    15.1 08 - Technical SEO PDF
    Shiv Mehra
    Оценок пока нет
  • F
    F
    Документ90 страниц
    F
    Massimo Lanfranchi
    Оценок пока нет
  • UCP 600 in Bangla
    UCP 600 in Bangla
    Документ118 страниц
    UCP 600 in Bangla
    nikkle rahman
    Оценок пока нет
  • Cse 326 Document Object Model
    Cse 326 Document Object Model
    Документ13 страниц
    Cse 326 Document Object Model
    Riya Singh
    Оценок пока нет
  • Webservices Tutorial
    Webservices Tutorial
    Документ24 страницы
    Webservices Tutorial
    Nguyễn Đăng
    100% (1)
  • CV - Hrvoje Bencik
    CV - Hrvoje Bencik
    Документ1 страница
    CV - Hrvoje Bencik
    Hrvoje Bencik
    Оценок пока нет
  • Web Publishing Lesson Plan
    Web Publishing Lesson Plan
    Документ33 страницы
    Web Publishing Lesson Plan
    Naima Ibrahim
    Оценок пока нет
  • The Secure Sockets Layer (SSL) Protocol: Presented by Fengmei Zou Date: Feb. 10, 2000
    The Secure Sockets Layer (SSL) Protocol: Presented by Fengmei Zou Date: Feb. 10, 2000
    Документ19 страниц
    The Secure Sockets Layer (SSL) Protocol: Presented by Fengmei Zou Date: Feb. 10, 2000
    Boutros Chalouhy
    Оценок пока нет
  • DWR and Spring
    DWR and Spring
    Документ47 страниц
    DWR and Spring
    sin2p
    Оценок пока нет
  • Quiz - 2 - Information Retrieval (S2-22 - AIMLCZG537 - S2-22 - DSECLZG537)
    Quiz - 2 - Information Retrieval (S2-22 - AIMLCZG537 - S2-22 - DSECLZG537)
    Документ5 страниц
    Quiz - 2 - Information Retrieval (S2-22 - AIMLCZG537 - S2-22 - DSECLZG537)
    Sudipto Das
    Оценок пока нет
  • Final SRS
    Final SRS
    Документ7 страниц
    Final SRS
    Mayur Garg
    Оценок пока нет
  • Web Programming Notes
    Web Programming Notes
    Документ82 страницы
    Web Programming Notes
    Santhosh Kumar Gupta
    Оценок пока нет
  • The Innerhtml Apocalypse: How Mxss Attacks Change Everything We Believed To Know So Far
    The Innerhtml Apocalypse: How Mxss Attacks Change Everything We Believed To Know So Far
    Документ51 страница
    The Innerhtml Apocalypse: How Mxss Attacks Change Everything We Believed To Know So Far
    ahmadkamal
    Оценок пока нет
  • HTTP 2 White Paper
    HTTP 2 White Paper
    Документ26 страниц
    HTTP 2 White Paper
    Francesco Papaluca
    Оценок пока нет
  • Web Paper Answers
    Web Paper Answers
    Документ8 страниц
    Web Paper Answers
    Asweer
    Оценок пока нет
  • PHP Cookies and Session
    PHP Cookies and Session
    Документ6 страниц
    PHP Cookies and Session
    dolby3d
    Оценок пока нет
  • Dasun Edirisinghe: John Keells IT, Sri Lanka - Lead UI / UX Designer
    Dasun Edirisinghe: John Keells IT, Sri Lanka - Lead UI / UX Designer
    Документ3 страницы
    Dasun Edirisinghe: John Keells IT, Sri Lanka - Lead UI / UX Designer
    dazunj919
    Оценок пока нет
  • HTML5 Introduction FC
    HTML5 Introduction FC
    Документ189 страниц
    HTML5 Introduction FC
    aaronot6
    Оценок пока нет
  • Web Dynpro Abap - Scn4
    Web Dynpro Abap - Scn4
    Документ23 страницы
    Web Dynpro Abap - Scn4
    raky0369
    Оценок пока нет
  • CBWP2203 Web Programming Semester January 2011
    CBWP2203 Web Programming Semester January 2011
    Документ15 страниц
    CBWP2203 Web Programming Semester January 2011
    kurungbiru
    Оценок пока нет
  • Owasp Zap Hostedscan Report 2024-02-12
    Owasp Zap Hostedscan Report 2024-02-12
    Документ17 страниц
    Owasp Zap Hostedscan Report 2024-02-12
    faizan.reza
    Оценок пока нет
  • SEO Glossary
    SEO Glossary
    Документ67 страниц
    SEO Glossary
    Frednking
    Оценок пока нет
  • HTML Cheatsheet
    HTML Cheatsheet
    Документ16 страниц
    HTML Cheatsheet
    dheerajchoudhary116
    Оценок пока нет
  • Webcomponents Cheatsheet 2021
    Webcomponents Cheatsheet 2021
    Документ2 страницы
    Webcomponents Cheatsheet 2021
    cesar javier
    Оценок пока нет