Megaupload premium
Get user content in Firefox
Go to edit>preferences>privacy>show cookie then search for megaupload and look for the one called user,copy the numbers in the field "content"
Using Wget
well one way to download from megaupload with a premium account is using Wget this command do the trick:
wget -c --no-cookies --header "Cookie: user=NUMBER_COOKIE" -i LIST
NUMBER_COOKIE:is the number obtained in firefox.
LIST:is a text with the megaupload links.
So we can create a script like this:
#!/usr/bin/bash wget -c --no-cookies --limit-rate=100k --header "Cookie: user=xxxxxxxxxxxxxxxxxxxxxx" -i $1
--limit-rate:is optional,used if you want limit the download
Example
./mega modern_family
where mega is the script and modern_family is the text with the links
Using with Screen
well this above works well but if you close the terminal is over,so we can use this awesome command called screen
how we use it?, we get via ssh and type:
$ screen
run the script and for detached do the following
CRTL+A+D
It makes you get out of the supposed virtual terminal but the operation still running, now you can disconnect from ssh and from there continue on another pc, but now comes a question ... how we return to that terminal?
We can do this:
$screen -ls
which tells us the pid of the number of terminals which have running such as:
pinto@debian:~$ screen -ls There are screens on: 16589.pts-2.debian (02/05/09 23:23:04) (Detached) 16471.pts-0.debian (02/05/09 23:07:50) (Detached) 2 Sockets in /var/run/screen/S-pinto.
to return to the first,this command is used $screen -r Numero_Pid
,for example:
screen -r 16589
if we have only one screen running this command work screen -r
Now they can put names to the session (it is easier to learn a name as a number) that is done for example like this:
screen -S session
And to enter that session would be:
$screen -r session
For example here we have one called "hello":
There are screens on: 22990.hola (03/05/09 21:37:59) (Detached) 16589.pts-2.debian (02/05/09 23:23:04) (Detached) 16471.pts-0.debian (02/05/09 23:07:50) (Detached) 3 Sockets in /var/run/screen/S-pinto.
For close screen we write exit
or press CTRL+D
Practical Example
We enter to the download directory
#cd /tmp/media/usb/USB1/f00c24cf-7020-48c6-93a9-4ebe93e65154/f/blood
we call the screen command, the most easy is just type:
screen
in the directory called "f" i have my megaupload script called "mega" and in the directory called "blood" i have a text call true_blood,which have the megaupload links:
../mega true_blood
To exit Ctrl+A+D
To return and check the downloads
screen -r