Advertisement
Th3-822

[rapidleech][u] zippyshare.com.php

May 17th, 2013
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.41 KB | None | 0 0
  1. <?php
  2. ######## Account Info ########
  3. $upload_acc['zippyshare_com']['user'] = ''; //Set your userid/alias
  4. $upload_acc['zippyshare_com']['pass'] = ''; //Set your password
  5. ########################
  6.  
  7. $_GET['proxy'] = isset($_GET['proxy']) ? $_GET['proxy'] : '';
  8. $not_done = true;
  9. $continue_up = false;
  10.  
  11. if ($upload_acc['zippyshare_com']['user'] && $upload_acc['zippyshare_com']['pass']) {
  12.     $_REQUEST['up_login'] = $upload_acc['zippyshare_com']['user'];
  13.     $_REQUEST['up_pass'] = $upload_acc['zippyshare_com']['pass'];
  14.     $_REQUEST['up_private'] = false;
  15.     $_REQUEST['action'] = 'FORM';
  16.     echo "<b><center>Using Default Login.</center></b>\n";
  17. }
  18.  
  19. if (!empty($_REQUEST['action']) && $_REQUEST['action'] == 'FORM') $continue_up = true;
  20. else {
  21.     echo "<table border='0' style='width:270px;' cellspacing='0' align='center'>
  22.     <form method='POST'>
  23.     <input type='hidden' name='action' value='FORM' />
  24.     <tr><td style='white-space:nowrap;'>&nbsp;User*</td><td>&nbsp;<input type='text' name='up_login' value='' style='width:160px;' /></td></tr>
  25.     <tr><td style='white-space:nowrap;'>&nbsp;Password*</td><td>&nbsp;<input type='password' name='up_pass' value='' style='width:160px;' /></td></tr>\n";
  26.     echo "<tr><td colspan='2' align='center'><br />Upload options *<br /></td></tr>\r\n<tr><td colspan='2' align='center'><input type='checkbox' name='up_private' value='true' />&nbsp; Set as Private Upload</td></tr>";
  27.     echo "<tr><td colspan='2' align='center'><br /><input type='submit' value='Upload' /></td></tr>\n";
  28.     echo "<tr><td colspan='2' align='center'><small>*You can set it as default in <b>".basename(__FILE__)."</b></small></td></tr>\n";
  29.     echo "</form>\n</table>\n";
  30. }
  31.  
  32. if ($continue_up) {
  33.     $not_done = false;
  34.     $domain = 'zippyshare.com';
  35.     $referer = "https://$domain/";
  36.  
  37.     // Login
  38.     echo "<table style='width:600px;margin:auto;'>\n<tr><td align='center'>\n<div id='login' width='100%' align='center'>Login to zippyshare.com</div>\n";
  39.  
  40.     $cookie = array('ziplocale' => 'en');
  41.     if (!empty($_REQUEST['up_login']) && !empty($_REQUEST['up_pass'])) {
  42.         $post = array();
  43.         $post['login'] = $_REQUEST['up_login'];
  44.         $post['pass'] = $_REQUEST['up_pass'];
  45.         $post['remember'] = 'on';
  46.  
  47.         $page = geturl($domain, 443, '/services/login', $referer, $cookie, $post, 0, $_GET['proxy'], $pauth, 0, 'https');is_page($page);
  48.         is_present($page, '?invalid=1', 'Login failed: User/Password incorrect.');
  49.         $cookie = GetCookiesArr($page, $cookie);
  50.         if (empty($cookie['zipname']) && empty($cookie['ziphash'])) html_error('Error: Login cookies not found.');
  51.         $login = true;
  52.     } else {
  53.         echo "<b><center>Login not found or empty, using non member upload.</center></b>\n";
  54.         $login = false;
  55.     }
  56.  
  57.     // Retrieve upload ID
  58.     echo "<script type='text/javascript'>document.getElementById('login').style.display='none';</script>\n<div id='info' width='100%' align='center'>Retrive upload ID</div>\n";
  59.  
  60.     $page = geturl($domain, 443, '/', $referer, $cookie, 0, 0, $_GET['proxy'], $pauth, 0, 'https');is_page($page);
  61.  
  62.     if (!preg_match('@(?<=//|\')www\d+(?=\.zippyshare\.com/upload|\';)@i', $page, $up)) html_error('Error: Cannot find upload server.');
  63.  
  64.     $post = array();
  65.     $post['name'] = $lname;
  66.     if ($login) {
  67.         $post['zipname'] = $cookie['zipname'];
  68.         $post['ziphash'] = $cookie['ziphash'];
  69.     }
  70.     $post['embPlayerValues'] = (!empty($cookie['embed-player-values']) ? $cookie['embed-player-values'] : 'false');
  71.     if (!empty($_REQUEST['up_private'])) $post['private'] = 'true';
  72.     else $post['notprivate'] = 'true';
  73.  
  74.     $up_url = sprintf('https://%s.zippyshare.com/upload', $up[0]);
  75.  
  76.     // Uploading
  77.     echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
  78.  
  79.     $url = parse_url($up_url);
  80.     $upfiles = upfile($url['host'], defport($url), $url['path'].(!empty($url['query']) ? '?'.$url['query'] : ''), $referer, $cookie, $post, $lfile, $lname, 'Filedata', '', $_GET['proxy'], $pauth, 0, $url['scheme']);
  81.  
  82.     // Upload Finished
  83.     echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
  84.  
  85.     is_page($upfiles);
  86.  
  87.     if (preg_match('@https?://www\d*\.zippyshare\.com/v/\w+/file\.html@i', $upfiles, $link)) $download_link = $link[0];
  88.     else html_error('Download link not found.');
  89.  
  90. }
  91.  
  92. //[17-5-2013] Written by Th3-822.
  93. //[28-9-2014] Added private upload option. - Th3-822
  94. //[11-1-2015] Fixed upload & Link regexp. (Happy new year) - Th3-822
  95. //[24-6-2018] Switched to https & small changes. - Th3-822
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement