postmodern/wordlist.rb

Add support for writing zipped wordlists

postmodern opened this issue · 2 comments

Add support for building a .txt wordlist and then run zip on it; because zip does not support streaming input in to an arbitrary file name inside of the zip archive.

Unfortunately thezip command doesn't support compressing a streamed in file with an arbitrary name given on the command-line. Closest is cat file.txt | zip output.zip -, but then the filename within the zip will be called -. We would have to write to a .txt file first, then compress it, then remove the .txt file, which would eat up disk space...

Implemented by 6fb1b98.