NodeBB

    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Lỗ hỏng bảo mật của ACTk Unity

    Developer Discussion
    1
    1
    5
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      changx last edited by

      xem thử 1 biến như ObscuredLong, đoạn hàm Encrypt và Decrypt được viết như sau

      public static long Encrypt(long value, long key)
      {
      	unchecked
      	{
      		return (value ^ key) + key;
      	}
      }
      
      public static long Decrypt(long value, long key)
      {
      	unchecked
      	{
      		return (value - key) ^ key;
      	}
      }
      

      value là giá trị gốc chưa bị che, nếu key = 0 thì (value ^ key) + key sẽ luôn = value; đoạn này được sử dụng trong ObscuredLong như sau:

      currentCryptoKey = GeneratePrivateKey();
      hiddenValue = Encrypt(value, currentCryptoKey);
      

      nếu vậy mục tiêu của mình chỉ cần dùng CheatEngine chỉnh sửa để GeneratePrivateKey() luôn return 0; vậy là hiddenValue sẽ lộ ra và lúc này chỉnh sửa bất kỳ giá trị nào dùng ObscuredLong dễ dàng

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors