DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-01-09 11:15:18

craft
Member
From: Budapest, Hungary
Registered: 2007-06-14
Posts: 122
Website

Rapidshare.com download (premium) with DNS-323

Hi

Mldonkey can't download with fileTP proto from rapidshare.com. :-(
So I created a "script" to download files from rapid with my premium account. :-)

http://tomi.belcom.hu/dns323/simple/rapid_323.zip

If u want you can test this script - but you need a premium acc. on rapidshare.com

Readme.txt inside the zip file !


Regards

craft


---------------------------
Hajra magyarok


-------------------------------------------------------------------------------------------------------------------------------------------
2 x DNS-320
1 x DNS-325

Offline

 

#2 2008-02-19 11:34:56

Boris911
Member
Registered: 2008-02-19
Posts: 7

Re: Rapidshare.com download (premium) with DNS-323

Hello,
   do you have any idea how do that your script will still download if I will close telnet windows? Because now I have to open telnet windows and when I close windows your script is interrupted and download is stopped. :-( And I want to do it independent on my computer.

Best Regards,
Boris911

Offline

 

#3 2008-02-29 16:06:57

Tom0000
Member
Registered: 2008-01-31
Posts: 23

Re: Rapidshare.com download (premium) with DNS-323

You can run script with command: &
It will let you stay your script in memory running after your logout.

Offline

 

#4 2008-02-29 19:18:39

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Rapidshare.com download (premium) with DNS-323

As Tom0000 says, placing an & after the command will make it run in the background and should work, if not you can put "nohup" before the command also.

Offline

 

#5 2008-03-06 16:41:53

Boris911
Member
Registered: 2008-02-19
Posts: 7

Re: Rapidshare.com download (premium) with DNS-323

O.K.! I'll test it. And do you know that it will work with another websharing services? Like a czshare.com, or megaupload.com.

Best Regards,
Boris911

Offline

 

#6 2008-03-06 17:39:08

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: Rapidshare.com download (premium) with DNS-323

Offline

 

#7 2008-03-09 00:36:34

Boris911
Member
Registered: 2008-02-19
Posts: 7

Re: Rapidshare.com download (premium) with DNS-323

It is working perfectly (on background after close session in Putty). :-) I saw to SH script and maybe it should work if I will get to rslink.txt some "normal" links. I will check it later. Otherwise for stop downloading from undergraund. It should work by command KILL, isn't it?

Best Regards,
Boris911

Offline

 

#8 2008-03-12 01:06:54

Boris911
Member
Registered: 2008-02-19
Posts: 7

Re: Rapidshare.com download (premium) with DNS-323

Well. Normal ling is possible download via your script, too. *THUMBS UP* It is not possible via download manager in web administration. But I would like ask you, as creator of this script, how should I change when I have for example this link: http://nix2.www7.czshare.com/profi.php? … 7Y5f64CX2H . Normally on computer it will be translate to normal filename "Vista 6.0.6001.18000 (longhorn_rtm.080118-1840) x64.exe". But after downloaded I have on my DNS-323 saved file with name PVF3ZU~V. And when I download lot of parts I mus found it again and rename it.

If you will be so glad, can you give me any advice how should I do, please?

Best Regards,
Boris911

Last edited by Boris911 (2008-03-12 01:08:58)

Offline

 

#9 2009-02-28 07:16:31

zelduy
Member
Registered: 2009-02-28
Posts: 9

Re: Rapidshare.com download (premium) with DNS-323

Hi.. I'm a n00b here in linux..
I already install the fun_pug 0.5 but when I try to run your script it said :
/mnt/HD_a2/rapid/gex_rs.sh: not found

why's that?? I have the cookies.. btw I put the gex_rs.sh and the rsurl.txt in the rapid folder...

thanks...

Offline

 

#10 2009-02-28 13:10:51

thomaskunze
Member
Registered: 2008-06-03
Posts: 14

Re: Rapidshare.com download (premium) with DNS-323

Hi there,
I appreciate your efforts and do absolutely not want to cross you or take over the thread!
There is a similar project existing on the German Gulliboard called lsd http://board.gulli.com/thread/1302690-l … -funktion/. I am using this nice package (optware required) for a few weeks now to my total satisfaction so I'd like to share this information with the community.
For those who don't read German, here is a link to the translated post (using google translate): http://74.125.43.132/translate_c?hl=de& … U9pE0S5RQQ

Offline

 

#11 2009-03-01 04:08:18

zelduy
Member
Registered: 2009-02-28
Posts: 9

Re: Rapidshare.com download (premium) with DNS-323

whoah.. that one kinda too advance for me.. and the translated things kinda make me bit confused..
could you, if you dont mind.. give a step by step for it??
I know how to install opware but the package need to be install are..
# findutils
# grep
# sed
# wget
# curl
# bash
# python (RSDF & CCF Support)
# python-crypto (RSDF & CCF Support)
# wine (CCF Support)
# imagemagick (Captchas)

in the http://ipkg.nslu2-linux.org/feeds/optwa … /unstable/ I can only found (are these the right one?):
- findutils_4.2.32-1_arm.ipk
- grep_2.5.3-1_arm.ipk
- wget-ssl_1.11.4-1_arm.ipk
- bash_3.2.33-1_arm.ipk
- imagemagick_6.4.8.3-1_arm.ipk

and I couldnt find any :
sed
curl
python (RSDF & CCF Support)
python-crypto (RSDF & CCF Support)
wine (CCF Support)

Maybe I just don't know the name of the files.. likpython.. there are so many of it.. I don't know which is which..

then after I download this package what shoul I do with the downloaded lsd.tar??

very very very apreciate with the help.. smile
coz I 'm a really n00b here..

thanks...

Offline

 

#12 2009-03-01 06:13:39

zelduy
Member
Registered: 2009-02-28
Posts: 9

Re: Rapidshare.com download (premium) with DNS-323

whoah.. found an easy solution for rapidshare premiuim download...
I'm using wget from optware and using most of the thread starter (craft) method...
here's how..

1.step :

Use your firefox to login to rapidshare premium zone with your prem. username/passw.- and save the cookie.
Find your FF cookie file (cookies.txt) in your
computer (/Documents and settings/<Username>/Application Data/Mozilla/Firefox/Profiles/<your profile>/cookies.txt)
(cookies.txt only exist in firefox 2.. firefox 3 user have to convert cookies.sqlite to cookies.txt.. google for it)

2.step :

In this "cookies.txt" find the ".rapidshare.com" line, like this :
".rapidshare.com    TRUE    /    FALSE    1731509997    user    2XXX-%XX%XX%XX%xxetc..."

you need this part of the line "user    2XXX-%XX%XX%XX%XX%XX"

3.step :
Create a folder in /mnt/HD_a2/ named rapid
and create a .txt and put it in that folder..  (i'm using rsurl.txt)  file contains the rapids file you need to download...

4.step :
from putty or telnet do:
#cd /mnt/HD_a2/rapid
#wget -bc --header 'Cookie: user=2XXX-%XX%XX%XX%XX%XX' -i rsurl.txt

info:
-bc for runging in background
--header for the cookies
-i for input of the txt file
and 2XXX-%XX%XX%XX%XX%XX is the rapidshare cookies that you got from firefox..

Offline

 

#13 2009-03-02 11:12:26

daemonx
Member
Registered: 2008-11-07
Posts: 17

Re: Rapidshare.com download (premium) with DNS-323

Id recommend Aria2c (optware) to download from RS Premium Accounts. It allows multi threaded download and allows u to dload upto 5 (i think) concurrent jobs. all you have to do is put the links in a text file and u can set the RS username and password in a config file or specify at command line and run it. the only prob is the dload speed is displayed in a wrong character set.

Offline

 

#14 2009-03-03 04:22:24

zelduy
Member
Registered: 2009-02-28
Posts: 9

Re: Rapidshare.com download (premium) with DNS-323

daemons:
could you give us the detail sample of the command?
it'll be very kind of you.. smile
thanks..

Offline

 

#15 2009-03-03 11:46:51

daemonx
Member
Registered: 2008-11-07
Posts: 17

Re: Rapidshare.com download (premium) with DNS-323

zelduy wrote:

daemons:
could you give us the detail sample of the command?
it'll be very kind of you.. smile
thanks..

here are the files i use.

refer to http://linux.die.net/man/1/aria2c if you want to know what it means

---------------------------------------------------------------

aria2.conf
------------

log=/ffp/logs/aria.log
split=5
http-user=<RS USERNAME>
http-passwd=<RS PASSWORD>
allow-piece-length-change=true
input-file=/hd/downloads/uploads/links.txt
quiet=true
auto-file-renaming=false
log-level=notice


aria.sh
--------
aria2c --daemon --conf-path=/ffp/etc/aria2.conf


---------------------------------------------------------------

Hope this helps....

Offline

 

#16 2009-04-09 05:20:06

gavinlow
New member
Registered: 2009-04-01
Posts: 3

Re: Rapidshare.com download (premium) with DNS-323

Hi,

I've installed aria2 but when I tried with some rapidshare links, I always get an error of cannot resolve rapidshare.com host something like that. However, ping can reach rapidshare.com and wget is able to reach rapidshare.com. Is there something I missed out for aria2? By the way, I did a nslookup for rapidshare.com and it returns a lot of IPs.

Thanks.

Offline

 

#17 2009-04-17 18:32:54

osprey23
New member
Registered: 2009-04-09
Posts: 2

Re: Rapidshare.com download (premium) with DNS-323

Managed to it to work. Great idea.

However, I noticed that the download speed way slower than that of my computer. Anyway to improve this?

Cheers!

Offline

 

#18 2009-04-24 10:20:59

zapbranighan
Member
Registered: 2009-04-24
Posts: 5

Re: Rapidshare.com download (premium) with DNS-323

I'm also having trouble with aria2c.  Here's the error:

/mnt/HD_a2/RapidShare # /opt/bin/aria2c --http-user=USERNAME --http-passwd=PASSWORD -s 5 --dir="/mnt/HD_a2/RapidShare" -i links.txt

2009-04-23 23:15:51.603755 ERROR - Exception caught
Exception: Initializing EpollEventPoll failed. Try --event-poll=select

I've also tried it using daemonx's method, but nothing seems to happen.

Can anyone help me?

Offline

 

#19 2009-04-25 11:37:49

zapbranighan
Member
Registered: 2009-04-24
Posts: 5

Re: Rapidshare.com download (premium) with DNS-323

I was able to get further using --event-poll=select on aria2c but now I'm having issues with the name server:

aria2c --load-cookies=rscookie --event-poll=select -i links.txt

2009-04-25 00:26:52.462657 WARN - You may encounter the certificate verification error with HTTPS server. See --ca-certificate and --check-certificate option.

2009-04-25 00:26:52.492700 ERROR - CUID#6 - Download aborted. URI=http://rapidshare.com/files/225240077/Smallville_-_819_-_Stiletto.part5.rar
Exception: URI=http://rapidshare.com/files/225240077/Smallville_-_819_-_Stiletto.part5.rar
  -> CUID#6 - Name resolution for rapidshare.com failed:Could not contact DNS servers

Download Results:
gid|stat|avg speed  |path/URI
===+====+===========+==========================================================
  1| ERR|        n/a|http://rapidshare.com/files/225240077/Smallville_-_819_-_Stiletto.part5.rar

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.


Do I have to setup the DNS server manually? My network is currently DHCP.

Offline

 

#20 2009-04-27 06:56:51

zapbranighan
Member
Registered: 2009-04-24
Posts: 5

Re: Rapidshare.com download (premium) with DNS-323

It looks like the aria2c and wget that I installed from optware has some kind of name server issues. I'm not sure what it is. I installed aria2c from:

http://www.onlyhype.com/dns-323/ffp-0.5/

I can now download from rapidshare premium with no issues.

Offline

 

#21 2009-06-27 17:42:06

arofarmer
New member
From: SG
Registered: 2009-06-26
Posts: 3

Re: Rapidshare.com download (premium) with DNS-323

Thanks for the many kind inputs guys!

I'm a total noob in linux (been on Windows all the time) and just got my DNS-323 with ffp0.5 loaded. The help here is very useful and much appreciated.

Was learning to download from rapidshare to DNS-323 with PC off and found this thread.

Going the easy way, I tried [craft] & [zelduy] method but ran into a problem. The "user    2XXX-%XX%XX%XX%XX%XX" line in firefox2 cookie.txt file is encrypted. I only see "enc 67475723775....". Maybe becos i'm on vista home premium? Dead end for me here.

Next, tried the aria2c method as offered by [daemonx] and read the aria2c documentation to understand the commands & options. Finally got the hang and got it to work.

Here's my sharing should anyone be interested (especially for uber noobs like me who had never touched Linux before. Do read up on basic Linux commands before attempting and sorry for the long post):

DISCLAIMER:
The following is outlined for informational and guideline purposes only. It is not intended for use in mission-critical applications or in production systems. It is being made available for the purpose of social sharing with responsible individuals and cannot guarantee that it is fit for any particular purpose. USE AT YOUR OWN RISK.


Preparations:
1. Before starting, ffp0.5 must be installed on DNS-323. Do read here for the HOWTO (kudos to fonz!!):

    http://dns323.kood.org/howto:ffp 

2. A SSH & Telnet client is also required and Putty is one such client that is free to use and can be downloaded here:

    http://www.putty.org/

3. Get ARIA2C from [zapbranighan] posted link:

   http://www.onlyhype.com/dns-323/ffp-0.5/

4. Using SSH/Telnet, follow the installation written for ARIA2C at README.txt:

    ### ARIA2 1.0.0 for DNS-323/CH3SNAS with ffp0.5 ###
    Multi-threaded file downloader. BitTorrent supported.

    Installation:
    wget htttp://www.onlyhype.com/dns-323/ffp-0.5/aria2c-1.0.0.tgz
    funpkg -i aria2c-1.0.0.tgz

    Just type word for word into the putty command prompt. The first line "wget" is to download(get) the file to DNS-323. The second line "funpkg" is to install the program. If there is no error prompt, it means everything is in order. There will not be any completion/successful notification.

5. In order not to mess up file directory in DNS-323, i suggest creating a separate folder to hold all the downloaded rapidshare files, e.g. /mnt/HD_a2/RAPIDS

6. Create a text file to hold all the rapidshare links and place it inside the holding folder, e.g. /mnt/HD_a2/RAPIDS/rapidlinks.txt


Working it:
1. Place all rapidshare links into the .txt file (e.g. rapidlinks.txt). Multiple links can be placed.

2. After logging-in to SSH, type (in one line):

   nohup aria2c -d, --dir=/mnt/HD_a2/YourFolder --http-user=YourUserID --http-passwd=YourPassword -i, --input-file=/mnt/HD_a2/YourFolder/YourFile.txt &

3. Using my created example folder & file:

   nohup aria2c -d, --dir=/mnt/HD_a2/RAPIDS --http-user=YourUserID --http-passwd=YourPassword -i, --input-file=/mnt/HD_a2/RAPIDS/rapidlinks.txt &

    Short explanation of the command options used (Refer to aria2c(1) - Linux man page for more):
    -d, --dir=DIR              The directory to store the downloaded file.
    --http-user=USER              Set HTTP user. This affects all URLs.
    --http-passwd=PASSWD     Set HTTP password. This affects all URLs.
    -i, --input-file=FILE               Downloads URLs found in FILE.

4. After hitting ENTER, the SSH terminal will display:

    nohup: appending output to nohup.out

5. The process will run in the background of DNS-323 independent of your PC. The current SSH session can be closed and you can shut down your PC as well.


Checking/Monitoring:
1. To check if ARIA2C is running in the background or to monitor mem/cpu usage, use the "top" command at SSH. It will keep listing the currently running processes, sorted by cpu usage (top users first). You should see aria2c running among the top processes.

2. To exit "top", just press Ctrl + C.


If everything had ran accordingly, the downloaded rapidshare files should be sitting nicely in your holding folder waiting for your extraction... & enjoyment.

Welcome improvement to the process and wish to thank craft (for starting everything), HaydnH (for nohup), zelduy (for clear explanation), daemonx (for pointing to Aria2c), zapbranighan (for good Aria2c link) and the rest of the guys for sharing & letting me learn from their mistakes. Cheers!!


Useful References:
1. Linux Newbie Administrator Guide - by Stan and Peter Klimas

2. nohup Execute Commands After You Exit From a Shell Prompt - by Vivek Gite

3. The Open Group Base Specifications Issue 6 - NOHUP - by www.opengroup.org

4. aria2c(1) - Linux man page - by Tatsuhiro Tsujikawa

Last edited by arofarmer (2009-06-28 18:31:47)

Offline

 

#22 2009-07-10 04:23:58

daemonx
Member
Registered: 2008-11-07
Posts: 17

Re: Rapidshare.com download (premium) with DNS-323

Nice job of consolidating everthing @arofarmer.

I've created an automated script which calls looks for new jobs/failed jobs to download and calls aria2c accordingly.I've cron'ed it
so that it checks for jobs every hour. You may try and let me know of any bugs.


Here is a sample aria2.conf file.
IMPORTANT : For the automation script to work properly,please make sure atleast the LOG-LEVEL & AUTO-FILE-RENAMING
is set as shown below.

aria2.conf
--------------------------------------------------------
log=/ffp/logs/aria.log
split=5
http-user=<username>
http-passwd=<password>
allow-piece-length-change=true
input-file=/hd/downloads/uploads/links.txt
quiet=true
auto-file-renaming=false
log-level=notice
dir=/hd/downloads/uploads
--------------------------------------------------------

Last edited by daemonx (2009-07-10 04:24:38)


Attachments:
Attachment Icon rs_auto.sh, Size: 2,816 bytes, Downloads: 541

Offline

 

#23 2009-07-14 06:16:34

zelduy
Member
Registered: 2009-02-28
Posts: 9

Re: Rapidshare.com download (premium) with DNS-323

thanks for the tutorial arofarmer!! works great!!
but 1 thing I need to know is: how do I check the aria2c that running in the background speed??
in wget we can do tail wget.log and I can see the speed there...
thanks again!! smile
I will try daemonx script now...
@daemonx where should I put the aria2.conf ??

Offline

 

#24 2009-07-14 08:17:37

daemonx
Member
Registered: 2008-11-07
Posts: 17

Re: Rapidshare.com download (premium) with DNS-323

zelduy wrote:

thanks for the tutorial arofarmer!! works great!!
but 1 thing I need to know is: how do I check the aria2c that running in the background speed??
in wget we can do tail wget.log and I can see the speed there...
thanks again!! smile
I will try daemonx script now...
@daemonx where should I put the aria2.conf ??

put it in /ffp/etc

Offline

 

#25 2009-07-24 12:38:32

arofarmer
New member
From: SG
Registered: 2009-06-26
Posts: 3

Re: Rapidshare.com download (premium) with DNS-323

Sorry for the long delay... finally got some time to really try out the script.

daemonx - The script works great and finally don't have to manually type in the command line. (Although we can always use the up/down arrow keys to scroll thru past commands, but once the NAS is restarted, gotta re-type the line again tongue ). Thanks for working up such a good script!

zelduy - sorry mate, i seriously do not know how to check aria2c for the downloading speed running in the background. i'm still pretty much a noob at linux. Personally i don't really need to know the speed becos i usually just let it run on the NAS by itself and check that it's running (via "top") before shutting down my PC and hitting the bed. All the files should be sitting well in the destinated folder the next day i power up my PC (of cos this will depend on the size of downloads you tasked the little NAS).

Aria2c on Megaupload
Having tried & tested aria2c on rapidshare with success, i tried it on megaupload but failed. Using both the basic typing input and daemonx's script also don't work. What i got was a HTML page asking for text input verification. Any of you have similar results? If you are able to get it working on megaupload (or using another command method besides aria2c), will very much appreciate your kind sharing. Thanks!

Last edited by arofarmer (2009-07-24 12:39:46)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB