Results 1 to 5 of 5
  1. #1
    GameTrainerMaker's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    465
    Reputation
    17
    Thanks
    514

    [SOURCE] Anti Leak

    Credits Not To Me : This Is Just An 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);	
    
    }
    [php]
    <?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");
    }
    ?>
    [/php]


    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

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

  2. #2
    mastermods's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    108
    Reputation
    9
    Thanks
    42
    My Mood
    Chatty
    First of all I want to point out this is the first reply yay! I'm special! But anyway great job. And totally noob proof lol!

  3. #3
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    ITS STUPID..

  4. #4
    Ali's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Qc, Canada
    Posts
    11,450
    Reputation
    342
    Thanks
    3,518
    My Mood
    Cool
    /Moved to C++ section .

  5. #5
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    Better use mysql_escape_string, or it's very insecure (SQL injection)


  6. The Following 2 Users Say Thank You to Gordon` For This Useful Post:

    GameTrainerMaker (08-24-2010),Hell_Demon (08-24-2010)

Similar Threads

  1. [Release] Counter Strike Source Leak Aimbot
    By tfwwolf in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 3
    Last Post: 07-17-2011, 12:02 PM
  2. Why Source Base leaked?
    By CheatCreatorzz in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 05-17-2011, 03:46 PM
  3. [LEAKED] drivable tank HIDDEN TANK KILLSTREAK [SOURCE CODE] [Coded by Infinity Ward ]
    By aiir in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 10
    Last Post: 10-14-2010, 04:52 AM
  4. [Source]Anti-Debugging
    By Void in forum C++/C Programming
    Replies: 24
    Last Post: 09-14-2010, 04:35 PM
  5. [Request] Anti-kick Source
    By AeroMan in forum WarRock Discussions
    Replies: 5
    Last Post: 11-15-2009, 03:12 AM