Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


Download files through mega without js filter_list
Author
Message
Download files through mega without js #1
Going on a streak rn cuz I have nothing else better to do

This is small script, which will allow you download from mega.nz through tor, without JavaScript.

I don't know the who is the original author of this, but I've made several modifications to make this work (it was old script).

Code:
#!/bin/bash # usage $ ./mega.sh 'https://mega.nz/#!link!key' id=$(echo "$1" | \  awk -F '!' '{print $2}') key=$(echo "$1" | \  awk -F '!' '{print $3}' | \    sed -e 's/-/+/g' -e 's/_/\//g' -e 's/,//g') b64_hex_key=$(echo -n $key | \  base64 --decode --ignore-garbage 2> /dev/null | \    xxd -p | tr -d '\n') key[0]=$(( 0x${b64_hex_key:00:16} ^ 0x${b64_hex_key:32:16} )) key[1]=$(( 0x${b64_hex_key:16:16} ^ 0x${b64_hex_key:48:16} )) key=$(printf "%016x" ${key[*]}) json_data=$(torsocks curl -s --request POST --data-binary '[{"a":"g","g":1,"p":"'$id'"}]' 'https://eu.api.mega.co.nz/cs') echo $json_data | \  awk -F '"' '{print $6}' | \    sed -e 's/-/+/g' -e 's/_/\//g' -e 's/,//g' | \      base64 --decode --ignore-garbage 2> /dev/null | \
[*]

It uses torsocks - make sure you have tor service running!


Code:
./mega.sh 'https://mega.nz/#!0LYnQTYZ!fKz1gtY_nNuw-gaKTRElNjIF8nprVvm5Fy6S5Ql5_A0'
GPG key:
https://pgp.mit.edu/pks/lookup?op=get&se...B335BFCADA

Sig:
D96D 0220 0E13 CE13 8C6C  D697 F68B 0EB3 35BF CADA

[+] 1 user Likes VBQL's post
Reply

RE: Download files through mega without js #2
Alternatively, to enable/disable JavaScript In the Tor browser (as per your session needs at the time), enter "about:config" (no quotes) In the address bar and enter "javascript.enabled" (again without quotes) In the search bar. Enable/disable as needed.

That aside, I'll check your code later today.
Thank you.
[Image: AD83g1A.png]

[+] 1 user Likes mothered's post
Reply

RE: Download files through mega without js #3
Hm, looking through it, the line with reference to "mega.co.nz" may need to be altered to mega.nz but I'm not certain as I haven't worked with the MEGA API as of yet.

Definitely looks interesting and I'll check it out more in a bit
You can find me on Keybase
"Reach the state of ubiquity, and you will be in control"
Student, Technician, Designer, and more.
[Image: YUpAMpx.png]

Reply