Thread: [PI] Anti-cheat client securities

Page 1 of 6 123 ... LastLast
Results 1 to 10 of 53
  1. #1 [PI] Anti-cheat client securities 
    Banned

    Join Date
    Oct 2010
    Posts
    717
    Thanks given
    82
    Thanks received
    131
    Rep Power
    0
    Doing this, along with obfuscation makes it REALLY hard, if not impossible (Unless for beasts like graham, Galkon) for people to get on with cheat clients.


    Client-sided

    Code:
    
    /**
    *
    * Cheat client packets, defined in  client.java.
    * @author Arno
    *
    *
    */
    public final class CheatPackets 
    
     {
        public static int packet1;
    	public static int packet2;
    	public static int packet3;
    	public static int packet4;
    	public static int packet5;
    	public static int packet6;
    	public static int packet7;
    	public static int packet8;
    	
     }
    In public client():

    Code:
    CheatPackets.packet1 = ****;
    CheatPackets.packet2 = ****;
    CheatPackets.packet3 = ****;
    CheatPackets.packet4 = ****;
    CheatPackets.packet5 = ****;
    CheatPackets.packet6 = ****;
    CheatPackets.packet7 = ****;
    CheatPackets.packet8 = ****;
    Assign numbers.


    Private void login:

    Code:
    	stream.writeDWord(CheatPackets.packet1);
    				stream.writeDWord(CheatPackets.packet2);
    				stream.writeDWord(CheatPackets.packet3);
    				stream.writeDWord(CheatPackets.packet4);
    				stream.writeDWord(CheatPackets.packet5);
    				stream.writeDWord(CheatPackets.packet6);
    				stream.writeDWord(CheatPackets.packet7);
    				stream.writeDWord(CheatPackets.packet8);
    Makes client send out data to server.

    Code:
    if (k == 22) //Good fight fucking cheaters. TTYL.
    			{
    				loginMessage1 = "Cheatclient detected!";
    				loginMessage2 = "Please use the official Webclient/Client!";
    				return;
    			}
    Making opcode, in case packets are NOT met.

    Server-sided:

    Code:
    int packet1 = in.getInt();
    						int packet2 = in.getInt();
    						int packet3 = in.getInt();
    						int packet4 = in.getInt();
    						int packet5 = in.getInt();
    						int packet6 = in.getInt();
    						int packet7 = in.getInt();
    						int packet8 = in.getInt();
    And:

    Code:
    final int[] cheatPackets = {packet1, packet2, packet3, packet4, packet5, packet6, packet7, packet8};
    		for (int i = 0; i < Config.CHEATPACKETS.length; i++)
    		if (Config.CHEATPACKETS[i] != cheatPackets[i]) {
    		returnCode = 22;
    		}
    Don't forget making packets load into load method. (twice).

    Config reference:

    Code:
    	public static final int[] CHEATPACKETS = 
    	/**P1****P2***P3***P4****P5***P6**P7**P8***/
    	{****,****,****,****,****,****,****,****} ;
    NOTE: This is written in a very unclear way, so people will have to spend time before actually implementing this.

    Don't say thanks, there's a button for that
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Respected Member

    Revil's Avatar
    Join Date
    Nov 2010
    Age
    27
    Posts
    4,883
    Thanks given
    3,717
    Thanks received
    2,233
    Rep Power
    5000
    Will try this out in a moment, thanks for the share though hope this works perfectly.
    Reply With Quote  
     

  4. #3  
    Registered Member Pakku's Avatar
    Join Date
    Mar 2010
    Posts
    1,234
    Thanks given
    127
    Thanks received
    111
    Rep Power
    47
    This is basically making more UIDs, right?


    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Banned

    Join Date
    Oct 2010
    Posts
    717
    Thanks given
    82
    Thanks received
    131
    Rep Power
    0
    Quote Originally Posted by Pakku View Post
    This is basically making more UIDs, right?
    You could resemble it with that somewhat.
    Reply With Quote  
     

  7. #5  
    Registered Member
    Join Date
    Jun 2008
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Where do I add the two first server-side code? I'm a bit lost there.
    Reply With Quote  
     

  8. #6  
    Registered Member
    Join Date
    Mar 2010
    Posts
    154
    Thanks given
    15
    Thanks received
    13
    Rep Power
    31
    Sounds cool, but, as said, it looks like more UIDs.
    Also you wouldn't need the login message "Cheat Client Detected" because that's client sided and they won't be on your client so they couldn't see it.
    Nice though.





    Reply With Quote  
     

  9. #7  
    Banned

    Join Date
    Oct 2010
    Posts
    717
    Thanks given
    82
    Thanks received
    131
    Rep Power
    0
    Quote Originally Posted by Drewa1 View Post
    Sounds cool, but, as said, it looks like more UIDs.
    Also you wouldn't need the login message "Cheat Client Detected" because that's client sided and they won't be on your client so they couldn't see it.
    Nice though.
    Lol good point, i'll work out how to send that string from server to client.

    Won't be likely i'd succeed, but we can only try
    Reply With Quote  
     

  10. #8  
    Registered Member
    Tamatea's Avatar
    Join Date
    Aug 2010
    Posts
    1,283
    Thanks given
    379
    Thanks received
    334
    Rep Power
    2318
    Im not sure why we need more methods to do this when there is isaac, rsa??

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  11. #9  
    Registered Member
    Join Date
    Dec 2010
    Age
    26
    Posts
    1,186
    Thanks given
    513
    Thanks received
    340
    Rep Power
    35
    Nice, thanks for this. This is useful ;D
    Reply With Quote  
     

  12. Thankful users:


  13. #10  
    Banned

    Join Date
    Jul 2008
    Posts
    3,532
    Thanks given
    188
    Thanks received
    696
    Rep Power
    0
    Code:
    if (k == 22) //Good fight fucking cheaters. TTYL.
    			{
    				loginMessage1 = "Cheatclient detected!";
    				loginMessage2 = "Please use the official Webclient/Client!";
    				return;
    			}
    this is redundant, if a cheat client tries to connect to server and the server sends login id 22, its just going to say unexpected server response because their client doesnt have this...
    Reply With Quote  
     

  14. Thankful users:


Page 1 of 6 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [Paying] Anti-Cheat Client [Delta]
    By Pblord7 in forum Help
    Replies: 16
    Last Post: 07-12-2011, 10:24 AM
  2. PI anti cheat client
    By bobetoe in forum Help
    Replies: 4
    Last Post: 07-21-2010, 01:25 AM
  3. Basic anti cheat client for delta servers
    By Polaroid in forum Tutorials
    Replies: 7
    Last Post: 01-16-2010, 10:54 AM
  4. Need help! With anti-cheat client code
    By moonbeamer in forum Help
    Replies: 4
    Last Post: 12-05-2009, 09:48 AM
  5. Full anti-cheat client!
    By snowycards in forum Tutorials
    Replies: 16
    Last Post: 02-22-2008, 08:24 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •