title: How can I find out the meaning of an error code when unzipping a file using Perl?
body: <p>I'm trying to unzip a file using perl on linux. The file is password protected, and am looping through possible password in a brute force attack <em>(yes this is a homework assignment)</em></p>
  
  <p>I have isolated and removed ther error code 20992 (bad password), but am still getting another error code which is not listed anywhere in the <a href="http://linux.die.net/man/1/unzip" rel="nofollow">docs</a>, and couldn't find anything relevant using The Googles either.</p>
  
  <p>The error is:</p>
  
  <pre><code>512  error:  invalid compressed data to inflate secret_brute.txt
  </code></pre>
  
  <p>Has anyone seen this error message? If so, what mean?</p>
  
  <pre><code>#!/usr/bin/perl
  
  @aaaa_zzzz = ("aaaa" .. "zzzz");
  
  foreach(@aaaa_zzzz){
          $output = system("unzip -P $_ -q -o secret_brute.zip");
          if($output  !~ m/20992/){ #  &lt;-- filtering out other error message
                  chomp($output);
                  print "$_ : $output\n";
          }
  }
  </code></pre>
  
  <p><em>Edit</em></p>
  
  <p>Per request: <a href="http://www.mikedoesweb.com/secret_brute.zip" rel="nofollow">Secret_brute.zip</a></p>