Let's say you have a file without any extension and you want to open it. What would you do?
Well, the easy way would be to use this python script. Its as easy as running the python script and typing in the file name and selecting the relevant option.
Magic numbers are the first few bytes of a file which are unique to a particular file type. These unique bits are referred to as magic numbers, also sometimes referred to as a file signature.
Copy the python script into the same folder where your unknown file is stored.
Now run the terminal or command prompt and type:
python hexer.py
Now enter the file name that you want to test.
Choose the option that you want. In the current version, the second option is not working.
The file's magic numbers will be checked and then the details of the extension of that file will be displayed.