Git Product home page Git Product logo

esd-decrypter's Introduction

ESD-ToolKit and RenameISOs

ESD ToolKit is a tool designed to convert, and modify esd files. Converting esd files does not modify them in any way.

Future versions will have the ability to modify and create esd files.

The project is still currently in beta and previews tends to be released each month.

This whole project was based on abbodi1406's work (his esd decrypter batch tool).

This tool has been rewritten in powershell and has a gui, as well as a cli version and has many new features the original script doesn't have. You'll also find here a tool designed to rename Windows Build ISOs.

You can use my work only if you credit me for the parts used on your project public page and inside your project download.

Feel free to contact me if you need to.

You can also submit pull request and contribute to this project.

In this repo you'll also find the source code for the esddecrypt program by qad at MDL forums.

Current state:

ESD_ToolKit_GUI.bat launches the Windows Setup toolkit gui (currently in preview)

ESD_ToolKit_cli.bat launches the Windows Setup toolkit cli (currently in preview)

ESDDecrypter.bat launches the old ESD Decrypter which still has some features I haven't implemented in the new one.

RenameISOs.bat launches the Rename ISOs tool which will rename all Windows Build ISOs in a given folder or the current directory.

ISORebuilder.bat launches the ISO Rebuilder tool, which allows you to build a MS-like iso from a folder, works with Windows 10 only atm.

Credit for the original script and the tools used:

abbodi1406 for the original script

qad - decryption program

synchronicity - wimlib

murphy78 - original script

nosferati87, NiFu, s1ave77, and any other MDL forums members contributed in the ESD project

@tfwboredom - updated esddecrypt for 14361+ esds

https://github.com/hounsell/DecryptESD - DecryptESD Program made by Thomas Hounsell

esd-decrypter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esd-decrypter's Issues

Issue when space in path

I used your tool on an ESD I plan to release but three errors occured.

At least one of them (ERROR 1 in my log) is due to the fact that I put your tools in a path with spaces ("O:\Microsoft Windows 10\DecryptESD\4.0.0.0.fbl_prerelease.gustavem.160815-0800"). This error prevented the creation of the ISO file.

GusTools Auto Updater version 0.0.0.1
Gustave M. (gus33000) - Copyright 2014-2016

Checking for updates...
We couldn't find the remote version xml file. Checking for updates is aborted.

GusTools August Preview #0 - ESD to ISO Converter
Gustave M. (gus33000) (c) 2014-2016
4.0.0.0 - 4.0.0.0.fbl_prerelease(gustavem).160815-0800


Do you want to use a custom Cryptographic key ?
You can specify a custom Crypto Key if the embedded ones can't decrypt your esd
 file.
[N] No  [Y] Yes  [?] Help (default is "N"):

Do you want to use a custom Destination Path ?
You can specify a custom Destination Path for your ISO file.
[N] No  [Y] Yes  [?] Help (default is "N"):

Please Select which ESD you want to Convert
===========================================

[1] 9833.0.140903-1451.fbl_release_clientpro_ret_x64fre_zh-cn_04df30fd539d1685bb
1078fbab3963063b00398a.esd
[2] None of these (You will be prompt for one or multiple esd files path names l
ater)

Select number and press enter: 1

GusTools August Preview #0 - ESD to ISO Converter
Gustave M. (gus33000) (c) 2014-2016
4.0.0.0 - 4.0.0.0.fbl_prerelease(gustavem).160815-0800

[02/05/2017 07:20:03 AM] [Info] Gathering informations for O:\Microsoft Windows
10\DecryptESD\4.0.0.0.fbl_prerelease.gustavem.160815-0800\9833.0.140903-1451.fbl
_release_clientpro_ret_x64fre_zh-cn_04df30fd539d1685bb1078fbab3963063b00398a.esd

[02/05/2017 07:20:03 AM] [Warning] O:\Microsoft Windows 10\DecryptESD\4.0.0.0.fb
l_prerelease.gustavem.160815-0800\9833.0.140903-1451.fbl_release_clientpro_ret_x
64fre_zh-cn_04df30fd539d1685bb1078fbab3963063b00398a.esd is encrypted, attemptin
g to decrypt the file
[02/05/2017 07:20:10 AM] [Info] 9833.0.140903-1451.fbl_release_clientpro_ret_x64
fre_zh-cn_04df30fd539d1685bb1078fbab3963063b00398a.esd copied in 7 seconds at 39
5.00 MB/s.
[02/05/2017 07:20:11 AM] [Info] Processing Windows Technical Preview 6.4.9833.0
x86_64
[02/05/2017 07:20:11 AM] [Info] Expanding Setup files - In Progress
[02/05/2017 07:20:21 AM] [Info] Expanding Setup files - Done
[02/05/2017 07:20:21 AM] [Info] Exporting Windows Recovery environement - In Pro
gress
[02/05/2017 07:21:12 AM] [Info] Exporting Windows Recovery environement - Done
[02/05/2017 07:21:12 AM] [Info] Exporting Windows Preinstallation environement -
 In Progress
[02/05/2017 07:21:21 AM] [Info] Exporting Windows Preinstallation environement -
 Done
[02/05/2017 07:21:21 AM] [Info] Exporting Windows Installation - In Progress
[02/05/2017 07:29:02 AM] [Info] Exporting Windows Installation - Done
Press any key to continue ...
[02/05/2017 07:29:03 AM] [Info] Type of setup detected: WIM Based Setup, Late 20
05 revision.
[02/05/2017 07:29:03 AM] [Info] Checking critical system files for a build strin
g and build type information...
[WARNING] No matches for path pattern "windows\system32\ntkrnlmp.exe"
[02/05/2017 07:29:04 AM] [Info] Checking registry for a more accurate build stri
ng and licensing information...

ERROR 0 IS HERE =====================
================================

Remove-Item : Could not find a part of the path 'O:\Microsoft Windows 10\Decryp
tESD\4.0.0.0.fbl_prerelease.gustavem.160815-0800\config\systemprofile\AppData\L
ocal\Microsoft\Windows\INetCache\Content.IE5'.
At O:\Microsoft Windows 10\DecryptESD\4.0.0.0.fbl_prerelease.gustavem.160815-08
00\bin\Identify-ISO.ps1:1651 char:9
+         Remove-Item .\config\ -Recurse -Force
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (O:\Microsoft Wi...15-0800\config\:S
   tring) [Remove-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId : RemoveItemIOError,Microsoft.PowerShell.Commands.
   RemoveItemCommand



MajorVersion : 6
MinorVersion : 4
BuildNumber  : 9833
DeltaVersion : 0
BranchName   : fbl_release
CompileDate  : 140903-1451
Tag          :
Architecture : amd64
BuildType    : fre
Type         : {Client}
Sku          : Professional
Editions     : {Professional}
Licensing    : Retail
LanguageCode : zh-CN
VolumeLabel  :
BuildString  : 6.4.9833.0.fbl_release.140903-1451
SetupPath    : O:\Microsoft Windows 10\DecryptESD\4.0.0.0.fbl_prerelease.gustav
               em.160815-0800\bin\tmp\Media





FileName    : 9833.0.140903-1451.FBL_RELEASE_CLIENTPRO_RET_X64FRE_ZH-CN.ISO
SetupPath   : O:\Microsoft Windows 10\DecryptESD\4.0.0.0.fbl_prerelease.gustave
              m.160815-0800\bin\tmp\Media
VolumeLabel : JM1_CPRA_X64FRE_ZH-CN_DV5
timestamp   : 09/04/2014,04:11:23



Generating ISO...

ERROR 1 IS HERE =============================
========================================

'O:\Microsoft' is not recognized as an internal or external command,
operable program or batch file.
[02/05/2017 07:29:09 AM] [Info] Done

ERROR 2 IS HERE =============================
========================================

Remove-Item : Directory O:\Microsoft Windows
10\DecryptESD\4.0.0.0.fbl_prerelease.gustavem.160815-0800\bin\tmp\Media cannot
be removed because it is not empty.
At O:\Microsoft Windows 10\DecryptESD\4.0.0.0.fbl_prerelease.gustavem.160815-08
00\bin\Convert-ESDISO.ps1:611 char:1
+ Remove-Item -Path $TempDirectory -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Media:DirectoryInfo) [Remove-Item],
    IOException
    + FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.
   RemoveItemCommand

Remove-Item : Directory O:\Microsoft Windows
10\DecryptESD\4.0.0.0.fbl_prerelease.gustavem.160815-0800\bin\tmp cannot be
removed because it is not empty.
At O:\Microsoft Windows 10\DecryptESD\4.0.0.0.fbl_prerelease.gustavem.160815-08
00\bin\Convert-ESDISO.ps1:611 char:1
+ Remove-Item -Path $TempDirectory -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (O:\Microsoft Wi...15-0800\bin\tmp:D
   irectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.
   RemoveItemCommand

True
'1" ' is not recognized as an internal or external command,
operable program or batch file.

Erreur : « Le format de la chaîne d'entrée est incorrect. »

C:\ESD-Decrypter-master\ESD-Decrypter-master\bin
ESDDecrypter.ps1 : Impossible de traiter la transformation d'argument sur le pa
ramètre « Scheme ». Impossible de convertir la valeur « E:\Image_7\Windows10\so
urces\install.esd » en type « System.Int32 ». Erreur : « Le format de la chaîne
d'entrée est incorrect. »
+ CategoryInfo : InvalidData: (:) [ESDDecrypter.ps1], ParentConta
insErrorRecordException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,ESDDecrypte
r.ps1

can't find the iso file

everything looks fine while decrypting the esd file but at the end there is no iso file generated!?.
(win 10 1607 rs1 14393)

0 Byte ISO produced with the latest build (july preview)

I just wanted to convert the 14371 ESD to an ISO and it failed (created a 0 byte iso) with no error messages - Infact it told me that it has successfully finished creating the iso.

There is a logfile (WindowsSetupToolkit bla bla.log) tough:


**********************
Start der Windows PowerShell-Aufzeichnung
Startzeit: 20160707133413
Benutzername: ABSS\steiner
RunAs-Benutzer: ABSS\steiner
Computer: DANIEL (Microsoft Windows NT 10.0.10586.0)
Hostanwendung: Powershell -windowstyle hidden -executionPolicy Bypass -File .\bin\main.ps1
Prozess-ID: 514444
PSVersion: 5.0.10586.122
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0.10586.122
BuildVersion: 10.0.10586.122
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************

Based on the script by abbodi1406
ESD Toolkit - December Tech Preview 2015 - Copyright 2015 (c) gus33000 - Version 4.0
For testing purposes only. Build 4.0.10122.0.rs1_release_multi(gus33000).151219-1115
Loading utilities module...

Gus's Common Utilities / Function Library
Version 1.9
Loading Utilities version 1.9...
Utilities have been loaded
Copying... 0%
Copying... 1%
Copying... 2%
Copying... 3%
Copying... 4%
Copying... 5%
Copying... 6%
Copying... 7%
Copying... 8%
Copying... 9%
Copying... 10%
Copying... 11%
Copying... 12%
Copying... 13%
Copying... 14%
Copying... 15%
Copying... 16%
Copying... 17%
Copying... 18%
Copying... 19%
Copying... 20%
Copying... 21%
Copying... 22%
Copying... 23%
Copying... 24%
Copying... 25%
Copying... 26%
Copying... 27%
Copying... 28%
Copying... 29%
Copying... 30%
Copying... 31%
Copying... 32%
Copying... 33%
Copying... 34%
Copying... 35%
Copying... 36%
Copying... 37%
Copying... 38%
Copying... 39%
Copying... 40%
Copying... 41%
Copying... 42%
Copying... 43%
Copying... 44%
Copying... 45%
Copying... 46%
Copying... 47%
Copying... 48%
Copying... 49%
Copying... 50%
Copying... 51%
Copying... 52%
Copying... 53%
Copying... 54%
Copying... 55%
Copying... 56%
Copying... 57%
Copying... 58%
Copying... 59%
Copying... 60%
Copying... 61%
Copying... 62%
Copying... 63%
Copying... 64%
Copying... 65%
Copying... 66%
Copying... 67%
Copying... 68%
Copying... 69%
Copying... 70%
Copying... 71%
Copying... 72%
Copying... 73%
Copying... 74%
Copying... 75%
Copying... 76%
Copying... 77%
Copying... 78%
Copying... 79%
Copying... 80%
Copying... 81%
Copying... 82%
Copying... 83%
Copying... 84%
Copying... 85%
Copying... 86%
Copying... 87%
Copying... 88%
Copying... 89%
Copying... 90%
Copying... 91%
Copying... 92%
Copying... 93%
Copying... 94%
Copying... 95%
Copying... 96%
Copying... 97%
Copying... 98%
Copying... 99%
Copying... 100%
Copying... 100%
Checking critical system files for a build string and build type information...
Checking registry for a more accurate build string...
Filename: 14371.1000.160617-1933.RS1_RELEASE_PRS_CLIENTPPIPRO_RET_X64FRE_EN-US.ISO
Volume Label: J_CPPA_X64FRE_EN-US_DV5
SetupESD: C:\Users\steiner\Desktop\ESD Decrypter\14371.1000.160617-1933.rs1_release_prs_clientppipro_ret_x64fre_en-us_e262958e1cccbe9acfd88ab8e1b62e4243b77c29.esd.mod
WinREESD: C:\Users\steiner\Desktop\ESD Decrypter\14371.1000.160617-1933.rs1_release_prs_clientppipro_ret_x64fre_en-us_e262958e1cccbe9acfd88ab8e1b62e4243b77c29.esd.mod
C:\Users\steiner\Desktop\ESD Decrypter\14371.1000.160617-1933.rs1_release_prs_clientppipro_ret_x64fre_en-us_e262958e1cccbe9acfd88ab8e1b62e4243b77c29.esd.mod
Index: 4
Gathering Timestamp information from the Setup Media...
Generating ISO...
Es ist nicht möglich, eine Methode für einen Ausdruck aufzurufen, der den NULL hat.
In C:\Users\steiner\Desktop\ESD Decrypter\bin\main.ps1:1300 Zeichen:7
+                         $syncHash.$Control.Dispatcher.Invoke(
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
Es ist nicht möglich, eine Methode für einen Ausdruck aufzurufen, der den NULL hat.
In C:\Users\steiner\Desktop\ESD Decrypter\bin\main.ps1:1300 Zeichen:7
+                         $syncHash.$Control.Dispatcher.Invoke(
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

False
PS>$global:?
True
**********************
Ende der Windows PowerShell-Aufzeichnung
Endzeit: 20160707141153
**********************

MediaMeta.xml is missing

Hi, my esd has a missing MediaMeta.xml when "Expanding Setup files".

[10.03.2018 08:31:21 ] [Info] Expanding Setup files - In Progress
Remove-Item : Der Pfad "C:\Users\Thomas\Downloads\ESD-Decrypter-master\bin\tmp\Media\MediaMeta.xml" kann nicht
gefunden werden, da er nicht vorhanden ist.
In C:\Users\Thomas\Downloads\ESD-Decrypter-master\bin\Convert-ESDISO.ps1:433 Zeichen:3
+   Remove-Item "$($Output)\MediaMeta.xml"
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\Thomas...a\MediaMeta.xml:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

[10.03.2018 08:31:49 ] [Info] Expanding Setup files - Done

Any side-effects known, when this file is missing?

Hidden 'Media' Folder; cannot delete

The program created a subfolder called "Media" when it extracted the ESD. However, it is not visible in Explorer; cannot take ownership; cannot delete. I found it when I ran TreeSize utility to see what was taking up space on my drive.

Error when we generate ISO file


Inicio de la transcripción de Windows PowerShell
Hora de inicio: 20160428173813
Nombre de usuario: MACBOOKPRO-KASH\kasha
Usuario RunAs: MACBOOKPRO-KASH\kasha
Equipo: MACBOOKPRO-KASH (Microsoft Windows NT 10.0.14316.0)
Aplicación host: Powershell -windowstyle hidden -executionPolicy Bypass -File .\bin\main.ps1
Id. de proceso: 4120
PSVersion: 5.1.14316.1000
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14316.1000
CLRVersion: 4.0.30319.42000
BuildVersion: 10.0.14316.1000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1


Based on the script by abbodi1406
ESD Toolkit - December Tech Preview 2015 - Copyright 2015 (c) gus33000 - Version 4.0
For testing purposes only. Build 4.0.10122.0.rs1_release_multi(gus33000).151219-1115
Loading utilities module...

Gus's Common Utilities / Function Library
Version 1.9
Loading Utilities version 1.9...
Utilities have been loaded
Checking critical system files for a build string and build type information...
Checking registry for a more accurate build string...
Filename: 14332.1001.160422-1940.RS1_RELEASE_CLIENTPRO_RET_X64FRE_ES-ES.ISO
Volume Label: J_CPRA_X64FRE_ES-ES_DV5
SetupESD: C:$WINDOWS.~BT\Sources\Install.esd
WinREESD: C:$WINDOWS.~BT\Sources\Install.esd
C:$WINDOWS.~BT\Sources\Install.esd
Index: 4
Gathering Timestamp information from the Setup Media...
Generating ISO...
No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\kasha\Downloads\GusTools-March-2016-Preview-1\bin\main.ps1: 1295 Carácter: 7

  •                     $syncHash.$Control.Dispatcher.Invoke(
    
  •                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
      No se puede llamar a un método en una expresión con valor NULL.
      En C:\Users\kasha\Downloads\GusTools-March-2016-Preview-1\bin\main.ps1: 1295 Carácter: 7
  •                     $syncHash.$Control.Dispatcher.Invoke(
    
  •                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

10240 official ESD files error

With official ESD files downloaded from MS website (Windows 10 10240), an error is reported:

ERROR: Specified file is not original microsoft ESD file.
the original file would contain 4 images.

Windows 10 Insider Preview Build 14393

I was trying to decrypt for latest build 14393.
error shown up every time:
"decryption failed. none of the known/specified rsa key works"

Can you please update the RSA keys to decrypt or refer me any solution to this..?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.