Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

crc problems or fake files?
Hi, I have a strange problem, could you help me, gurus? ;)

I have two .zip archives. Both are protected with password and contain
one .doc file.
I've found passwords for both archives and they were decompressed with
WinRAR without any problems.
But decompressed files look like a garbage in MS Word viewer.

I think that files was just fake. But is it possible that I've found
wrong passwords which produces right CRC after decompression?

Report this thread to moderator Post Follow-up to this message
Old Post
scriptguru@gmail.com
03-28-08 12:56 PM


Re: crc problems or fake files?
On Mar 28, 4:21=A0am, scriptg...@gmail.com wrote:
> But is it possible that I've found
> wrong passwords which produces right CRC after decompression?

No.  Especially since you have two instances.

Not only would the CRC have to match, so would the decryption check
that occurs before decompression even starts, and furthermore the
random data that would result from a faux password would have to both
have no deflate format errors (which is quite unlikely if the files
are longer than a few hundred bytes), and the self-terminating deflate
format would have to accidentally terminate at exactly the right
compressed byte and in order to produce no errors within the zip
format, would need to accidentally generate exactly the right number
of decompressed bytes.

I haven't calculated the probability of all of those accidents
occurring, but I'd guess somewhere around 10^-50 (+/- 20 in the
exponent).  Since you had it happen twice, around 10^-100.

So, no.  You have produced exactly the files that were originally
compressed.  Now you have to figure out what they are.

Mark


Report this thread to moderator Post Follow-up to this message
Old Post
Mark Adler
03-28-08 11:56 PM


Re: crc problems or fake files?
On Mar 28, 11:22 am, Mark Adler <mad...@alumni.caltech.edu> wrote:
> On Mar 28, 4:21 am, scriptg...@gmail.com wrote:
> 
>
> No.  Especially since you have two instances.
>
> Not only would the CRC have to match, so would the decryption check
> that occurs before decompression even starts, and furthermore the
> random data that would result from a faux password would have to both
> have no deflate format errors (which is quite unlikely if the files
> are longer than a few hundred bytes), and the self-terminating deflate
> format would have to accidentally terminate at exactly the right
> compressed byte and in order to produce no errors within the zip
> format, would need to accidentally generate exactly the right number
> of decompressed bytes.
>
> I haven't calculated the probability of all of those accidents
> occurring, but I'd guess somewhere around 10^-50 (+/- 20 in the
> exponent).  Since you had it happen twice, around 10^-100.
>
> So, no.  You have produced exactly the files that were originally
> compressed.  Now you have to figure out what they are.
>
> Mark

You look REALLY bored.

Report this thread to moderator Post Follow-up to this message
Old Post
Industrial One
03-28-08 11:56 PM


Re: crc problems or fake files?
Thanks a lot, Mark!
I think you're right. I am sure that two files with same size can have
the same CRC (it is easy to prove), but i didn't thought about
possible errors in deflate format.
Somebody just compressing garbage files, compressing them with
password and trying to sell it. I don't think these files contain some
kind of structured information, I've analyzed the content of that
files.

Report this thread to moderator Post Follow-up to this message
Old Post
scriptguru@gmail.com
04-01-08 12:03 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Compression archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:15 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.