Thread: Close Client when Cheat engine is open

Results 1 to 8 of 8
  1. #1 Close Client when Cheat engine is open 
    Registered Member
    Join Date
    Dec 2013
    Posts
    125
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Hello, I'm looking for a solution to close the client when cheat engine is open? I know that isn't the best solution to stop cheating but I already have alot of checks in place to stop interface interacting if its not open via server. Anyway to keep this post short. I just need a way to close the client once it detects cheat engine is open... I have some code to share that I've tried using but with no luck...

    Code:
    public static void checkForCheats()  throws IOException, InterruptedException{
    		System.out.println("Checking for cheats!");
    		String findProcess = "Cheat Engine.exe";
    		String filenameFilter = "/nh /fi \"Imagename eq "+findProcess+"\"";
    		String tasksCmd = System.getenv("windir") +"/system32/tasklist.exe "+filenameFilter;
    
    		Process p = Runtime.getRuntime().exec(tasksCmd);
    		BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
    		ArrayList<String> procs = new ArrayList<String>();
    		
    		String line = null;
    		while ((line = input.readLine()) != null) 
    		    procs.add(line);
    
    		input.close();
    
    		Boolean processFound = procs.stream().filter(row -> row.indexOf(findProcess) > -1).count() > 0;
    		// Head-up! If no processes were found - we still get: 
    		// "INFO: No tasks are running which match the specified criteria."
    		
    		if(processFound) {
    			JOptionPane.showMessageDialog(null, Configuration.CLIENT_NAME+" has detected Third party Software! "+Configuration.CLIENT_NAME+" will now close!", Configuration.CLIENT_NAME+" Cheat Protection", JOptionPane.ERROR_MESSAGE);
    		}
    	
    	}
    This code is called under the doAction Method in client.java (I know I don't actually close the client with this code but it doesn't even send the pop up dialogue so it's not detecting cheat engine even when it's open...)
    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Code:
                    String line;
                    Process p = Runtime.getRuntime().exec(System.getenv("windir") + "\\system32\\" + "tasklist.exe /v");
    
                    try (BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()))) {
                        while ((line = input.readLine()) != null) {
                            line = line.toLowerCase();
                            if (line.contains("cheatengine") || line.contains("cheat engine")) {
                                System.exit(0);
                            }
                        }
                    }
    prevention isn't the cure to your issue though.... fixing the issues that cheat engine is causing is what you should be doing...
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    Registered Member
    Join Date
    Dec 2013
    Posts
    125
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    yeah I know I should fix the actual issue but tbh there isn't really an issue as im not even hosting the server i'm just coding it to learn new things. Plus as I mentioned before I have alot of server checks in place for packets and interfaces. Thanks for the quick reply though I really appreciate it! I'll let you know if that worked!

    It worked but now even if cheat engine is closed it still closed the client haha
    Reply With Quote  
     

  5. #4  
    🎶 As you're falling down 🎶


    uint32_t's Avatar
    Join Date
    Feb 2015
    Posts
    1,396
    Thanks given
    6,177
    Thanks received
    776
    Rep Power
    5000
    If you have sufficient server-sided verification, this is entirely unnecessary. This is the wrong way of going about things.

    You shouldn't try to learn things that will hinder you rather than help you.

    Use Cheat Engine to verify that your server is as secure as it should be, don't just close out of Cheat Engine, people will just find ways around that.
    Quote Originally Posted by Idiot Bird View Post
    Quote Originally Posted by Velocity View Post
    lol np mate looks like the community brought ur rep down to ur IQ
    Not too sure about that, it's at 0 . It would have to go minus to even be remotely close to his IQ.
    Reply With Quote  
     

  6. #5  
    Retired From RSPS

    iGarrett's Avatar
    Join Date
    Dec 2013
    Posts
    461
    Thanks given
    144
    Thanks received
    110
    Rep Power
    187
    Not a help comment but i was never aware cheat engine could even could be used on an rsps.. Weird.
    Quote Originally Posted by i am here View Post
    I have never messed with Eclipse. Is it a whole new revision or type of code?
    Quote Originally Posted by bibl View Post
    hahaha, good one m9. "deob" is short for "deobfuscated" which is not the same as decompiled.
    I'm GEEGIN' OUT
    Reply With Quote  
     

  7. #6  
    Member Close Client when Cheat engine is open Market Banned

    NeilG's Avatar
    Join Date
    Jul 2013
    Posts
    413
    Thanks given
    95
    Thanks received
    618
    Rep Power
    1975
    Quote Originally Posted by iGarrett View Post
    Not a help comment but i was never aware cheat engine could even could be used on an rsps.. Weird.
    It was a thing years ago when rsps was "in its infancy"
    I haven't heard of anyone using one in almost 10 years.
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    Registered Member
    Join Date
    Dec 2012
    Age
    26
    Posts
    66
    Thanks given
    9
    Thanks received
    43
    Rep Power
    64
    Quote Originally Posted by iGarrett View Post
    Not a help comment but i was never aware cheat engine could even could be used on an rsps.. Weird.
    You can change variables in the client with Cheat Engine. If the server doesn't validate the client response, you change the variables on the server (cheat).

    @mharner
    I created a gist that works for me: Search for Cheat Engine GitHub Though in production never use this. ByteCode editing to modify the client is really easy for the now grown up rsps community. This can be used to disable the Cheat Engine check (or to subistite Cheat Engine).
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Registered Member
    Join Date
    Dec 2013
    Posts
    125
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Thanks for the comments but like I said I already have plenty of server sided checks I just wanted to play around with some code that I never did before... I've been coding rsps for 10 years or maybe longer. (Not bragging or saying I know everything because I don't) I'm just saying again I like to dip into new code even if the thing I'm coding is old or unnecessary...
    Reply With Quote  
     


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. Replies: 6
    Last Post: 08-02-2015, 03:21 PM
  2. Replies: 2
    Last Post: 09-28-2013, 07:54 PM
  3. Replies: 0
    Last Post: 06-17-2012, 07:25 PM
  4. Replies: 12
    Last Post: 06-12-2009, 08:50 PM
  5. Replies: 4
    Last Post: 06-09-2009, 04:02 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •