How to "activate" all editions of 7/R2 with 2 commands

Discussion in 'Windows 7' started by Hazar, Oct 10, 2009.

Thread Status:
Not open for further replies.
  1. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,769
    1,106
    60
    #201 Mr Jinje, Oct 15, 2009
    Last edited: Oct 15, 2009
    I only looked in mspaint and notepad, but when I sorted the imports and looked for ntdll, I see both run NTQueryLicenseValue, so maybe we only need to patch ntdll ? Is that import what causes the nags ?
     
  2. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    I think it may have installed the timerstop driver.

    ill attach the source.
     

    Attached Files:

  3. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    #203 nononsence, Oct 15, 2009
    Last edited: Oct 15, 2009
    I didnt want to mess with ntdll but it would get to the root of the problem
    just chang the function to return 1

    did you see all the code that gets executed if you dont patch that branch.

    just checked it's digitaly signed, if you edit it, that will break.
     
  4. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,769
    1,106
    60
    Still learning, maybe you could help me out. I am trying to figure out how to recreate your patch (SYSWOW64 Notepad.exe) so the first thing I did was find the NTQueryLicenseValue from the imports tab, then it jumped me into the IDA-ViewA and I double clicked the Sub_1002733 and it jumped to about 5 lines above the JNZ that you change.

    But what I can't figure out is how to know which/what changes need to be made. ie how did you know the "0F 85 94 35 00 00" could be changed to "90 90 90 90 90 90". Is it pure trial and error, or is their a formula to follow.
     
  5. mazodude

    mazodude MDL Junior Member

    Jan 4, 2009
    59
    2
    0
    Damn this is turning out to be really exciting :D
    great job nosense and hazar
     
  6. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    #208 nononsence, Oct 15, 2009
    Last edited: Oct 15, 2009
    control panel nag patch

    32bit
    Comparing files mod_shell32.dll and ORIG_SHELL32.DLL
    0010317E: 90 0F
    0010317F: 90 85
    00103180: 90 11
    00103181: 90 FA
    00103182: 90 0A
    00103183: 90 00
    0010318A: 90 0F
    0010318B: 90 84
    0010318C: 90 05
    0010318D: 90 FA
    0010318E: 90 0A
    0010318F: 90 00
    64bit
    Comparing files mod_shell32.dll and orig_SHELL32.DLL
    000EF568: 90 0F
    000EF569: 90 85
    000EF56A: 90 21
    000EF56B: 90 0A
    000EF56C: 90 00
    000EF56D: 90 00
     
  7. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    Calculator nag patch

    32bit
    Comparing files orig_calc.exe and MOD_CALC.EXE
    00008656: 0F 90
    00008657: 85 90
    00008658: D7 90
    00008659: 0F 90
    0000865A: 02 90
    0000865B: 00 90
    00008662: 0F 90
    00008663: 84 90
    00008664: CB 90
    00008665: 0F 90
    00008666: 02 90
    00008667: 00 90

    64bit
    Comparing files mod_calc.exe and ORIG_CALC.EXE
    00000F52: EB 7C
     
  8. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    wordpad nag patch

    32bit
    Comparing files mod_wordpad.exe and ORIG_WORDPAD.EXE
    0000E2F3: 90 0F
    0000E2F4: 90 85
    0000E2F5: 90 EE
    0000E2F6: 90 11
    0000E2F7: 90 04
    0000E2F8: 90 00
    0000E2FF: 90 0F
    0000E300: 90 84
    0000E301: 90 E2
    0000E302: 90 11
    0000E303: 90 04
    0000E304: 90 00
     
  9. Hazar

    Hazar MDL Guru

    Jul 29, 2009
    2,489
    458
    90
    here is something odd.

    One of my beta testers said their Windows had expired, and notepad was nagging so they apllied the patch and when it reboot nags were gone :confused:
     
  10. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    which patch?
     
  11. tuvi123

    tuvi123 MDL Addicted

    Jul 29, 2009
    623
    86
    30
    Hazar / nononsence-
    I can fully test your RemoveWAT.
    I have all the editions (x86+x64).
    so if you want, pm me with a link.

    btw why remove it completely? why not make it say "windows is activated"?
    I guess it's because of the languages support.
     
  12. Hazar

    Hazar MDL Guru

    Jul 29, 2009
    2,489
    458
    90
    First post icacls command
     
  13. W0lfdale

    W0lfdale MDL Junior Member

    Aug 28, 2009
    80
    0
    0
    After you decide on the patch you want to make, go to Edit-->Patch program-->Assemble..., and write the new code in Asm.

    Then go to File-->Produce file-->Create DIF file...

    This will create text file with raw offsets and the original value besides the patched values, something like the list you post here.

    Digital sig. is verified by the API WinVerifyTrust in wintrust.dll.
    Have you thought about patching the API to always return 0 (valid sig.), or patch the returned value.
     
  14. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    #216 nononsence, Oct 16, 2009
    Last edited: Oct 16, 2009
    the shell32.dll patch breaks the digital sig for that file and causes UAC prompts for some tasks with explorer.exe, so looks like I will have to.

    the 64bit wordpad.exe is obfuscated at the spot I want to edit, any tip's on how to dissassemble?
     
  15. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,769
    1,106
    60
  16. PAYMYRENT

    PAYMYRENT MDL Developer

    Jul 28, 2009
    1,460
    421
    60
    tell how to test it and i will i have nothin else to do lol
     
  17. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,769
    1,106
    60
  18. PAYMYRENT

    PAYMYRENT MDL Developer

    Jul 28, 2009
    1,460
    421
    60
    #220 PAYMYRENT, Oct 16, 2009
    Last edited: Oct 16, 2009