Skip to content

Instantly share code, notes, and snippets.

@Virenbar
Last active June 10, 2022 06:36
Show Gist options
  • Save Virenbar/f971da9557734a457734a55a2428a9a9 to your computer and use it in GitHub Desktop.
Save Virenbar/f971da9557734a457734a55a2428a9a9 to your computer and use it in GitHub Desktop.

Ignore license state

Change byte at address 0x5A421 from 0x06 to 0x17 ldloc.0(0x06) -> ldc.i4.1(0x17)

How i found this byte:

  1. Opened SSMSBoost.dll in dnSpy
  2. Found usage of Enum ActivationMode
  3. Found method public bool IsAuthorized(Feature feature)
  4. Opened IL code of method
  5. Changed byte at address 0x5A421 from 0x06 to 0x17 using ImHex
    Now method always returns true

ldloc.0 - Load local var with index 0 to stack
ldc.i4.1 - Load 1 to stack

P.S. Tested only on SSMS 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment