Click'n'Load 2

This site helps developers to implement CNL on their own site.

Most important thing about CNL

CNL is not a linkcontainer. It is not a method to hide links, but a comfort feature to add links to JDownloader very easily

Basics about CNL

CNL can be used to add one, or more links to JDownloader very easily. One click sends the links. This makes things very comfortable for the users. To accept links, JDownloader runs a little Webserver on “127.0.0.1 (localhost)”. A POST Request to http://127.0.0.1:9666 can add links and passwords.

Check if JDownloader is running

CNL2 requires that JDownloader is running.

  1. If A “Website” with 'JDownloader' opens, JD is running.

If this does not work,

  • JD is not running
  • ExternInterface/Flashgot Extension in JD is disabled
  • Addons like NOscript ABE block the request

Check JD with Javascript

With this simple Javascript, you can check and display if JDownloader is running:

<script language="javascript">
   var jdownloader=false;
</script>
<script language="javascript" src="http://127.0.0.1:9666/jdcheck.js"></script>
<script language="javascript">
   if(jdownloader){
      document.write("(JDownloader is currently running)");
   }else{
      document.write("(JDownloader is NOT running)");
   }
</script>

Example

Post Links to JDownloader

This can be done with a simple HTML POST Form:

<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>

Example

  • passwords: enter the archive password here
  • source: this is the referer. Enter the Sourceurl for the links. This url will be exported to DLC instead of the plain links
  • jk: AES Key as Javascript funktion. the f function always has to return the correct key.
  • crypted: The Crypted URL Text. See PhP section for encryption details.
PHP code

function base16Encode($arg){
	$ret="";
	for($i=0;$i<strlen($arg);$i++){
		$tmp=ord(substr($arg,$i,1));	
		$ret.=dechex($tmp);	
}
	return $ret;
}

$key="1234567890987654";
$transmitKey=base16Encode($key);
$link="http://rapidshare.com/files/285626259/jDownloader.dmg\r\nhttp://rapidshare.com/files/285622259/jDownloader2.dmg";
$cp = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', 'cbc', '');
@mcrypt_generic_init($cp, $key,$key);
$enc = mcrypt_generic($cp, $link);   
mcrypt_generic_deinit($cp);	
mcrypt_module_close($cp);
$crypted=base64_encode($enc);
	  
echo $crypted;

Plain CNL2

A very bsic, but insecure version of CNL2 is PLain CNL. You Do not need any serverside encryption here.

<FORM ACTION="http://127.0.0.1:9666/flash/add" 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="urls" VALUE="http://www.rapidshare.com/files/407970280/RapidShareManager2WindowsSetup.exe">
   <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Link to JDownloader">
</FORM>

You can pass multiple urls and passwords by seperating them with \r\n

Try it:

knowledge/wiki/glossary/cnl2.txt · Last modified: 2016/06/27 16:33 (external edit)