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





Messages In This Thread
Download files through mega without js - by VBQL - 10-16-2017, 03:27 AM