NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/38427: file(1): magic patterns for BitTorrent files



>Number:         38427
>Category:       misc
>Synopsis:       file(1): more magic patterns for BitTorrent files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 14 17:56:26 +0000 2008
>Originator:     Christian Biere
>Release:        NetBSD 4.99.7
>Organization:
>Environment:
System: NetBSD cyclonus 4.99.7 NetBSD 4.99.7 (STARSCREAM) #4: Wed Dec 27 
02:37:42 CET 2006 src@cyclonus:/o/NetBSD/obj/sys/arch/i386/compile/STARSCREAM 
i386

Architecture: i386
Machine: i386
>Description:

file(1) does not recognize all BitTorrent files because BitTorrent files are
nothing but "raw" bencoded dictionaries with no actual magic header and items
in no specific order. The current known magic pattern relies on a specific
order of items in this dictionary. Most tools seem to output files matching
this assumption but some popular tools don't. I'm providing two more patterns
extracted from actual files I came across. Of course, as explained this isn't
exhaustive.

>How-To-Repeat:
>Fix:

magic:
0       string  d7:comment      BitTorrent file
0       string  d4:info         BitTorrent file

magic.mime:
0       string          d7:comment              application/x-bittorrent
0       string          d4:info                 application/x-bittorrent




Home | Main Index | Thread Index | Old Index