how to extract 512 bytes from a file
Sergey Zaharchenko
doublef at tele-kom.ru
Sat Jun 19 02:01:43 PDT 2004
On Fri, Jun 18, 2004 at 11:36:04PM -0400,
Thomas Farrell probably wrote:
> I was thinking I could take a working avi and extract the first 512
> bytes and insert it into the beginning of a bogus file. Does anyone
> think this may work?
Given the number of compression formats actually hiding under the '.avi'
extension, and that the most sensitive information is usually in the
header, I doubt that. Unless you know for sure what should be there,
this won't work.
> Any idea how I can accomplish this?
dd(1). Especially `seek=...', `skip=...' and `conv=notrunc'.
> Do I smoke too much weed?
Only if you think you're going to guess 512 bytes of the header from
scratch:)
--
DoubleF
Any excuse will serve a tyrant.
-- Aesop
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040619/251123e9/attachment.bin
More information about the freebsd-questions
mailing list