参考:
https://youtu.be/SIem8ZIe1xk?t=25m
So you can see the file extenstion doesnt really mean anything, but it is still obvious that it’s an executable. The file type is defined by the very first four bytes of a file. It is not defined by the extension. Extension is actually related with the operating system, but the first four bytes it related with the file itself. So you can change the extension of a file, but the file itself doesnt change. You are changing something on your system.