Skip to content

Commit

Permalink
Fixed README usage
Browse files Browse the repository at this point in the history
  • Loading branch information
acabey committed Sep 10, 2017
1 parent c13bfcd commit 35812b5
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,57 @@ Detect type of file as well as partial files (ie. extracted bootloader)
# Usage:
python3 flash-dump.py image.bin -c cpukey -x section

-c CPU key
Required to decrypt bootloaders CD and onward on retails with CB >= 1920
Required to decrypt keyvault
Required to replace encrypted sections
-c CPU key
Required to decrypt bootloaders CD and onward on retails with CB >= 1920
Required to decrypt keyvault
Required to replace encrypted sections

ex. python3 flash-dump.py image.bin -c 48a3e35253c20bcc796d6ec1d5d3d811
ex. python3 flash-dump.py image.bin -c 48a3e35253c20bcc796d6ec1d5d3d811

-x Extract section(s)
-x Extract section(s)

Valid sections are:
nandheader, keyvault, smc, smcconfig, sb, cb, sc, sd, cd, se, ce, cf, cg, cf1, cg1, kernel, hv
Valid sections are:
nandheader, keyvault, smc, smcconfig, sb, cb, sc, sd, cd, se, ce, cf, cg, cf1, cg1, kernel, hv

Use 'all' to extract all sections
Use 'all' to extract all sections

ex. python3 flash-dump.py image.bin -x sb
ex. python3 flash-dump.py image.bin -x sb sd smc
ex. python3 flash-dump.py image.bin -x all
ex. python3 flash-dump.py image.bin -x sb
ex. python3 flash-dump.py image.bin -x sb sd smc
ex. python3 flash-dump.py image.bin -x all


-e Enumerate section(s)
-e Enumerate section(s)

Enumerate information about the given sections (if available)
Enumerate information about the given sections (if available)

Valid sections are as above
Valid sections are as above

ex. python3 flash-dump.py image.bin -e se
ex. python3 flash-dump.py image.bin -e nandheader sb kv
ex. python3 flash-dump.py image.bin -e all
ex. python3 flash-dump.py image.bin -e se
ex. python3 flash-dump.py image.bin -e nandheader sb kv
ex. python3 flash-dump.py image.bin -e all


-r Replace section
Provided replacement must be decrypted (plaintext) as well as decompressed in the case of kernel and hv
-r Replace section
Provided replacement must be decrypted (plaintext) as well as decompressed in the case of kernel and hv

Valid sections are as above
Valid sections are as above

ex. python3 flash-dump.py image.bin -r se se_patched_plain.bin
ex. python3 flash-dump.py image.bin -r kernel xboxkrnl_patched_plain_dec.bin
ex. python3 flash-dump.py image.bin -r se se_patched_plain.bin
ex. python3 flash-dump.py image.bin -r kernel xboxkrnl_patched_plain_dec.bin

-d Decrypt section(s)
-d Decrypt section(s)

Attempts to decrypt the given sections in place or treat input as decrypted
Attempts to decrypt the given sections in place or treat input as decrypted

Valid sections are as above
Valid sections are as above

Used in combination with extract and replace
Used in combination with extract and replace

ex. python3 flash-dump.py image.bin -d sb smc -x sb sd smc
ex. python3 flash-dump.py image.bin -d sb smc -x sb sd smc

--debug Verbose output for debugging
--debug Verbose output for debugging

-v Version
-v Version

# Requirements:
* libssl
Expand Down

0 comments on commit 35812b5

Please sign in to comment.