Using Default Login.
\n"; } else $default_acc = false; if (empty($_REQUEST['action']) || $_REQUEST['action'] != 'FORM') { echo "\n"; echo "\n"; echo "\n"; echo "
 Login* 
 Password* 

*You can set it as default in ".basename(__FILE__)."
\n\n"; } else { $login = $not_done = false; $domain = 'shared.com'; $referer = "https://$domain/"; // Login echo "\n
\n
Login to $domain
\n"; $cookie = array(); if (!empty($_REQUEST['up_login']) && !empty($_REQUEST['up_pass'])) { if (!empty($_REQUEST['A_encrypted'])) { $_REQUEST['up_login'] = decrypt(urldecode($_REQUEST['up_login'])); $_REQUEST['up_pass'] = decrypt(urldecode($_REQUEST['up_pass'])); unset($_REQUEST['A_encrypted']); } $page = geturl($domain, 80, '/login', $referer.'login', $cookie, 0, 0, $_GET['proxy'], $pauth);is_page($page); $cookie = GetCookiesArr($page, $cookie); $post = array(); $post['utf8'] = urlencode(html_entity_decode(cut_str($page, 'name="utf8" type="hidden" value="', '"'), ENT_QUOTES, 'UTF-8')); $post['authenticity_token'] = cut_str($page, 'name="authenticity_token" type="hidden" value="', '"'); if (empty($post['authenticity_token'])) html_error('CSRF token not found.'); $post['user%5Bemail%5D'] = urlencode($_REQUEST['up_login']); $post['user%5Bpassword%5D'] = urlencode($_REQUEST['up_pass']); $post['submit'] = 'Log+In'; $page = geturl($domain, 80, '/login', $referer.'login', $cookie, $post, 0, $_GET['proxy'], $pauth);is_page($page); $cookie = GetCookiesArr($page, $cookie); is_present($page, 'Login incorrect', 'Login Failed: Email/Password incorrect.'); if (!preg_match('@\nLocation: (?:https?://shared.com)?/u/([^\r\n]+)@i', $page, $uname)) html_error('Login Error: Login redirect not found.'); $login = true; } else html_error('Login failed: User/Password empty.'); // Retrive upload ID echo "\n
Retrieving upload ID
\n"; $page = geturl($domain, 80, '/u/'.$uname[1], $referer.'login', $cookie, 0, 0, $_GET['proxy'], $pauth);is_page($page); $cookie = GetCookiesArr($page, $cookie); if (!preg_match('@action="((https?://(?:\w+\.)*shared\.com)?(/)?[^\s\'\"<>]+)"\s+class="no-files-selected"@i', $page, $up)) html_error('Error: Upload url not found.'); $csrf = trim(cut_str($page, 'name="authenticity_token" type="hidden" value="', '"')); if (empty($csrf)) html_error('Error: Upload CSRF token not found.'); $post = array(); $post['status'] = '1'; $ref = $referer.'u/'.$uname[1]."\r\nX-CSRF-Token: $csrf"; $up_url = (empty($up[2]) ? "http://$domain".(empty($up[3]) ? '/' : '').$up[1] : $up[1]); // Uploading echo "\n"; $url = parse_url($up_url); $upfiles = upfile($url['host'], defport($url), $url['path'].(!empty($url['query']) ? '?'.$url['query'] : ''), $ref, $cookie, $post, $lfile, $lname, 'files[]', '', 0, 0, 0, $url['scheme']); // Upload Finished echo "\n"; is_page($upfiles); if (!preg_match('@"slug"\s*:\s*"([^"]+)",@i', $upfiles, $lnk)) html_error('Download link not found.', 0); $download_link = 'http://shared.com/'.$lnk[1]; } //[09-3-2014] Written by Th3-822. //[15-3-2014] Fixed login redirect. - Th3-822 //[26-5-2014] Removed https, site is forcing http connections now. - Th3-822 ?>