|
|
how to generate sample corrupt file?
I have a script that needs to handle corrupted or otherwise bad files
gracefully... To test it I need bad files! Any suggestions on how to
corrupt compressed, gzipped, and bzip2'ed files?
I tried ftp'ing a 46 MB gzipped file in ASCII mode, but gzcat didn't
complain about the new version. :-(
How can I generate some bad files to test with?
Thanks,
Phil Lawrence
|
|
0
|
|
|
|
Reply
|
prlawrence (5)
|
10/4/2007 5:32:21 PM |
|
"prlawrence@gmail.com" <prlawrence@gmail.com> writes:
> I have a script that needs to handle corrupted or otherwise bad files
> gracefully... To test it I need bad files! Any suggestions on how to
> corrupt compressed, gzipped, and bzip2'ed files?
>
> I tried ftp'ing a 46 MB gzipped file in ASCII mode, but gzcat didn't
> complain about the new version. :-(
>
> How can I generate some bad files to test with?
With a hex editor.
Phil
--
Dear aunt, let's set so double the killer delete select all.
-- Microsoft voice recognition live demonstration
|
|
0
|
|
|
|
Reply
|
Phil
|
10/4/2007 5:42:35 PM
|
|
> With a hex editor.
Thanks. Painfully obvious answer.
:-)
Phil Lawrence
|
|
0
|
|
|
|
Reply
|
prlawrence
|
10/4/2007 7:19:02 PM
|
|
prlawrence@gmail.com a �crit :
> I have a script that needs to handle corrupted or otherwise bad files
> gracefully... To test it I need bad files! Any suggestions on how to
> corrupt compressed, gzipped, and bzip2'ed files?
zzuf :
http://sam.zoy.org/zzuf/
Nicolas
|
|
0
|
|
|
|
Reply
|
Nicolas
|
10/4/2007 9:17:54 PM
|
|
prlawrence@gmail.com wrote:
> I have a script that needs to handle corrupted or otherwise bad files
> gracefully... To test it I need bad files! Any suggestions on how to
> corrupt compressed, gzipped, and bzip2'ed files?
>
> I tried ftp'ing a 46 MB gzipped file in ASCII mode, but gzcat didn't
> complain about the new version. :-(
>
> How can I generate some bad files to test with?
>
> Thanks,
> Phil Lawrence
What data do you need exactly? Completely corrupt, random, garbage
data you mean? You can simply encrypt regular data and take that as
your sample if this is the case. Or get WinHex and you can generate
random, garbage bytes to your precise preference and leisure.
If you need corrupt as in partly-readable data but nonetheless
corrupt... I dunno, just fuck around with a hex editor and alter/
corrupt the contents manually.
|
|
0
|
|
|
|
Reply
|
Industrial
|
10/5/2007 12:10:48 AM
|
|
|
4 Replies
580 Views
(page loaded in 0.006 seconds)
|
|
|
|
|
|
|
|
|