Skip to content

Commit

Permalink
Merge pull request #773 from ReFirmLabs/encrypted_zip
Browse files Browse the repository at this point in the history
Disable interactive prompt for password protected archives
  • Loading branch information
devttys0 authored Nov 27, 2024
2 parents 2c395b3 + 4ee7831 commit 18ddb54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/extractors/sevenzip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ pub fn sevenzip_extractor() -> extractors::common::Extractor {
utility: extractors::common::ExtractorType::External("7zz".to_string()),
extension: "bin".to_string(),
arguments: vec![
"x".to_string(), // Perform extraction
"-y".to_string(), // Assume Yes to all questions
"-o.".to_string(), // Output to current working directory
"x".to_string(), // Perform extraction
"-y".to_string(), // Assume Yes to all questions
"-o.".to_string(), // Output to current working directory
"-p''".to_string(), // Blank password to prevent hangs if archives are password protected
extractors::common::SOURCE_FILE_PLACEHOLDER.to_string(),
],
// If there is trailing data after the compressed data, extraction will happen but exit code will be 2
Expand Down

0 comments on commit 18ddb54

Please sign in to comment.