]> granicus.if.org Git - file/log
file
12 years agomerge more little/big endian entries
Christos Zoulas [Fri, 2 Nov 2012 21:50:29 +0000 (21:50 +0000)]
merge more little/big endian entries

12 years agoremove dup le/be
Christos Zoulas [Fri, 2 Nov 2012 21:06:27 +0000 (21:06 +0000)]
remove dup le/be

12 years agomention a few todo's
Christos Zoulas [Thu, 1 Nov 2012 04:31:53 +0000 (04:31 +0000)]
mention a few todo's

12 years agouse name+use to eliminate bi-endian copies.
Christos Zoulas [Thu, 1 Nov 2012 04:26:40 +0000 (04:26 +0000)]
use name+use to eliminate bi-endian copies.

12 years agoif the use string starts with ^, then flip the endianness of the entry.
Christos Zoulas [Thu, 1 Nov 2012 04:21:27 +0000 (04:21 +0000)]
if the use string starts with ^, then flip the endianness of the entry.

12 years agoPR/199: accept whitespace before keywords, add a couple of more
Christos Zoulas [Wed, 31 Oct 2012 18:41:42 +0000 (18:41 +0000)]
PR/199: accept whitespace before keywords, add a couple of more

12 years agocheck for NULL ms
Christos Zoulas [Wed, 31 Oct 2012 17:20:06 +0000 (17:20 +0000)]
check for NULL ms

12 years agoremove c99
Christos Zoulas [Wed, 31 Oct 2012 17:19:32 +0000 (17:19 +0000)]
remove c99

12 years agoPR/208: Fix buildid format
Christos Zoulas [Wed, 31 Oct 2012 17:03:41 +0000 (17:03 +0000)]
PR/208: Fix buildid format

12 years agoadd empty zip
Christos Zoulas [Wed, 31 Oct 2012 16:55:49 +0000 (16:55 +0000)]
add empty zip

12 years agomore details
Christos Zoulas [Wed, 31 Oct 2012 16:48:13 +0000 (16:48 +0000)]
more details

12 years agobetter printout for mach-o, avoid dup.
Christos Zoulas [Wed, 31 Oct 2012 16:32:01 +0000 (16:32 +0000)]
better printout for mach-o, avoid dup.

12 years agoremove prototype for main, add protected for file_mbswidth(), could be private
Christos Zoulas [Wed, 31 Oct 2012 14:01:28 +0000 (14:01 +0000)]
remove prototype for main, add protected for file_mbswidth(), could be private

12 years agoadd mime epankala@gmail.com
Christos Zoulas [Wed, 31 Oct 2012 13:39:42 +0000 (13:39 +0000)]
add mime epankala@gmail.com

12 years agoadd mime from epankala@gmail.com
Christos Zoulas [Wed, 31 Oct 2012 13:38:40 +0000 (13:38 +0000)]
add mime from epankala@gmail.com

12 years agoremove debugging.
Christos Zoulas [Wed, 31 Oct 2012 00:48:40 +0000 (00:48 +0000)]
remove debugging.

12 years agomention new "name" and "use" file types
Christos Zoulas [Tue, 30 Oct 2012 23:23:50 +0000 (23:23 +0000)]
mention new "name" and "use" file types

12 years agodocument "name" and "use"
Christos Zoulas [Tue, 30 Oct 2012 23:22:57 +0000 (23:22 +0000)]
document "name" and "use"

12 years agolook inside fat mach-o binaries
Christos Zoulas [Tue, 30 Oct 2012 23:14:18 +0000 (23:14 +0000)]
look inside fat mach-o binaries

12 years agoadd name and use keywords. Welcome to version 9.
Christos Zoulas [Tue, 30 Oct 2012 23:11:51 +0000 (23:11 +0000)]
add name and use keywords. Welcome to version 9.

12 years agolinux magic for SYSLINUX boot logos+ msdos & wordprocessors for .hlp files
Christos Zoulas [Mon, 29 Oct 2012 17:36:49 +0000 (17:36 +0000)]
linux magic for SYSLINUX boot logos+ msdos & wordprocessors for .hlp files
From Joerg Jenderek

12 years ago-k and -l improvements from Joerg Jenderek
Christos Zoulas [Thu, 25 Oct 2012 15:34:02 +0000 (15:34 +0000)]
-k and -l improvements from Joerg Jenderek

12 years agoadd pwsafe
Christos Zoulas [Thu, 25 Oct 2012 00:12:19 +0000 (00:12 +0000)]
add pwsafe

12 years agopatch from Joerg Jenderek
Christos Zoulas [Thu, 25 Oct 2012 00:11:49 +0000 (00:11 +0000)]
patch from Joerg Jenderek

12 years agoBIOS logo support (Joerg Jenderek)
Christos Zoulas [Sun, 14 Oct 2012 22:53:42 +0000 (22:53 +0000)]
BIOS logo support (Joerg Jenderek)

12 years agofrom Joerg Jenderek
Christos Zoulas [Fri, 12 Oct 2012 16:10:39 +0000 (16:10 +0000)]
from Joerg Jenderek
Hi,
2 files (TDSK-5120x32b.img and TDSK-5120x64b.img ) in directory bootsector
are characterized wrong ( see output bootsector-5.11.txt) .
In reality they are dos images with a sector size smaller than 512. Because
smallest DOS sector size is 32 new test a level 0 searches for boot
signature 0xAA55 in the range from 32 to 512:
30              search/481      \x55\xAA
This test succeed also for some zip files. But if next test for 0xAA55 at
offset 0x1FE succeeds
        >0x1FE          leshort         0xAA55
i got the old examples and print "x86 boot sector".
Alternative test for boot sector sizes smaller 512 at offset 11
>11             uleshort        <512
>>(11.s-2)      uleshort        0xAA55          x86 boot sector
and look for boot signature at end of sector. If these tests succeeds
display also the "x86 boot sector" text.
Because i found bootloader and mbr information only in case of bootsector
sizes greater or equal 512, i keep the the old test sequences and only
replaced "x86 boot sector" string by an empty one because displaying this
text is now done by new additional test.
Some steps has to be done to get the old look like "x86 boot sector, YY
Bootloader, code offset 0xnn, OEM-ID ..."
To display that text before old one,SYSLINUX MBR and DOS BPB
information like in previous file version a  strength of 72 has to be
added.

In the current version first search for the end of sector marker 0xAA55 is
done. If succeeds additional information like DOS BPB and MBR type
is printed. So some boot sector templates without boot signature
are identified as "data". Therefore i separate from "x86 boot sector" the
tests for DOS sector.

Furthermore i has done some minor bug fixes and cosmetic changes.
The jump assembler instruction use relative addresses. So one has to add 2
to
get the real code offset inside the file . The value is ubyte for 0xEB
instruction, but uleshort for 0xE9.
The values for "reserved1" til "reserved3" for DOS boot sectors are wrong,
because the start at offset 52 and not at 54 according to web page
http://thestarman.pcministry.com/asm/mbr/MSWIN41.htm#FSINFO .
This mistake was long time not seen, because this values are normally zero
except for some files like hda9data.bin.
I also display the information about " sectors/track" at offset 24.
For "physical drive" value 0xFF that  words are displayed twice and one
with a wrong value ( See in sub directory physical_drive_2 for files
hda1fd95.bin,sdb2-xp.bin,...)
If the DOS bootsector is followed by the Media descriptor byte 0xFn and
some 0xFFs ( (11.s)     ulelong&0x00ffffF0      0x00ffffF0) this is
characteristic
for a DOS File Allocation Table (FAT). The whole thing is the start of an
DOS disk image. So mime type "application/x-ima" is printed for floppy
images (no fixed disk with FAT12).
NTFS and DOS share the beginning parts of the BIOS parameter block (BPB)
according to http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/
bios-parameter-block.html .
For some x86 boot sectors (files in directory sample/ntfs/) some
information like Media descriptor or heads is correct displayed ( see
output ntfs-5.11.txt ). But the interesting facts of NTFS file system are
not displayed.
By information of http://thestarman.pcministry.com/asm/mbr/NTFSBR.htm
i began to patch the filesystems magic file. If a file looks like a DOS
boot sector and has zero values for the 4 fields FATs,root entries,
 DOS sectors and sectors/FAT it is a NTFS bootsector and the following
bytes contain information like $MFT of the NTFS filesystem ( see output
ntfs-DOSsector.txt ).

After applying changes (file-5.11-filesystems-DOSsector.diff ) a final
output file bootsector-DOSsector.txt for files in directory bootsector is
obtained.

All diffs, output and sample files are stored under
http://mitglied.multimania.de/jenderek/file/

thanks
Joerg

12 years agoPR?204: Jan Kaluza: Remove duplicate dump entries
Christos Zoulas [Wed, 3 Oct 2012 23:44:43 +0000 (23:44 +0000)]
PR?204: Jan Kaluza: Remove duplicate dump entries

12 years agoPR/205: add symmetric encryption (Alfredo Esteban de la Torre)
Christos Zoulas [Wed, 3 Oct 2012 23:38:12 +0000 (23:38 +0000)]
PR/205: add symmetric encryption (Alfredo Esteban de la Torre)

12 years agosoftmagic.c: fix buffer overrun (issue #206, reported by J. Greene)
Reuben Thomas [Wed, 3 Oct 2012 22:13:21 +0000 (22:13 +0000)]
softmagic.c: fix buffer overrun (issue #206, reported by J. Greene)

12 years agouse <4 instead of <=3
Christos Zoulas [Tue, 25 Sep 2012 00:55:20 +0000 (00:55 +0000)]
use <4 instead of <=3

12 years agonew image types
Christos Zoulas [Fri, 21 Sep 2012 13:03:31 +0000 (13:03 +0000)]
new image types

12 years agoPR/203: Add rdiff magic http://librsync.cvs.sourceforge.net/viewvc/librsync/librsync...
Christos Zoulas [Sun, 16 Sep 2012 23:08:54 +0000 (23:08 +0000)]
PR/203: Add rdiff magic http://librsync.cvs.sourceforge.net/viewvc/librsync/librsync/rdiff.magic

12 years agomallard basic
Christos Zoulas [Sat, 8 Sep 2012 02:17:30 +0000 (02:17 +0000)]
mallard basic

12 years agoadd some changes I missed before.
Christos Zoulas [Thu, 6 Sep 2012 14:48:52 +0000 (14:48 +0000)]
add some changes I missed before.

12 years agoPR/197: Add string trimming patch.
Christos Zoulas [Thu, 6 Sep 2012 14:42:39 +0000 (14:42 +0000)]
PR/197: Add string trimming patch.

12 years agoPR/198: Version should not exit 1
Christos Zoulas [Thu, 6 Sep 2012 14:18:50 +0000 (14:18 +0000)]
PR/198: Version should not exit 1

12 years agoPR/191: Look in $HOME/.magic.mgc too
Christos Zoulas [Sun, 26 Aug 2012 11:00:58 +0000 (11:00 +0000)]
PR/191: Look in $HOME/.magic.mgc too

12 years agoPR/190: Fix MPEG transport animation to work with any conti_count
Christos Zoulas [Sun, 26 Aug 2012 10:43:05 +0000 (10:43 +0000)]
PR/190: Fix MPEG transport animation to work with any conti_count

12 years agoPR/189: Recognize woff files
Christos Zoulas [Sun, 26 Aug 2012 10:32:10 +0000 (10:32 +0000)]
PR/189: Recognize woff files

12 years agoPR/188: Print the version in utf-16 xml files
Christos Zoulas [Sun, 26 Aug 2012 10:25:41 +0000 (10:25 +0000)]
PR/188: Print the version in utf-16 xml files

12 years agoPR/187: Access 2010 changed from JET to ACE
Christos Zoulas [Sun, 26 Aug 2012 10:23:30 +0000 (10:23 +0000)]
PR/187: Access 2010 changed from JET to ACE

12 years agoPR/192: don't depend on FIONREAD if we are a pipe.
Christos Zoulas [Sun, 26 Aug 2012 10:21:37 +0000 (10:21 +0000)]
PR/192: don't depend on FIONREAD if we are a pipe.

12 years agoPR/194: Fix typo
Christos Zoulas [Sun, 26 Aug 2012 10:08:29 +0000 (10:08 +0000)]
PR/194: Fix typo

12 years agoPR/195: Fix matroska detection
Christos Zoulas [Sun, 26 Aug 2012 10:06:15 +0000 (10:06 +0000)]
PR/195: Fix matroska detection

12 years agoPR/185: Fix output with non-empty setuid files. While here, format all output
Christos Zoulas [Sun, 26 Aug 2012 09:56:26 +0000 (09:56 +0000)]
PR/185: Fix output with non-empty setuid files. While here, format all output
better.

12 years agomore aix magic from Lorinczy Zsigmond
Christos Zoulas [Fri, 10 Aug 2012 15:06:07 +0000 (15:06 +0000)]
more aix magic from Lorinczy Zsigmond

12 years agoneeed stddef.h for ptrdiff_t
Christos Zoulas [Thu, 9 Aug 2012 16:40:04 +0000 (16:40 +0000)]
neeed stddef.h for ptrdiff_t

12 years agoneed stddef.h
Christos Zoulas [Thu, 9 Aug 2012 16:39:10 +0000 (16:39 +0000)]
need stddef.h

12 years agoavoid malloc(0) on aix. (Lorinczy Zsigmond)
Christos Zoulas [Thu, 9 Aug 2012 16:33:15 +0000 (16:33 +0000)]
avoid malloc(0) on aix. (Lorinczy Zsigmond)

12 years agojpeg 2000 magic is in jpeg
Christos Zoulas [Wed, 8 Aug 2012 14:10:58 +0000 (14:10 +0000)]
jpeg 2000 magic is in jpeg

12 years agoadd arm eabi magic from gimpy.
Christos Zoulas [Sun, 5 Aug 2012 01:42:53 +0000 (01:42 +0000)]
add arm eabi magic from gimpy.

12 years agosay where this came from
Christos Zoulas [Wed, 1 Aug 2012 12:12:36 +0000 (12:12 +0000)]
say where this came from

12 years agoadd java jar file detection from:
Christos Zoulas [Thu, 5 Jul 2012 21:48:24 +0000 (21:48 +0000)]
add java jar file detection from:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6211008
http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/00cd9dc3c2b5/src/solaris/bin/jexec.c

12 years agodecrease strength of weak magic
Christos Zoulas [Thu, 21 Jun 2012 01:55:02 +0000 (01:55 +0000)]
decrease strength of weak magic

12 years agoPR/156: Add linux/ia64 swap recognition
Christos Zoulas [Thu, 21 Jun 2012 01:48:51 +0000 (01:48 +0000)]
PR/156: Add linux/ia64 swap recognition

12 years agoPR/158: Recognize MS-TNEF files
Christos Zoulas [Thu, 21 Jun 2012 01:44:52 +0000 (01:44 +0000)]
PR/158: Recognize MS-TNEF files

12 years agoimprove z-machines magic
Christos Zoulas [Thu, 21 Jun 2012 01:32:26 +0000 (01:32 +0000)]
improve z-machines magic

12 years agoPR/153: fix typo
Christos Zoulas [Thu, 21 Jun 2012 01:19:51 +0000 (01:19 +0000)]
PR/153: fix typo

12 years agoPR/166: Bump strength of perl scripts
Christos Zoulas [Thu, 21 Jun 2012 01:16:49 +0000 (01:16 +0000)]
PR/166: Bump strength of perl scripts

12 years agoPR/167: Recognize AmigaOS scripts.
Christos Zoulas [Thu, 21 Jun 2012 01:13:59 +0000 (01:13 +0000)]
PR/167: Recognize AmigaOS scripts.

12 years agoPR/172: recognize python using "def name(arg, arg)"
Christos Zoulas [Thu, 21 Jun 2012 01:12:51 +0000 (01:12 +0000)]
PR/172: recognize python using "def name(arg, arg)"

12 years agoPR/171: Add magic for QEMU QED images
Christos Zoulas [Thu, 21 Jun 2012 01:10:53 +0000 (01:10 +0000)]
PR/171: Add magic for QEMU QED images

12 years agoPR/173: increase php strength to beat c/c++
Christos Zoulas [Thu, 21 Jun 2012 01:08:56 +0000 (01:08 +0000)]
PR/173: increase php strength to beat c/c++

12 years agoPR/175: Add visibility support
Christos Zoulas [Wed, 20 Jun 2012 22:33:43 +0000 (22:33 +0000)]
PR/175: Add visibility support

12 years agoPR/176: Add IDA pro magic
Christos Zoulas [Wed, 20 Jun 2012 22:10:51 +0000 (22:10 +0000)]
PR/176: Add IDA pro magic

12 years agoPR/177: Print a better mime type for corrupt CDFV2 files.
Christos Zoulas [Wed, 20 Jun 2012 21:52:36 +0000 (21:52 +0000)]
PR/177: Print a better mime type for corrupt CDFV2 files.

12 years agoPR/184: Fix claris clip art magic.
Christos Zoulas [Wed, 20 Jun 2012 21:19:05 +0000 (21:19 +0000)]
PR/184: Fix claris clip art magic.

12 years agoifdef TEST, use errx
Christos Zoulas [Wed, 20 Jun 2012 21:16:56 +0000 (21:16 +0000)]
ifdef TEST, use errx

12 years agouse '\ '
Christos Zoulas [Wed, 20 Jun 2012 21:16:25 +0000 (21:16 +0000)]
use '\ '

12 years agoPOD patch.
Christos Zoulas [Sat, 16 Jun 2012 15:45:08 +0000 (15:45 +0000)]
POD patch.

12 years agoPatches from Markus Heidelberg
Christos Zoulas [Sat, 16 Jun 2012 14:43:36 +0000 (14:43 +0000)]
Patches from Markus Heidelberg

12 years agoadd javascript scripts
Christos Zoulas [Sat, 16 Jun 2012 13:30:36 +0000 (13:30 +0000)]
add javascript scripts

12 years agoadd cubemap magic files.
Christos Zoulas [Wed, 6 Jun 2012 13:03:20 +0000 (13:03 +0000)]
add cubemap magic files.

12 years agoAdd SuSe version
Christos Zoulas [Tue, 22 May 2012 01:55:12 +0000 (01:55 +0000)]
Add SuSe version

12 years agouse ctime_r, asctime_r.
Christos Zoulas [Tue, 15 May 2012 17:14:36 +0000 (17:14 +0000)]
use ctime_r, asctime_r.

12 years agoinclude cdf.h
Christos Zoulas [Mon, 7 May 2012 18:23:11 +0000 (18:23 +0000)]
include cdf.h

12 years agoadjust strength, so that this is not recognized as c++
Christos Zoulas [Sat, 28 Apr 2012 21:20:26 +0000 (21:20 +0000)]
adjust strength, so that this is not recognized as c++
<HTML>
<HEAD>
<TITLE>file test</TITLE>
</HEAD>
<BODY>
class
</BODY>
</HTML>

12 years agoUpdate TODOs.
Reuben Thomas [Sat, 14 Apr 2012 10:22:06 +0000 (10:22 +0000)]
Update TODOs.

12 years agoIndirect fixes
Christos Zoulas [Fri, 6 Apr 2012 21:18:54 +0000 (21:18 +0000)]
Indirect fixes

12 years agoApple on-disk formats.
Christos Zoulas [Fri, 6 Apr 2012 21:18:09 +0000 (21:18 +0000)]
Apple on-disk formats.

12 years ago- add more debugging for indirect offsets.
Christos Zoulas [Fri, 6 Apr 2012 21:15:54 +0000 (21:15 +0000)]
- add more debugging for indirect offsets.
- only print the description for indirect offsets if a match was found,
  and add the offset as the number to print.

12 years agofor indirect formats, allow printing the offset, and default use default
Christos Zoulas [Fri, 6 Apr 2012 21:14:01 +0000 (21:14 +0000)]
for indirect formats, allow printing the offset, and default use default
strength

12 years agoAdd minix A_NSYM format binaries: From: Antoine LECA <antoine.leca.1@gmail.com>
Christos Zoulas [Fri, 6 Apr 2012 14:35:31 +0000 (14:35 +0000)]
Add minix A_NSYM format binaries: From: Antoine LECA <antoine.leca.1@gmail.com>

12 years ago- add windows date formats: {be,le,}qwdate
Christos Zoulas [Tue, 3 Apr 2012 22:25:07 +0000 (22:25 +0000)]
- add windows date formats: {be,le,}qwdate
- don't use time_t when you mean uint32_t
- better support for windows shortcut files

12 years agoallow size <= to the size we have not just <
Christos Zoulas [Tue, 20 Mar 2012 18:28:02 +0000 (18:28 +0000)]
allow size <= to the size we have not just <

12 years agoPR/174: Add winword 2.0 recognition from
Christos Zoulas [Thu, 8 Mar 2012 17:54:48 +0000 (17:54 +0000)]
PR/174: Add winword 2.0 recognition from
https://407323.bugs.gentoo.org/attachment.cgi?id=304559

12 years agofix reversed test
Christos Zoulas [Sat, 3 Mar 2012 15:44:58 +0000 (15:44 +0000)]
fix reversed test

12 years agoLook at the proper offsets for MD info, depending on the size of the binary
Christos Zoulas [Wed, 22 Feb 2012 18:25:39 +0000 (18:25 +0000)]
Look at the proper offsets for MD info, depending on the size of the binary
32 or 64.

12 years agonew version FILE5_11
Christos Zoulas [Tue, 21 Feb 2012 19:16:48 +0000 (19:16 +0000)]
new version

12 years agoMention fuzzing issues
Christos Zoulas [Tue, 21 Feb 2012 19:14:56 +0000 (19:14 +0000)]
Mention fuzzing issues

12 years agoFix bounds checks again.
Christos Zoulas [Mon, 20 Feb 2012 22:35:29 +0000 (22:35 +0000)]
Fix bounds checks again.

12 years agoreturn -2 if we printed something so the we don't print the same information
Christos Zoulas [Mon, 20 Feb 2012 20:04:58 +0000 (20:04 +0000)]
return -2 if we printed something so the we don't print the same information
twice.

12 years ago- simplify rounding
Christos Zoulas [Mon, 20 Feb 2012 20:04:37 +0000 (20:04 +0000)]
- simplify rounding
- use 0x for hex printing

12 years agoPR/170: Christos Georgiou: Add mime type for monkey audio.
Christos Zoulas [Mon, 20 Feb 2012 16:37:34 +0000 (16:37 +0000)]
PR/170: Christos Georgiou: Add mime type for monkey audio.

12 years agowhitespace
Christos Zoulas [Fri, 17 Feb 2012 05:28:40 +0000 (05:28 +0000)]
whitespace

12 years ago- add float and double types
Christos Zoulas [Fri, 17 Feb 2012 05:27:45 +0000 (05:27 +0000)]
- add float and double types
- fix debug printf formats
- fix short stream sizes
- don't fail if we don't know about a type

12 years agoadd more check found by cert's fuzzer.
Christos Zoulas [Fri, 17 Feb 2012 04:23:30 +0000 (04:23 +0000)]
add more check found by cert's fuzzer.

12 years agoadd unreal games signature
Christos Zoulas [Mon, 13 Feb 2012 22:50:50 +0000 (22:50 +0000)]
add unreal games signature

12 years agoadded arm compressed images.
Christos Zoulas [Tue, 7 Feb 2012 21:35:03 +0000 (21:35 +0000)]
added arm compressed images.

12 years agoadd zfs
Christos Zoulas [Fri, 27 Jan 2012 01:41:26 +0000 (01:41 +0000)]
add zfs