google-site-verification: googlebaca44933768a824.html AntiLeak Example - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

AntiLeak Example

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AntiLeak Example

    Code:
    void Check()
    {
    	char server[1024]		= "127.0.0.1";
    	char path[1024];
    
    	aSprint_f(path,"/test/auth.php?hwid=%d",HWIDGEN());
    
    	HINTERNET hSession = InternetOpenA("Microsoft Internet Explorer", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, NULL);
    	HINTERNET hConnection = InternetConnectA(hSession,server,INTERNET_DEFAULT_HTTP_PORT,NULL,NULL,INTERNET_SERVICE_HTTP,NULL,NULL);
    	HINTERNET hRequest = HttpOpenRequestA(hConnection,NULL,path,NULL,NULL,NULL,NULL,NULL);
    	HttpSendRequestA(hRequest,NULL,NULL,NULL,NULL);
    
    
    	DWORD dwNumberOfBytesAvailable = 0;
    
    	InternetQueryDataAvailable(hRequest,&dwNumberOfBytesAvailable,0,0);
    	
    	if (dwNumberOfBytesAvailable > 0)
    	{
    		char* pBuffer = new char[dwNumberOfBytesAvailable + 1];
    		pBuffer[dwNumberOfBytesAvailable] = 0;
    		DWORD dwBytesRead = 0;
    		InternetReadFile(hRequest,pBuffer,dwNumberOfBytesAvailable,&dwBytesRead);
    					
    		if(strstr(pBuffer,"None"))
    		{
    			//do...
    		}
    
    		delete [] pBuffer;
    	}
    
    	InternetCloseHandle(hRequest);	
    	InternetCloseHandle(hConnection);
    	InternetCloseHandle(hSession);	
    
    }
    Code:
    <?php
    mysql_connect("127.0.0.1","root","");
    mysql_select_db("yourdb");
    
    $hwid = $_GET["hwid"];
    
    if(empty($hwid))
    {
    	die("Error");
    }
    else
    {
    	$query = "SELECT * FROM auth WHERE hwid = '$hwid'";
    	$query = mysql_query($query);
    	while($row = @mysql_fetch_object($query))
    	{
    			$array = explode("-",$row->time);
    			if(date('Y') <= $array[0] && date('m') <= $array[1] && date('d') <= $array[2])
    				die("None");
    			else
    				die("Error");
    	}
    
    	die("Error");
    }
    ?>
    Small Protection,easy to crack, just an example

    For all those guys trying to include this in their vip hax:

    modify host files, create a php file that echos None and ur done :D

    If you are to silly to set up the DB, dont use this.

    i search a good source code for Dods with aimbot and other stuff i know this is the same engine as counter strike source but css hacks are not work in dods.

    #2
    Code:
    die("Error");
    ololol, good job anyway floxy :D
    lolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.
    I DONT HAVE TEAMVIEWER AND IM NOT GOING TO GIVE ANY 24/7 ONLINE SUPPORT VIA STEAM, XFIRE OR OTHER IM PROGRAMS SO DONT BOTHER ASKING. THANKS.

    Comment


      #3
      looking good sir, ima test this out :)

      Comment


        #4
        :o thanks bruh
        Code:
        [IMG]http://i32.tinypic.com/2h4hn34.jpg[/IMG]

        Comment


          #5
          thanks

          Comment


            #6
            Re: AntiLeak Example

            Uhhh, SQL Injection inside :)

            Comment


              #7
              Re: AntiLeak Example

              Originally posted by Imadj View Post
              Uhhh, SQL Injection inside :)
              That should be obvious to anyone who wants to use this because it's just an example. Plus keeps the concerned ones off just taking it to sell hax and risk their databases. :D

              Comment


                #8
                Re: AntiLeak Example

                Very easy to crack.

                Thanks for the share though.
                Rules - Buy Royal Hack or HL2hook - Donate

                Comment

                Working...
                X