├── README.md ├── download ├── androidfilehost_com.php ├── aparat_com.php ├── bayfiles_com.php ├── cafebazaar_ir.php ├── cdn_persiangig_com.php ├── drop_download.php ├── fex_net.php ├── file_town.php ├── filescdn_net.php ├── google_com.php ├── playvids_com.php ├── pornhub_com.php ├── porntrex_com.php ├── solidfiles_com.php ├── sourceforge_net.php ├── tinyupload_com.php ├── transfer_sh.php ├── ufile_io.php ├── uploadfiles_io.php └── uptostream_com.php └── upload ├── bayfiles.com.index.php ├── bayfiles.com.php ├── file.io.index.php ├── file.io.php ├── gofile.io.index.php ├── gofile.io.php ├── multifilemirror.com.index.php ├── multifilemirror.com.php ├── picofile.com.index.php ├── picofile.com.php ├── picofile.com_member.index.php ├── picofile.com_member.php ├── trainbit.com.index.php ├── trainbit.com.php ├── transfer.sh.index.php └── transfer.sh.php /README.md: -------------------------------------------------------------------------------- 1 | # rapidleech-plugins 2 | Some useful RapidLeech plugins 3 | 4 | Download RapidLeech from here: 5 | https://github.com/Th3-822/rapidleech 6 | -------------------------------------------------------------------------------- /download/androidfilehost_com.php: -------------------------------------------------------------------------------- 1 | 'submit', 'action' => 'getdownloadmirrors', 'fid' => $fid[1]]); 16 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 17 | curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/x-www-form-urlencoded']); 18 | $result = curl_exec($ch); 19 | curl_close($ch); 20 | if ($result === false) { 21 | html_error('Curl error: '.curl_error($ch)); 22 | } 23 | $result = json_decode($result, true); 24 | if (empty($result['MIRRORS'])) { 25 | html_error(json_encode($result)); 26 | } 27 | $this->RedirectDownload($result['MIRRORS'][0]['url'], 0, 0, 0, $link); 28 | } 29 | } 30 | 31 | // [03-01-2018] Written by NimaH79. 32 | -------------------------------------------------------------------------------- /download/aparat_com.php: -------------------------------------------------------------------------------- 1 | GetPage('https://www.aparat.com/v/'.$vid); 16 | is_present($page, 'ویدیو مشابهی یافت نشد.', 'Video not found or it was deleted.'); 17 | if (!preg_match('@(?>(.*?))@is', $page, $title)) { 18 | html_error('Error: Video title not found.'); 19 | } 20 | if (!preg_match_all('@https?://(?:[\w-]+\.)*aparat\.com/aparat-video/\w+(?:-(\d+p))?__\w+\.mp4@i', $page, $DL)) { 21 | html_error('Download link not found.'); 22 | } 23 | 24 | $DL = [$DL[0][count($DL[0]) - 1], $DL[1][count($DL[0]) - 1]]; 25 | 26 | $filename = $title[1]; 27 | $filename = preg_replace('@(?:\.(?:mp4|flv|mkv|webm|wmv|(m2)?ts|rm(vb)?|mpe?g?|vob|avi|[23]gp))+$@i', '', $filename); 28 | $filename .= sprintf(' [Aparat%s][%s].mp4', (empty($DL[1]) ? '' : '-'.$DL[1]), $vid); 29 | $this->RedirectDownload($DL[0], $filename, 0, 0, 0, $filename); 30 | } 31 | } 32 | 33 | // [23-12-2015] Written by Th3-822. 34 | // [27-12-2015] Fixed Regexp. - Th3-822 35 | // [10-08-2017] Fixed Quality Selection. - NimaH79 36 | // [06-04-2018] Updated by NimaH79 37 | -------------------------------------------------------------------------------- /download/bayfiles_com.php: -------------------------------------------------------------------------------- 1 | GetPage($link); 13 | if (!preg_match('//', $page, $download_link)) { 14 | html_error('File not found!'); 15 | } 16 | $this->RedirectDownload($download_link[1], 0, 0, 0, $link); 17 | } 18 | } 19 | 20 | // [16-08-2018] Written by NimaH79. 21 | // [12-01-2020] Fixed by NimaH79. 22 | -------------------------------------------------------------------------------- /download/cafebazaar_ir.php: -------------------------------------------------------------------------------- 1 | GetPage($link); 12 | if (!preg_match('/\?id=(.+)/', $link, $packagename) && !preg_match('/\/app\/(.+)\//', $link, $packagename)) { 13 | html_error('Url not valid!'); 14 | } 15 | $packagename = $packagename[1]; 16 | $ch = curl_init('http://ad.cafebazaar.ir/json/getAppDownloadInfo'); 17 | curl_setopt($ch, CURLOPT_POSTFIELDS, '{"id":1,"hash":"'.sha1('{"7cc78271-e338-4edc-849c-b105c5d51ba5":["getAppDownloadInfo","'.$packagename.'"'.',19]}').'","packed":"S\/NNuBO0LXIyFIIo2UZ2gMhvQHttPoXiqAp3Z43Fz\/rUOSgphpIT+7Gx1fNYhqSm4zFG5Bx+jU1yW8\/FVZAnJAAYFf4bJuaABojX7OPQNqigm0wzRuq7b1TJuwpY0jam","iv":"mosLEvk1Ti0pNGEw0mW0tfRTuEuCoUBy\/prQyL4Xy5gujrp69k4OKHf6GxE9LLxcZjBKQuwswoxzGnMXpxwqNamE49LsP30Sd7i+ZPCT8N8uDiQos8h1kfUB02KDoPpQGsXktpEugQjxHFxoHve+25uAuU4WANND7KI\/LN3gI9A=","p2":"Cpo0+8o2CyXOlTd41Z\/3IaDOHy5ByDbmMBMRtHEVJfDvJCTgXpJFNlr7GTOZ5JMqI5jFm8xGtL9noYTiiIk5NUCDl27w3U3wXOCucTzulmLM+68Iigu4f9B2371liFsnLZr+i0IjnffAI63sQXLxh2njpfcCuKuUQneX\/LeSsqs=","p1":"aZaq4qYY32qIvnqI7svHcznKx1Pq0VuYQIpg9dCmI+2KHDRTu6hUlc7tfICcy0vn9YpSIl6vtsM1687c7As\/lSWoxYXVjQYgx2XvJko\/+vbboXZAhEnsUPaME3IQ97jGTLBsWY4ds4ZrR0iNR2uVyT+rGXiqGxaKxHgmyFwZd3E=","method":"getAppDownloadInfo","non_enc_params":"{\"device\":{\"mn\":16,\"abi\":\"x86\",\"sd\":19,\"bv\":\"7.5.1\",\"us\":{},\"ct\":\"\",\"id\":\"6cAUX_eAThCrjoUbSxgISg\",\"dd\":\"android\",\"co\":\"\",\"mc\":310,\"dm\":\"bignox\",\"do\":\"Nexus\",\"dpi\":240,\"abi2\":\"armeabi-v7a\",\"sz\":\"l\",\"dp\":\"nox\",\"pr\":\"\"},\"referer\":{\"name\":\"page_home|!EX!None_experiment|!VA!None_variation|row-0-Best New Apps and Games|0|not_initiated\"}}","params":[]}'); 18 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 19 | $json = json_decode(curl_exec($ch), true); 20 | curl_close($ch); 21 | 22 | preg_match('//su', $page, $appname); 23 | $appname = str_replace('_', ' ', $appname[1]).'.apk'; 24 | $appname = str_replace(['آ', 'ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی', 'ي', 'ئ', 'أ', 'ة', 'ك', 'ء', '؟', 'إ', ' ', '‌'], ['a', 'a', 'b', 'p', 't', 's', 'j', 'ch', 'h', 'kh', 'd', 'z', 'r', 'z', 'zh', 's', 'sh', 's', 'z', 't', 'z', 'a', 'gh', 'f', 'gh', 'k', 'g', 'l', 'm', 'n', 'v', 'h', 'y', 'i', 'e', 'a', 't', 'k', 'e', '?', 'e', '-', ''], $appname); 25 | 26 | if (isset($json['result']['error'])) { 27 | html_error('App not found, or it\'s paid!'); 28 | } 29 | $dlink = $json['result']['cp'][0].'apks/'.$json['result']['t'].'.apk'; 30 | $this->RedirectDownload($dlink, $appname, 0, 0, $link); 31 | } 32 | } 33 | 34 | // [26-09-2017] Written by NimaH79. 35 | -------------------------------------------------------------------------------- /download/cdn_persiangig_com.php: -------------------------------------------------------------------------------- 1 | GetPage($link); 12 | if (!preg_match('/

(.*?)<\/h1>/', $page, $filename)) { 13 | html_error('File not found!'); 14 | } 15 | preg_match('/https?:\/\/cdn\.persiangig\.com\/download\/(.*?)\/(.*?)$/', $link, $info); 16 | $id = $info[1]; 17 | $name = str_replace('/dl', '', $info[2]); 18 | $token = file_get_contents('http://cdn.persiangig.com/cfs/rest/publicAccess/'.$id.'/generateDownloadLink'); 19 | $token = json_decode($token, true)['token']; 20 | $dlink = 'http://cdn.persiangig.com/dl/'.$token.'/'.$id.'/'.$name; 21 | $filename = $filename[1]; 22 | $this->RedirectDownload($dlink, $filename, 0, 0, $link); 23 | } 24 | } 25 | 26 | // [11-08-2017] Written by NimaH79. 27 | -------------------------------------------------------------------------------- /download/drop_download.php: -------------------------------------------------------------------------------- 1 | true, 18 | CURLOPT_SSL_VERIFYPEER => false, 19 | CURLOPT_SSL_VERIFYHOST => false, 20 | CURLOPT_COOKIEFILE => 'droapk_cookie.txt', 21 | CURLOPT_COOKIEJAR => 'droapk_cookie.txt', 22 | CURLOPT_FOLLOWLOCATION => true, 23 | CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', 24 | ]); 25 | $response = curl_exec($ch); 26 | curl_setopt($ch, CURLOPT_URL, curl_getinfo($ch, CURLINFO_EFFECTIVE_URL)); 27 | if (!preg_match('//', $response, $op)) { 28 | html_error('Cannot get op.'); 29 | } 30 | $op = $op[1]; 31 | if (!preg_match('//', $response, $usr_login)) { 32 | html_error('Cannot get usr_login.'); 33 | } 34 | $usr_login = $usr_login[1]; 35 | if (!preg_match('//', $response, $id)) { 36 | html_error('Cannot get id.'); 37 | } 38 | $id = $id[1]; 39 | if (!preg_match('//', $response, $fname)) { 40 | html_error('Cannot get fname.'); 41 | } 42 | $fname = $fname[1]; 43 | if (!preg_match('//', $response, $referer)) { 44 | html_error('Cannot get referer.'); 45 | } 46 | $referer = $referer[1]; 47 | curl_setopt($ch, CURLOPT_REFERER, $referer); 48 | if (!preg_match('/