Skip to content

Commit

Permalink
Fix SLInit search on 10.0.10240
Browse files Browse the repository at this point in the history
  • Loading branch information
llccd committed Jul 15, 2024
1 parent 1d7a7d2 commit e14adab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RDPWrapOffsetFinder_nosym/RDPWrapOffsetFinder_nosym.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ int main(int argc, char** argv)
bMultimonAllowed_addr = 0, lMaxUserSessions_addr = 0, ulMaxDebugSessions_addr = 0, bInitialized_addr = 0;
auto current = &bServerSku_addr;

if (length > 100)
if (length > 0x100)
while (ZYAN_SUCCESS(ZydisDecoderDecodeFull(&decoder, (void*)IP, length, &instruction, operands)))
{
IP += instruction.length;
Expand Down Expand Up @@ -563,7 +563,8 @@ int main(int argc, char** argv)
operands[0].mem.base == ZYDIS_REGISTER_RIP &&
operands[0].mem.disp.size != 0 &&
operands[1].type == ZYDIS_OPERAND_TYPE_REGISTER &&
operands[1].reg.value == ZYDIS_REGISTER_EAX)
(operands[1].reg.value == ZYDIS_REGISTER_EAX ||
operands[1].reg.value == ZYDIS_REGISTER_ECX))
bInitialized_addr = operands[0].mem.disp.value + IP - base;
else if (instruction.mnemonic == ZYDIS_MNEMONIC_RET)
break;
Expand Down

0 comments on commit e14adab

Please sign in to comment.