Windows 8.1 Build 9600.16610 DISM Now Can Work On ESD

Discussion in 'Windows 8' started by FaiKee, Feb 10, 2014.

  1. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    Love you man.
    :hug2::hug2::hug2:
     
  2. Ace2

    Ace2 MDL Expert

    Oct 10, 2014
    1,410
    1,188
    60
    #142 Ace2, Nov 5, 2014
    Last edited by a moderator: Apr 20, 2017
    Thanks, now i can use these cmds on there own.

    Code:
    mkdir c:\esd
    
    cd c:\
    
    esddecrypt install.esd
    
    dism /get-wiminfo /wimfile:c:\install.esd
    
    dism /export-image /sourceimagefile:c:\install.esd /sourceIndex:4 /destinationimagefile:c:\esd\install.esd /compress:maximum
    Tested and working.
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,743
    340
    #143 abbodi1406, Nov 6, 2014
    Last edited by a moderator: Apr 20, 2017
    Latest wimlib-imagex matches and slightly faster than dism in converting esd2wim:
    Code:
    32-bit:
    
    wimlib
    15:48:00.59 - 16:03:48.80 ~ 16m
    
    dism 9860.0
    15:30:07.76 - 15:47:01.84 ~ 17m
    
    dism 9600.17031
    16:06:33.28 - 16:23:15.90 ~ 17m
    
    ===
    
    64-bit:
    
    wimlib
    20:06:24.02 - 20:19:19.90 ~ 13m
    
    dism 9860.0
    20:19:54.60 - 20:34:03.48 ~ 14m
    
    dism 9600.17031
    19:51:13.03 - 20:05:24.17 ~ 14m
    
    do you think it's better to use it in our script, or stick with dism? :rolleyes: :yes:
     
  4. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    #144 Mr.X, Nov 6, 2014
    Last edited by a moderator: Apr 20, 2017
    :biggrin3::yes::p
     
  5. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #145 murphy78, Nov 6, 2014
    Last edited by a moderator: Apr 20, 2017
    I don't know man. I have no idea if there are pre-requisites for it like there are for dism.
    It seems like it would be better to use wimlib-imagex if it works on all the OS versions.
     
  6. qad

    qad MDL Member

    Dec 17, 2012
    218
    829
    10
    #146 qad, Nov 7, 2014
    Last edited by a moderator: Apr 20, 2017
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,743
    340
    #147 abbodi1406, Nov 8, 2014
    Last edited by a moderator: Apr 20, 2017
  8. qad

    qad MDL Member

    Dec 17, 2012
    218
    829
    10
    #148 qad, Nov 8, 2014
    Last edited: Nov 8, 2014
    I think supporting decryption of ESD is not so hard and it's technically possible.
    But I cannot guess whether it's suitable to implement in wimlib.
    Please ask the author directly if you think it's worth doing so.

    As for the decryption in the Store upgrade process, it's the setup
    program itself that decrypts the downloaded ESDs.
    As far as I know, neither dism nor wimgapi has such transparent support
    for encrypted ESDs in itself.
     
  9. apologized

    apologized MDL Addicted

    Nov 29, 2012
    874
    507
    30
    thanks guys for the update
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. qad

    qad MDL Member

    Dec 17, 2012
    218
    829
    10
    Hi,

    I've updated my post with wimlib 1.7.3 official release.
    I don't think there is much difference from BETA but I think it's better to compile from officially released source.

    Thanks
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,743
    340
    Btw :)

    .....
     
  12. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. qad

    qad MDL Member

    Dec 17, 2012
    218
    829
    10
    #153 qad, Nov 15, 2014
    Last edited by a moderator: Apr 20, 2017
    I'm not sure about what he meant by "only whole streams can be encrypted" and about whether there are some restrictions.
    But, as synchronicity says, it seems any regions except for WIM header and embedded xml/integrity table can be encrypted in any length so you should examine the whole of the file beforehand to decrypt it, I think.
    Also the RSA key (and even the encryption algorithm itself) can be changed every new release so it would be better to keep decryption and other functions separated for maximum flexibility.
    What I thought of when Atari800XL asked me was adding the decryption function to wimlib as a new command like:
    Code:
    wimlib-imagex decrypt foo.esd --crypto-key=<key> --crypto-algo=<aes256 or win8>
    and I didn't take "on-the-fly decryption" into account.

    And to the latter question, the algorithm is standard AES-256 with NULL initial vector for current Win8/Win10TP ESDs.
    The AES session key is placed within embedded xml as an RSA encrypted, and then base64 encoded string.
    The RSA key for decrypting the session key itself is in another xml (i.e. products.xml on the MS upgrade notification site).
    But I don't know the purpose of the encryption, either. It actually makes using the original ESDs a bit harder but all information that is needed to reproduce the plaintext is easily accessible to everyone:confused:

    I hope this could be helpful for him.

    Thanks
     
  14. Imkruzen

    Imkruzen MDL Member

    Jan 9, 2011
    209
    330
    10
    Found a compiler similar to GImageX. Might appeal to some users. I haven't tested it yet.
    Use at your own risk.

    Windows command line compiler for wimlib-imagex 1.7.3

    ****://reboot.pro/files/file/485-wimlib-imagex-clc-beta/
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,743
    340
    This seals the deal i guess

    as s1ave77 said, the current status is ideal in my opinion

    thanks qad for giving us the opportunity to play with ESDs :hug2:
     
  16. Whistler4Ever

    Whistler4Ever MDL Member

    Aug 22, 2013
    146
    208
    10
    #156 Whistler4Ever, Dec 29, 2014
    Last edited by a moderator: Apr 20, 2017
    How did you get this Base64 string? (the BwIAAAC...)
     
  17. TerminatorII

    TerminatorII MDL Novice

    Jun 17, 2011
    35
    9
    0
    It's from here: ht*ps://wscont.apps.microsoft.com/winstore/OSUpgradeNotification/products.xml
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,743
    340
  19. linkenpark

    linkenpark MDL Member

    Feb 4, 2016
    112
    9
    10
    is there correct key work? please share to me ,thank you very much,