1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

CloudAuthX 4 - a nicer site for you to look at. Requires latest Clockwork build.

Discussion in 'Discussion' started by kurozael, Feb 19, 2014.

  1. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

  2. trurascalz

    trurascalz C16 Developer Legend

    You should add required to the textarea tag, just to make it feel nicer since you can submit nothing ._.

    HTML:
    <textarea name="data" class="form-control" cols="25" rows="5" autofocus required></textarea>

    Fancy though
     
  3. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

    Thanks! I'm pretty new to Bootstrap.

    Edit: There we go, and now it'll automatically select the output, too.
     
  4. I don't get it... .-.
     
  5. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

  6. Still have no clue how to use it because no tutorial :D
     
  7. You put code into it and it will give you some code back that does the exact same thing as the code you put in, only people can't read it.
     
  8. Datzy

    Datzy Guest

    what is CAX written in
     
  9. how do i shot use this from php?
    1) put this code into a file cax_api.php
    Code:
    <?php // require_once 'cax_api.php'; // CAX_API::encode('print("backdoor")');
    class CAX_API {
    	const UAGENT = 'PHP (CAX/0.1; Sanya_Zol)';
    	const SECURE = false; // use https (slower)
    	const MORE_SECURE = false; // check https certificate - set to true if your PHP configured to work with that. BY DEFAULT ITS NOT.
    	static function encode($str){
    		$c = curl_init();
    		if(self::SECURE){
    			curl_setopt($c, CURLOPT_SSL_VERIFYPEER, self::MORE_SECURE); 
    			curl_setopt($c, CURLOPT_SSL_VERIFYHOST, self::MORE_SECURE);
    		}
    		curl_setopt($c, CURLOPT_USERAGENT, self::UAGENT);
    		curl_setopt($c, CURLOPT_URL, 'http'.(self::SECURE?'s':'').'://authx.cloudsixteen.com/api/encode');
    		curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
    		curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
    		curl_setopt($c, CURLOPT_POST, 1);
    		curl_setopt($c, CURLOPT_POSTFIELDS, http_build_query(array('lua'=>$str)) );
    		$data = curl_exec($c);
    		$httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE);
    		if( $httpcode != 200 )return false;
    		curl_close($c);
    		return $data;
    	}
    }
    2) put this code into your file, for example, yourfile.php

    Code:
    <?php
    require_once 'cax_api.php';
    echo CAX_API::encode('print("backdoor")');
     
  10. So do i take every single file and put all the code for each one in individually?
     
  11. Nope. You cannot encrypt clientside code, and encrypted code will be executed with a delay (so no access to local variables).

    API is used for automated encryption - i have no clue where it can be used. maybe in dynamic plugin generation for each customer bought your shit plugin.
     
  12. C++
     
  13. Datzy

    Datzy Guest

    Solid
     
  14. I have NO DAMN CLUE what you just said. I take it only encrypt the cl_ files then, because no one ever made a tutorial for this. All I ever saw was "Use this to protect your plugins".

    (Hate that this had to be my 200, but whateves. I don't really care.)
     
  15. you putting lua code into http://authx.cloudsixteen.com/ and pressing a button
    getting your CloudAuthX.External("...");
    than placing it in place where your unencrypted code was.
    encrypting string YOURCODE and placing CloudAuthX.External("..."); in its place is almost equal to doing this:
    Code:
    timer.Simple(1,function() RunString("YOURCODE") end)
    if you don't understand this simple thing, go learn lua.
     
  16. Mage

    Mage Guest

    It's not too difficult but in easier words...

    You put your code into the input, then it will be encrypted, as you will see it differently in the output. This way, no one can read the real code of your plugin so it will not be stolen.
     
  17. Songbird

    Songbird ❤️ Staff Member Moderator Legend

    [​IMG]

    decided to encrypt some code via the site, it doesn't want to run at all.
    what's the problem?


    Code:
    -snip-
    
    1 part

    (btw: i had five CloudAuthX.Externals, that's why there are 5 errors on the pic)
     
  18. You need the latest version of Clockwork.
     
  19. Songbird

    Songbird ❤️ Staff Member Moderator Legend

    Oh, I see. Thought I had the last version, weird.
     

Previous Readers (Total: 0)