-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from citruz/release0.2.0
Release0.2.0
- Loading branch information
Showing
12 changed files
with
169 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Thanks to everyone who contributed to this project (in chronological order): | ||
|
||
- Jan Teske (https://github.com/ra-kete) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "dmgwiz" | ||
description = "Extract filesystem data from DMG files" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = ["Felix Seele <[email protected]>"] | ||
edition = "2018" | ||
license = "MIT" | ||
|
@@ -11,27 +11,36 @@ keywords = ["DMG", "Apple"] | |
categories = ["command-line-utilities", "encoding", "filesystem", "parsing"] | ||
|
||
[dependencies] | ||
itertools = "0.9.0" | ||
clap = "2.33.1" | ||
bincode = "1.3.1" | ||
serde = { version = "1.0", features = ["derive"] } | ||
ring = "0.16.15" | ||
openssl = { version = "0.10", features = ["vendored"] } | ||
plist = "1.0.0" | ||
itertools = "0.9" | ||
clap = "2" | ||
bincode = "1" | ||
serde = { version = "1", features = ["derive"] } | ||
ring = { version = "0.16", optional = true } | ||
plist = "1" | ||
num-traits = "0.2" | ||
num-derive = "0.3" | ||
flate2 = "1.0.16" | ||
bzip2 = "0.4.1" | ||
adc = "0.1.0" | ||
lzfse = "0.1.0" | ||
flate2 = "1" | ||
bzip2 = "0.4" | ||
adc = "0.1" | ||
lzfse = "0.1" | ||
|
||
[dependencies.openssl] | ||
version = "0.10" | ||
features = ["vendored"] | ||
optional = true | ||
|
||
[dev-dependencies] | ||
file_diff = "1.0.0" | ||
file_diff = "1" | ||
|
||
[lib] | ||
name = "dmgwiz" | ||
path = "src/lib.rs" | ||
|
||
[[bin]] | ||
name = "dmgwiz" | ||
path = "src/main.rs" | ||
path = "src/main.rs" | ||
required-features = ["crypto"] | ||
|
||
[features] | ||
default = ["crypto"] | ||
crypto = ["openssl", "ring"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
/// Header used for encrypted DMGs | ||
#[derive(Serialize, Deserialize, PartialEq, Debug)] | ||
pub struct EncryptedDmgHeader { | ||
signature: [char; 8], | ||
pub version: u32, | ||
pub enc_iv_size: u32, | ||
unk1: u32, | ||
unk2: u32, | ||
pub data_enc_key_bits: u32, | ||
unk4: u32, | ||
pub hmac_key_bits: u32, | ||
pub uuid: [u8; 16], | ||
pub blocksize: u32, | ||
pub datasize: u64, | ||
pub dataoffset: u64, | ||
unk6: [u8; 24], | ||
pub kdf_algorithm: u32, | ||
pub kdf_prng_algorithm: u32, | ||
pub kdf_iteration_count: u32, | ||
pub kdf_salt_len: u32, | ||
pub kdf_salt: [u8; 32], | ||
pub blob_enc_iv_size: u32, | ||
pub blob_enc_iv: [u8; 32], | ||
pub blob_enc_key_bits: u32, | ||
pub blob_enc_algorithm: u32, | ||
pub blob_enc_padding: u32, | ||
pub blob_enc_mode: u32, | ||
pub encrypted_keyblob_size: u32, | ||
pub encrypted_keyblob1: [u8; 32], | ||
pub encrypted_keyblob2: [u8; 32], | ||
} | ||
|
||
impl EncryptedDmgHeader { | ||
pub fn get_signature(&self) -> String { | ||
self.signature.iter().collect::<String>() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub mod header; | ||
#[cfg(feature = "crypto")] | ||
pub mod reader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.