Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffbryner/pymagic
python code to determine magic number match for file/data
https://github.com/jeffbryner/pymagic
Last synced: about 2 months ago
JSON representation
python code to determine magic number match for file/data
- Host: GitHub
- URL: https://github.com/jeffbryner/pymagic
- Owner: jeffbryner
- License: other
- Created: 2013-03-07T05:11:39.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-07T05:26:04.000Z (almost 12 years ago)
- Last Synced: 2024-04-16T03:39:18.316Z (8 months ago)
- Language: Python
- Size: 121 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
A python module to simulate the unix file command.
Largely inspired/taken/copied from the honeynet magic.py
except this attempts to use the non-mime descriptions of data
and to use at least the level 0 magic descriptions from the linux file
command's Magdir repository of file matches.The hope is to have a python module that can be reasonably used
on windows since python-magic and libmagic seem to be out of
support on windows.Usage:
./magic.py somefile.mp3
somefile.mp3: MPEG ADTS layer III, v1BUGS:
Doesn't use any level beyond level 0 of the file hits, so it will determine /usr/bin/less is ELF,
but not ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped