mcrapet / plowshare-modules-legacy

Plowshare legacy & unmaintained modules
GNU General Public License v3.0
121 stars 77 forks source link

Rapidgator broken again #263

Closed naxels closed 3 years ago

naxels commented 3 years ago

Using the latest rapidgator module with commit in June 2021, https://github.com/mcrapet/plowshare-modules-legacy/commit/f78f216566e61dc20000d433f72d146c06828cd1

I today again starting experiencing errors using a Premium account.

Likely they changed something on their login website (https://rapidgator.net/auth/login) again as using plowdown -v4 I see an Error 400 in the resulting HTML for the POST:

rep:    <div class="in">
rep:        <h2>
rep:            Error 400        </h2>
rep:        <div class="text-block">
rep:            <div class="btm" style="text-align: center;">
rep:                An unexpected error occurred.                <br/>
rep:                <br/>
rep:                <a href="javascript:history.back();" class="btn" style="width: 230px;">
rep:                    <span>Back to previous page</span>
rep:                </a>
rep:            </div>
rep:        </div>
rep:    </div>
rep:</div>

Which ultimately results in:

dbg: Unexpected login issue:
Failed inside rapidgator_download() [1]

Full output

/usr/bin/plowdown -v4 -x --fallback --min-rate 1250000 -m "/home/downloads/Files/file-with-rapidgatorlink.txt" -o "/home/downloads/INCOMING/"

rep: === SYSTEM INFO BEGIN ===
rep: [mach] nas.localdomain x86_64 linux-gnu x86_64-redhat-linux-gnu
rep: [bash] 4.4.20(1)-release
rep: [curl] curl 7.61.1 (x86_64-redhat-linux-gnu) libcurl/7.61.1 OpenSSL/1.1.1g zlib/1.2.11 brotli/1.0.6 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.2.0) libssh/0.9.4/openssl/zlib nghttp2/1.33.0
rep: [sed ] License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
rep: [lib ] '/usr/share/plowshare'
rep: === SYSTEM INFO END ===
rep: plowdown version v2.1.7-2-g29911a50 (2020-07-03)
Output directory: /home/downloads/INCOMING
dbg: plowdown: --no-overwrite selected
rep: use /etc/plowshare.conf
rapidgator: take --auth option from configuration file
Starting download (rapidgator): https://rapidgator.net/file/fileid
rep: --insecure --compressed --speed-time 600 --connect-timeout 240 --user-agent Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0 --silent --speed-time 30 --speed-limit 1250000 --include -b /tmp/plowdown.482841.4159 -c /tmp/plowdown.482841.4159 -d lang=en https://rapidgator.net/site/lang
rep: Received 701 bytes. DRETVAL=0
rep: === CURL BEGIN ===
rep:HTTP/1.1 200 OK
rep:Server: nginx
rep:Date: Wed, 28 Jul 2021 12:33:59 GMT
rep:Content-Type: text/html; charset=UTF-8
rep:Transfer-Encoding: chunked
rep:Connection: keep-alive
rep:Set-Cookie: PHPSESSID=00; path=/
rep:Expires: Thu, 19 Nov 1981 08:52:00 GMT
rep:Cache-Control: no-store, no-cache, must-revalidate
rep:Pragma: no-cache
rep:Set-Cookie: lang=en; expires=Wed, 18-Jul-2029 05:49:51 GMT; Max-Age=251572552; path=/
rep:Pragma: no-cache
rep:Cache-Control: no-cache,must-revalidate
rep:Access-Control-Allow-Origin: *
rep:Content-Encoding: gzip
rep:Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
rep:X-Frame-Options: SAMEORIGIN
rep:X-XSS-Protection: 1; mode=block
rep:X-Content-Type-Options: nosniff
rep:
rep: === CURL END ===
Starting login process: e@mail.com/*****
rep: --insecure --compressed --speed-time 600 --connect-timeout 240 --user-agent Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0 --max-redirs 5 --silent --speed-time 30 --speed-limit 1250000 --cookie-jar /tmp/plowdown.482841.4159 --data LoginForm[email]=e%40mail.com&LoginForm[password]=passw&LoginForm[rememberMe]=1&g-recaptcha-response= -L -b /tmp/plowdown.482841.4159 -H Referer: https://rapidgator.net/auth/login https://rapidgator.net/auth/login
rep: Received 11830 bytes. DRETVAL=0
rep: === CURL BEGIN ===
rep:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
rep:<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
rep:
rep:<head>
rep:    <meta http-equiv="Content-Type" content="text/html; charset=utf-8 "/>
rep:    <meta name="globalsign-domain-verification" content="12344556" />
rep:    <meta name="verify-paysera" content="1234" />
rep:    <meta name="__token" content="00-11==" />
rep:    <link rel="stylesheet" type="text/css" href="/css/all.css?v=22" />
rep:<link rel="stylesheet" type="text/css" href="/css/ddsmoothmenu.css" />
rep:<script type="text/javascript" src="/javascript/jquery-3.4.1.min.js"></script>
rep:<script type="text/javascript" src="/javascript/main.js?v=1"></script>
rep:<script type="text/javascript" src="/javascript/ddsmoothmenu.js"></script>
rep:<title>Rapidgator: Login</title>    <!--[if lt IE 8]>
rep:    <link rel="stylesheet" type="text/css" href="/css/ie.css" media="screen" />    <![endif]-->
rep:    <!--[if IE 8]>
rep:    <link rel="stylesheet" type="text/css" href="/css/ie8.css" media="screen" />    <![endif]-->
rep:    <!--[if IE 6]>
rep:    <script type="text/javascript" src="/javascript/pngFX.js"></script>    <script type="text/javascript">
rep:        DD_belatedPNG.fix(' img, .logo a, .wrap-timer, .timer ');
rep:    </script>
rep:    <![endif]-->
rep:    <script type="text/javascript">
rep:        var url_changeLang = 'http://rapidgator.net/site/lang';
rep:        url_changeLang = url_changeLang.replace('http:', document.location.protocol);
rep:        ddsmoothmenu.init({
rep:            mainmenuid: "smoothmenu1", //menu DIV id
rep:            orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
rep:            classname: 'ddsmoothmenu', //class added to menu's outer DIV
rep:            //customtheme: ["#1c5a80", "#18374a"],
rep:            contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
rep:        });
rep:    </script>
rep:
rep:        <!-- Global site tag (gtag.js) - Google Analytics -->
rep:    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-25516484-1"></script>
rep:    <script>
rep:        window.dataLayer = window.dataLayer || [];
rep:        function gtag(){dataLayer.push(arguments);}
rep:        gtag('js', new Date());
rep:
rep:        gtag('config', 'UA-25516484-1');
rep:    </script>
rep:</head>
rep:<body>
rep:
rep:<div class="container">
rep:    <div class="header">
rep:        <h1 class="logo"><a href="/site/index">Rapidgator</a></h1>
rep:        <p class="slogan">Rapidgator: Fast, safe and secure file hosting</p>
rep:
rep:        <div class="ddsmoothmenu" id="smoothmenu1">
rep:                        <ul>
rep:                <li>
rep:                                    </li>
rep:                                <li><a href="/News/NewsList" >News</a></li>
rep:                <li><a href="#">Upload file</a>
rep:                    <ul>
rep:                        <li><a href="/site/index">Web upload</a></li>
rep:                        <li><a href="/profile/ftp">FTP</a></li>
rep:                        <li><a href="/remotedl/index">Remote upload</a></li>
rep:                    </ul>
rep:                </li>
rep:                <li><a href="/article/premium">Premium</a></li>
rep:                <li><a href="/article/resource">Earn</a></li>
rep:                <!-- <li><a href="/article/faq">FAQ</a></li> -->
rep:                                <li><a href="/article/faq">Support</a></li>
rep:            </ul>
rep:                    </div>
rep:
rep:
rep:        <div class="box-login">
rep:            <ul>
rep:                <li class="login-open1">
rep:                                        <a href="https://rapidgator.net/auth/login">Login</a>
rep:                    <form id="login" action="https://rapidgator.net/auth/login" method="post">
rep:<input type="hidden" value="00-11==" name="__token" />                        <div class="popup-login hidden">
rep:                            <input type="text" class="txt up-login" name="LoginForm[email]" autocomplete="off"/>
rep:                            <input type="password" class="txt up-login" name="LoginForm[password]" autocomplete="off"/>
rep:                            <div class="wrap">
rep:                                <div class="inp">
rep:                                    <p><input type="checkbox" class="ch" id="rem"  checked="checked" name="LoginForm[rememberMe]" value="1"/> <label for="rem">Remember me</label></p>
rep:                                    <a href="/account/ForgotPassword" class="restore">Forgot password</a>
rep:                                </div>
rep:                                <a class="btn-login" style="cursor:pointer;" onclick ="document.forms.login.submit();">Login</a>
rep:                            </div>
rep:                        </div>
rep:                    </form>                    <script type="text/javascript">
rep:                    //<![CDATA[//><!--
rep:                        $('input.up-login').keypress(function(e){
rep:                            if((e.which == 13) && ($('input.up-login').val() != '')){
rep:                                $('form#login').submit();
rep:                            }
rep:                        });
rep:                    //--><!]]>
rep:                    </script>
rep:                                    </li>
rep:                                <li>
rep:                    <a href="/account/registration">Registration</a>
rep:                </li>
rep:                            </ul>
rep:        </div>
rep:    </div>
rep:
rep:
rep:
rep:    <div class="box-lang slider">
rep:        <span class="lang-open">Language:</span>
rep:        <strong class="btn-open">English</strong>
rep:        <div class="popup-lang hidden" style="overflow-y: scroll;height: 400px;">
rep:            <ul>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('en')">English</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('ja')">日本の</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('de')">Deutsch</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('fr')">Français</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('es')">Español</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('zh_tw')">漢語 TW</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('it')">Italiano</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('pl')">Polski</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('nl')">Nederlands</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('ru')">Русский</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('br')">Portuguesa BR</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('zh_cn')">漢語</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('ko')">한국어</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('cs')">Český</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('tr')">Türkçe</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('el')">ελληνικά</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('da')">Dansk</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('nb')">Norsk</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('sv')">Svenska</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('pt')">Portuguesa</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('id')">Indonesia</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('he')">עִבְרִית</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('bg')">Български</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('ro')">Română</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('sk')">Slovenský</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('sl')">Slovenski</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('sq')">Shqipe</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('sr')">Српски</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('vi')">Tiếng Việt</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('mn')">Монгол</a></li>
rep:                <li><a href="javascript:void(0);" onclick="changeLang('am')">Հայերենի</a></li>
rep:            </ul>
rep:        </div>
rep:    </div>
rep:    <div class="overall">
rep:        <div class="wrap-main-block">
rep:
rep:            <div class="main-block wide">
rep:    <div class="in">
rep:        <h2>
rep:            Error 400        </h2>
rep:        <div class="text-block">
rep:            <div class="btm" style="text-align: center;">
rep:                An unexpected error occurred.                <br/>
rep:                <br/>
rep:                <a href="javascript:history.back();" class="btn" style="width: 230px;">
rep:                    <span>Back to previous page</span>
rep:                </a>
rep:            </div>
rep:        </div>
rep:    </div>
rep:</div>
rep:
rep:        </div>
rep:    </div>
rep:</div>
rep:
rep:<div class="footer">
rep:    <div class="in">
rep:        <ul>
rep:            <li><a href="/article/privacyPolicy">Privacy Policy</a></li>
rep:            <li><a href="/article/terms">Terms and Conditions, return, refund, cancellation policy</a></li>
rep:            <li><a href="/article/intellectPolicy">Copyright Infringement Policy</a></li>
rep:            <li><a href="/feedback/contact/q/6">Report abuse</a></li>
rep:                        <li><a href="/article/api">API</a></li>
rep:                        <li><a href="/linkchecker/check">Link checker</a></li>
rep:            <li><a href="/article/security">Security</a></li>
rep:            <li><a href="/article/sla">SLA</a></li>
rep:            <li><a href="/article/faq">FAQ</a></li>
rep:            <li><a href="/article/about">About us</a></li>
rep:<!--
rep:            <li>
rep:                <a target="_blank" href="http://www.facebook.com/RapidGator"><span><img alt="Facebook" src="/images/facebook-16x16.png" class="img"/></span></a>&nbsp;
rep:                <a target="_blank" href="https://twitter.com/#!/Rapidgator"><span><img alt="Twitter" src="/images/twitter-16x16.png" class="img"/></span></a>
rep:            </li>
rep:-->
rep:        </ul>
rep:        <p align="center">Copyright © 2010-2021 Rapidgator, All rights reserved<br>
rep:                <!--<img src="/images/carts_footer.png?v=1" alt="Payment systems" height="33"><br></p>-->
rep:        <a href="#" onclick="window.open('https://www.sitelock.com/verify.php?site=www.rapidgator.net','SiteLock','width=600,height=600,left=160,top=170');" ><img alt="website security" title="SiteLock" src="//shield.sitelock.com/shield/www.rapidgator.net"/></a>
rep:    </div>
rep:</div>
rep:
rep:<div id="cookie-dlg" style="display: none;" class="eu-cookie">
rep:    <div class="centered"><p>
rep:        <i>To continue, please agree to our Terms of Service and Cookie Policy. We use cookies for functional and analytical purposes.</i>
rep:        <a class="btn-accept-cookie" id="accept-cookie" href="#">I Agree</a>
rep:    </p></div>
rep:</div>
rep:
rep:<script type="text/javascript">
rep:    $("document").ready(function() {
rep:        let csrf_token = $('meta[name="__token"]').attr('content');
rep:        $.ajaxPrefilter(function (options, originalOptions, jqXHR) {
rep:            if (options.type.toLowerCase() === "post" && options.data.indexOf(csrf_token) < 0) {
rep:                options.data = options.data || "";
rep:                options.data += options.data ? "&" : "";
rep:                options.data += "__token=" + csrf_token;
rep:            }
rep:        });
rep:    });
rep:</script>
rep:
rep:</body>
rep:</html>
rep: === CURL END ===
rep: === COOKIE BEGIN ===
rep:# Netscape HTTP Cookie File
rep:# https://curl.haxx.se/docs/http-cookies.html
rep:# This file was generated by libcurl! Edit at your own risk.
rep:
rep:rapidgator.net  FALSE   /   FALSE   0   __token 00-11%3D%3D
rep:rapidgator.net  FALSE   /   FALSE   0   PHPSESSID   00
rep:rapidgator.net  FALSE   /   FALSE   1879048191  lang    en
rep: === COOKIE END ===
dbg: Unexpected login issue:
Failed inside rapidgator_download() [1]
naxels commented 3 years ago

Today it started working again by itself, leaving the above as a reference