On the net, I downloaded files but I don’t know if the file extension is the real because it doesn’t work on my PC. I renamed the filename + changed the file extension but it doesn’t run !
Is there a tool allowing to identify the file and his real extension on PC ?
You have to do a file header analysis. The first bytes of info in the file, when opened it a hex editor, will tell you what it is (assuming you recognize what you are looking at).
Whatever you do… there is a big chance the header may contain an EXEcutable header, whatever you do, never rename into .EXE to test out.
You get a shipload of crap and infections on your pc by doing that.
I just realized that finding a good hex editor actually isn’t that easy (lots of crap and shareware), so I felt kinda bad about shouting use google, that is all… hehe.
On linux there is a command “file”, which detects the format by file headers. It’s integral part of the installation, so it’s exists by default on every linux distribution.
If by PC you mean Windows (cause everybody knows, that Linux doesn’t run on PC’s but rather on your grandfathers clock) then you can get the “file” command from Cygwin packages. And probably even a standalone version from somewhere.