Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.04 KB

readme.md

File metadata and controls

39 lines (23 loc) · 1.04 KB

Magic

When you are gnireenigne some binary file, have you ever wondered, WTF are those magic numbers?

When you are browsing source code of a giant project, have you ever complained, what are the values of those magic constants?

Here you are, magic SOLVES these issues for you, just like magic.

Usage

$ magic.py (number|name) [keyword | [keyword] ...]

examples here:

$ magic.py 11 open
$ magic.py 15 signal
$ magic.py 10240 term iflags
$ magic.py term signal
$ magic.py creat open

# list all consts in open
$ magic.py '' open

# list all consts with value of 1024
$ magic.py 1024

Screenshot

scrot

installation

  • python2/3
  • termcolor (optional, for color output support) $ pip install termcolor

Call for PULL Request!

The framework is basically finished, but we need to fill with a lot of magic numbers to make magic really useful. Please contribute your magic.