Skip to content

Commit

Permalink
Increase steps range to validate client version.
Browse files Browse the repository at this point in the history
I noticed there was a client that had AND operation before CMP, which
both are 81:
81 E1 FF 00 00 00   and     ecx, 0FFh
81 FE 2C 0C 00 00   cmp     esi, 0C2Ch
  • Loading branch information
ko4life-psko committed Aug 6, 2020
1 parent 3e62968 commit f788fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/KO-TBLCryptoEditor/Core/TargetPE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private bool ValidateKOClient()

private bool InitClientVersion()
{
const int MAX_STEPS_FORWARD = 4;
const int MAX_STEPS_FORWARD = 10;
const int MIN_CLIENT_VERSION = 1000;
const int MAX_CLIENT_VERSION = 5000;

Expand Down

0 comments on commit f788fe5

Please sign in to comment.