Created
December 16, 2017 11:21
-
-
Save joserick/4057820928bbae7e9cd764f1f15fd597 to your computer and use it in GitHub Desktop.
Python - Click'n'Load 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
*********************************************************************************** | |
Author: Jose Erick C. | |
Python: v3.6 | |
Based on PHP code http://jdownloader.org/knowledge/wiki/glossary/cnl2#example1 | |
*********************************************************************************** | |
''' | |
from Crypto.Cipher import AES | |
import base64 | |
BLOCK_SIZE = 16 | |
pad = lambda s: s + (BLOCK_SIZE - len(s) % BLOCK_SIZE) * chr(BLOCK_SIZE - len(s) % BLOCK_SIZE) | |
key = '1234567890987654' | |
transmitKey = base64.b16encode(key.encode('ascii')).decode('ascii') | |
link = "http://rapidshare.com/files/285626259/jDownloader.dmg\r\nhttp://rapidshare.com/files/285622259/jDownloader2.dmg" | |
cp = AES.new(key, AES.MODE_CBC, key) | |
enc = cp.encrypt(pad(link)) | |
crypted = base64.b64encode(enc).decode('ascii') | |
print('JKey: ' + transmitKey) | |
print('Crypted: ' + crypted) | |
''' | |
HTML | |
<FORM ACTION="http://127.0.0.1:9666/flash/addcrypted2" target="hidden" METHOD="POST"> | |
<INPUT TYPE="hidden" NAME="passwords" VALUE="myPassword"> | |
<INPUT TYPE="hidden" NAME="source" VALUE="http://jdownloader.org/spielwiese"> | |
<INPUT TYPE="hidden" NAME="jk" VALUE="function f(){ return '31323334353637383930393837363534';}"> | |
<INPUT TYPE="hidden" NAME="crypted" VALUE="DRurBGEf2ntP7Z0WDkMP8e1ZeK7PswJGeBHCg4zEYXZSE3Qqxsbi5EF1KosgkKQ9SL8qOOUAI+eDPFypAtQS9A=="> | |
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Link to JDownloader"> | |
</FORM> | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment