Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 85

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Finding XORed values and the XOR key with Cheat Engine
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Finding XORed values and the XOR key with Cheat Engine

  1. #1
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    Finding XORed values and the XOR key with Cheat Engine

    What you will need:
    • An XOR bruteforcer (see attachment for a simple one I wrote, requires .NET 2.0 or newer)
    • Cheat Engine


    How-to:
    1. Find the value you want as per usual. If you don't know how to do this, do the Cheat Engine tutorials.
    2. Enter the encrypted value and the real value in the bruteforcer, choose the appropriate value type, start bruteforcing.
      Note: If you use my bruteforcer, make sure your processor is properly cooled to avoid overheating, because it will utilize every logical core to 100%, so there will be some heat.
    3. Once you've got the XOR key through bruteforcing, do a fresh search for the XOR key. You should end up with a single address, this is the XOR key address.
    4. You can now search for other encrypted values in Cheat Engine, by XORing the real value and the XOR key.


    Bruteforcing the XOR key should not take a long time. Using my Phenom II 965 with 4 cores at 3.5 GHz I cracked it in a few seconds.

  2. #2
    Senior Member
    Join Date
    Sep 2007
    Posts
    230

    RE: Finding XORed values and the XOR key with Cheat Engine

    There actually isn't any need to brute force the XOR key. If you XOR any two of the three values from a XOR calculation together you will produce the third remaining value, so basically:

    A ^ B = C
    A ^ C = B
    B ^ C = A

    So to get the key value you can XOR the values of the encoded and real health.

  3. #3

    RE: Finding XORed values and the XOR key with Cheat Engine

    If you know the encoded health you can also look at the code around it for XOR V1, V2 and you'll have your value.

    Nice concept and good job, but it's a lot of work for something that is much easier. XOR is regarded as weak is because it is, as Sketchy said, "circular" - the unknown can always be derived from the knowns. This is one of the situations where it's weakness shines.

  4. #4
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: Finding XORed values and the XOR key with Cheat Engine

    Thank you both for your input. I didn't give this much thought to begin with, I just wanted a proof of concept.

  5. #5
    Junior Member
    Join Date
    Jun 2010
    Posts
    12

    RE: Finding XORed values and the XOR key with Cheat Engine

    Thank you for this guide; I have got one question though.

    How do I find the encrypted value?

    Thanks in advance,
    Lille Fille

    P.S I know how to find addresses in Cheat Engine. Finding the XOR address though, is an other story for me.

  6. #6
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: Finding XORed values and the XOR key with Cheat Engine

    Quote Originally Posted by Lille Fille
    How do I find the encrypted value?
    Just like you would any other address, except you won't know the value, so you're limited to 'unchanged' and 'changed'.

  7. #7
    Junior Member
    Join Date
    Jun 2010
    Posts
    12

    RE: Finding XORed values and the XOR key with Cheat Engine

    Quote Originally Posted by Blaster_89
    Quote Originally Posted by Lille Fille
    How do I find the encrypted value?
    Just like you would any other address, except you won't know the value, so you're limited to 'unchanged' and 'changed'.
    Thank you, successfully found the address.

  8. #8
    Junior Member
    Join Date
    Jan 2013
    Location
    Interwebz
    Posts
    22
    Quote Originally Posted by Sketchy View Post
    There actually isn't any need to brute force the XOR key. If you XOR any two of the three values from a XOR calculation together you will produce the third remaining value, so basically:

    A ^ B = C
    A ^ C = B
    B ^ C = A

    So to get the key value you can XOR the values of the encoded and real health.

    dude nice job, i was going to brute force it

  9. #9
    Senior Member
    Join Date
    Nov 2010
    Posts
    397
    this reminds me any1 has the older version of cheat engine, the new 1 has shittloads of spam

  10. #10
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191
    Quote Originally Posted by Wesker View Post
    this reminds me any1 has the older version of cheat engine, the new 1 has shittloads of spam
    http://cheatengine.org/downloads.php

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •