Windows 8/2012 sideloading crack

Discussion in 'Windows 8' started by kost, Oct 30, 2012.

Tags:
  1. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10
  2. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    483
    30
    #102 KNARZ, Nov 8, 2012
    Last edited: Nov 8, 2012
    On some apps i have trial and full shown in the tokenesextracter.
    I implemented licences before tokenextracter was there (hex editing)
     
  3. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    483
    30
    Now its pretty easy. I more talking about the beginning. - Tokens.dat in hex and so on. ;)
    Day by day it become more and more easy by your great work!
     
  4. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10
    If license is show in tokenextractor it doesn't mean it is actually seen as installed by WSService.
    TokenExtractor is brute force. It do not use WSClient API to enumerate licenses - it parses tokens.dat directly
    without knowledge of its format. It looks for valid XMLs and extract them.
    Also I dont know how WSLicenseUninstallLicense behave if multiple licenses for the same ProductID are installed.
    It take GUID of ProductID then I assume it removes all licenses with given ProductID. All or may be just first ?
    You could install multiple licenses with earlier version of wsll.
    Now it is impossible - wsll and TokensExtractor first call WSLicenseUninstallLicense.

    WSClient API is totally undocumented. I discovered needed functions prototypes using IDA and debugger.
     
  5. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    483
    30
    Ah ok. - Than my token is just messed but no problem.
    It's VM.

    It was kind of weird. - Application was running (full) reboot it was broken (with the X in App/Startscreen)
    I just reinstalled the lic and instantly it worked.

    I import with DISM as I haven't foudn skiplicense option in PS.
    With DISM I have to reboot to appear the application on the Screen is it in PS the same?! - Is there a skiplicense switch?
     
  6. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10
    #106 kost, Nov 8, 2012
    Last edited: Nov 8, 2012
    (OP)
    Did you install WSServiceCrk 1.2.3 ? Critical bug was there (I mean 1.2.2).
    As far as I know DISM only provision packages to be deployed for every user.
    When a user logs on some policy mechanisms are invoked. They force deployment..
    Powershell triggers deployment manually. After deployment WSService is notified. It checks license, LOB SKU and make decision enable or disable the package. Reboot is not reqd.
    Powershell do nothing about licenses. WinStore licenses are undocumented proprietary entity supposed to be issued and handled only by windows store internal machinery.
     
  7. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    483
    30
    Hm not sure which version ... Always before you did token extracter and once the current version 1.2.3.
    No updated first post if a critical bug is in there. ;)

    Huh ok. @ DISM / PS.
     
  8. anoopspeaks

    anoopspeaks MDL Junior Member

    Mar 15, 2012
    62
    4
    0
    #108 anoopspeaks, Nov 8, 2012
    Last edited: Nov 9, 2012
    Provide a better tutorial
     
  9. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10
    Updated to ver 1.2.4.

    TokenExtractor can now dig for appx url from windowsupdate.log. Fiddler needed no more.
    TokenExtractor can now import license from a file without need of using wsll.exe.
    Updated redistribution docs.
     
  10. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10
    Like I already posted here - there'are only 3 basic choices of dependencies.
    All possible deps are in appx_deps folder.
    The one needed for particular deployment is in the error message.
     
  11. FM45

    FM45 MDL Novice

    Apr 26, 2010
    13
    1
    0
    #111 FM45, Nov 8, 2012
    Last edited: Nov 8, 2012
    Awesome work :) With every update its gets better and better; not to mention ease of use. A well deserved Thank You from my test bench-- :worthy:

    -=FM45=-


    quick Q -- I am getting server denied when I try to download an .appx from MS - am I missing something?
     
  12. wolf69

    wolf69 MDL Senior Member

    Jul 29, 2009
    276
    19
    10
    ok im not the only one then im getting the same thing
     
  13. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10


    You must start downloading as soon as windowsupdate starts downloading
    URL is available only for the short period of time
     
  14. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10
    Yesterday i tested notepadRT and it worked with WinJS supplied with my package.
    May be you forgot to put winjs....appx into your folder ?
    These dependency files were copied from SDK coming with visual studio 2012
    and they are actual to the moment - all packages I tested were working with those deps.

    27.07.2012 09:30 941 725 Microsoft.VCLibs.x64.11.00.appx
    27.07.2012 09:26 934 014 Microsoft.VCLibs.x86.11.00.appx
    26.07.2012 22:30 869 378 Microsoft.WinJS.1.0.appx

    are you able to install tetrablox in redistribution/sample ?
     
  15. anoopspeaks

    anoopspeaks MDL Junior Member

    Mar 15, 2012
    62
    4
    0
    i am able to install tetrablox you have give.
    Ihad downloaded notepadrt using fiddler.I got a cab file and appx file.Any thing else i have to do for instlling this appx file.Note that i didn't used store to installl this app.
    help.If u add option to remove lisence from tokken.dat it will be very helpfull
     
  16. Saxer

    Saxer MDL Novice

    Nov 9, 2012
    2
    0
    0
    awesome work, congrats!:)
     
  17. anoopspeaks

    anoopspeaks MDL Junior Member

    Mar 15, 2012
    62
    4
    0
    I got it working
    Note every apps is not depended to the version provided by you,some need newer js runtime some need older beta rutimes.Anyway i got the runtime and thanks
     
  18. FM45

    FM45 MDL Novice

    Apr 26, 2010
    13
    1
    0
    Confirmed -- just installed Angry Birds trial then used your tool and was able to grab the .appx from MS. Didn't realize there was a short time window, but all is good--Tanx back to testing :D


    -=FM45=-
     
  19. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10
    Tokens.dat cannot be edited directly. Some sort of checksumming is applied.
    The only way I know how to delete the license is to call wsclient!WSLicenseUninstallLicense
    However it does not physically wipe region of file where license xml is stored - it just mark somewhere this license as deleted and wsservice no more takes it into account.
    TokenExtractor will still see this license until it is physically overwriten in the file.
    I can easily add call to uninstall license in TokenExtractor if you wish.
     
  20. kost

    kost MDL Member

    Jan 22, 2011
    116
    230
    10
    Dependencies are listed in AppxManifest.xml in the root of appx. Appx is just a zip archive like jar.
    There're parameters specifying minimum and maximum version of required component.
    Of course microsoft will update versions of support libraries and you'll need to obtain version compatible with your app.

    <PackageDependency Name="Microsoft.WinJS.1.0" MinVersion="1.0.8514.0" />