mcrapet / plowshare-modules-legacy

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

RapidGator Download Stopped Working #250

Open arno56 opened 4 years ago

arno56 commented 4 years ago

I've been using this module for more than a year but since today; each request ends like that: Failed inside rapidgator_download() [1]

naxels commented 4 years ago

I have the same issue for a Premium account, here is the verbose log:

/usr/bin/plowdown -x --fallback -m "/home/downloads/Files/in_process/downloadfile.txt" -o "/home/downloads/INCOMING/" -v 4

rep: === SYSTEM INFO BEGIN === rep: [mach] nas.localdomain x86_64 linux-gnu x86_64-redhat-linux-gnu rep: [bash] 4.2.46(2)-release rep: [curl] curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.44 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 rep: [sed ] License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. rep: [lib ] '/usr/share/plowshare4' rep: === SYSTEM INFO END === rep: plowdown version v1.0.6 (2014-11-08) 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/id/downloadfile.mkv 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 --include -b /tmp/plowdown.20874.4851 -c /tmp/plowdown.20874.4851 -d lang=en https://rapidgator.net/site/lang rep: Received 725 bytes. DRETVAL=0 rep: === CURL BEGIN === rep:HTTP/1.1 200 OK rep:Server: nginx rep:Date: Fri, 04 Sep 2020 16:51:28 GMT rep:Content-Type: text/html; charset=UTF-8 rep:Transfer-Encoding: chunked rep:Connection: keep-alive rep:Set-Cookie: PHPSESSID=a1e8b1a47c9e5460e720b092e0f380t2; path=/; secure; HttpOnly 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=279809903; 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 --cookie-jar /tmp/plowdown.20874.4851 --data LoginForm[email]=e%40mail.com&LoginForm[password]=passw&LoginForm[rememberMe]=1 -L -b /tmp/plowdown.20874.4851 https://rapidgator.net/auth/login rep: Received 5 bytes. DRETVAL=0 rep: === CURL BEGIN === rep:false rep: === CURL END === rep: === COOKIE BEGIN === rep:# Netscape HTTP Cookie File rep:# http://curl.haxx.se/docs/http-cookies.html rep:# This file was generated by libcurl! Edit at your own risk. rep: rep:#HttpOnly_rapidgator.net FALSE / TRUE 0 PHPSESSID a1e8b1a47c9e5460e720b092e0f380t2 rep:rapidgator.net FALSE / FALSE 1879149191 lang en rep: === COOKIE END === dbg: Unexpected login issue: Failed inside rapidgator_download() [1]

Update: The curl request returns false for some reason, always.

The alternative, using the API, still works as expected, unfortunately is not in the module however

arno56 commented 4 years ago

Thanks for your reply naxels. Something changed on Rapidgator side... that's for sure.

rlsblogse commented 4 years ago

Upload is also not working. i cheek its Rapidgator login problem , Rapidgator is now added new value for login. &g-recaptcha-response=

rlsblogse commented 4 years ago

LoginForm%5BtwoStepAuthCode%5D=&LoginForm%5BrememberMe%5D=0&LoginForm%5BrememberMe%5D=1&g-recaptcha-response="

arno56 commented 4 years ago

Any way to fix that in the module?

naxels commented 4 years ago

I've updated the rapidgator.sh module locally to include both twoStepAuthCode & g-recaptcha-response however it still errors out:

LOGIN_DATA='LoginForm[email]=$USER&LoginForm[password]=$PASSWORD&LoginForm[twoStepAuthCode]=&LoginForm[rememberMe]=1&g-recaptcha-response='

The response in Postman is also still 'false' when i try it manually

rlsblogse commented 4 years ago

weird thing is api is working.

rlsblogse commented 4 years ago

we have to find the value of this field g-recaptcha-response

naxels commented 4 years ago

we have to find the value of this field g-recaptcha-response

I tracked the POST through the website using firefox and found that the value was always empty in my case.. "" therefor I am not sure what is causing this.

What I am thinking about is creating a temporary module only for Premium that will use the API until we resolve this

rlsblogse commented 4 years ago

glad o here waiting of ur module

arno56 commented 4 years ago

@naxels Waiting forward to see that ;-) Thanks

rlsblogse commented 4 years ago

well just a quick ugly fix lol

https://github.com/rlsblogse/plowshare-modules-legacy/commit/f9bf643cf1a0bdbe2a5203187d53efb38d997e50

uppload is working via api

bravohe commented 4 years ago

plz try with updated rapdigatore.sh

arno56 commented 4 years ago

plz try with updated rapdigatore.sh

Not working with me.

No module found, try simple redirection
Skip: no module for URL (https://rapidgator.net/)
naxels commented 4 years ago

plz try with updated rapdigatore.sh

Thank you bravohe!

I did a diff on the original and bravohe's file and found out it's a very simple patch in order for rapidgator.sh to work again:

in the rapidgator.sh file, update the following line in 3 places: "$BASE_URL/auth/login" -L -b "$COOKIE_FILE") || return

set it to: "$BASE_URL/auth/login" -L -b "$COOKIE_FILE" --referer "$BASE_URL") || return

This way you don't even need the additional LoginForm fields like twoStepAuthCode and g-recaptcha-response

Update: There is another pull request for rapidgator.sh update: https://github.com/mcrapet/plowshare-modules-legacy/pull/243 which has not been applied yet.. therefor I don't know if it makes sense to create another pull request right now instead of just fork/fix it

zpzyyzp commented 4 years ago

plz try with updated rapdigatore.sh

Thank you bravohe!

I did a diff on the original and bravohe's file and found out it's a very simple patch in order for rapidgator.sh to work again:

in the rapidgator.sh file, update the following line in 3 places: "$BASE_URL/auth/login" -L -b "$COOKIE_FILE") || return

set it to: "$BASE_URL/auth/login" -L -b "$COOKIE_FILE" --referer "$BASE_URL") || return

This way you don't even need the additional LoginForm fields like twoStepAuthCode and g-recaptcha-response

Works like a charm!

arno56 commented 4 years ago

plz try with updated rapdigatore.sh

Thank you bravohe! I did a diff on the original and bravohe's file and found out it's a very simple patch in order for rapidgator.sh to work again: in the rapidgator.sh file, update the following line in 3 places: "$BASE_URL/auth/login" -L -b "$COOKIE_FILE") || return set it to: "$BASE_URL/auth/login" -L -b "$COOKIE_FILE" --referer "$BASE_URL") || return This way you don't even need the additional LoginForm fields like twoStepAuthCode and g-recaptcha-response

Works like a charm!

It works perfectly! Thanks for your time.

bobvalent commented 3 years ago

Hi all! I still have the problem after using your updated modules. Same error: Failed inside rapidgator_download() [1] However, mine worked fine until November, so I don't know if Rapidgator changed something after you fixed the module back in September. Anyone else with the same problem?